45 views

Uploaded by AbiramiAbi

NuSmv tool introduction

- applet.txt
- bpj lesson 8
- Permission Doc
- bpj lesson 8
- Visual Basic
- pc eventcheckers
- Contoh Source Code Pascal Implementasi Linked List
- Tutorial 8
- Silverlight_1.0_Class_Diagram
- lesson 8
- Program Design - LADISLA
- Group 4 Visuala
- SQL Interview Questions
- Ch04(1).ppt
- Date and Time Validation Functions - Visual Studio Sample Code - Developer Fusion
- Assignment Operator
- launcher2-Workspace.java
- correctionExamen1.txt
- Lesson 1 - Setting Up Hardware
- Just a brief introduction to C++ data types.pdf

You are on page 1of 17

Yogananda Jeppu

Copyright Notice

NuSMV by Yogananda Jeppu is licensed under a

to Share to copy, distribute and transmit the work

to Remix to adapt the work

Under the following conditions:

Attribution You must attribute the work in the manner specified by the author or

licensor (but not in any way that suggests that they endorse you or your use of the work).

Noncommercial You may not use this work for commercial purposes.

Share Alike If you alter, transform, or build upon this work, you may distribute the

resulting work only under the same or similar license to this one.

For details please visit the website.

Background

I am Yogananda Jeppu. I have a PhD in safety critical control

design, 6DOF simulation, Model Based Verification and

Validation, System Testing.

I have worked on the Indian Light Combat Aircraft (LCA)

control system and the Indian SARAS aircraft. I have worked

on model based commercial aircraft flight control law

programs of Boeing, Airbus, Gulfstream and Comac.

Currently I am working at Honeywell Technology Solutions ,

on Formal Methods, and Model Based System Engineering.

3

NuSMV

NuSMV is a reimplementation and extension of SMV

on Binary Decision Diagrams (BDDs).(Wiki)

NuSMV has been developed as a joint project between ITCIRST (Istituto Trentino di Cultura in Trento, Italy), Carnegie

Mellon University, the University of Genoa and the

University of Trento.

It can be downloaded from

http://nusmv.fbk.eu/

NuSMV Directory

Running NuSMV

Nusmv example01.smv

Interactive execution

Nusmv int example01.smv

go

check_ltlspec

show_traces -p 2 -o trace.txt

quit

NuSMV

NuSMV defines variable states, initial states and their next

states.

This is defined in the main program with the syntax

MODULE main

Keyword VAR is used to define the variables

Keyword ASSIGN is used to assign values to variables

MODULE main

VAR

b0 : boolean;

ASSIGN

init(b0) := FALSE;

next(b0) := !bo;

7

Types

Boolean : FALSE, TRUE

x : boolean;

Enumerative

xe : {ready, steady, get_set, go}; -- the dashes are comments

xi : {2, 7, 10} integers can be enumerative

Bounded integers

bi : -10 .. 10;

Integers

Bi : integer;

Words

unsigned word [3];

8

Types

Arrays

VAR

x : array 0..10 of boolean; -- array of 11 elements

y : array -1..1 of {red, green, orange}; -- array of 3 elements

z : array 1..10 of array 1..5 of boolean; -- array of array

ASSIGN

init(x[5]) := bool(1);

init(y[0]) := {red, green}; -- any value in the set

init(z[3][2]) := TRUE;

init(<variable>) := <simple expression>;

init(x) := FALSE; -- x must be FALSE

init(y) := {1, 2, 3}; -- y can be either 1, 2 or 3

Define Transitions

next(a) := { a, a+1 } ;

next(b) := b + 10;

10

Expressions

arithmetic operators:

+ - * / mod - (unary)

comparison operators:

=, !=, >, <, <=, >=

logic operators:

&, |, xor, ! (not), ->, <->

bitwise operators:

<<, >>

expressions

toint(boolean_var)

11

Case Expressions

a: = case

c1 : e1;

c2 : e2;

...

TRUE : en;

esac;

If c1 then a=e1

Elseif c2 then a=e2

Else

a=en

end

case

C > 2 : next(a) = 10;

TRUE : next(a) = 0;

Esac;

12

Examples

MODULE main

TRANS

VAR

case

sg : boolean;

add3 : boolean;

add5 : boolean;

add11 : boolean;

add11 : (next(sum) = sum + 11) & (next(sum1) = sum1 + 11);

ASSIGN

init(sum) :=0;

esac;

init(sum1) :=0;

13

Modules

MODULE counter(in)

VAR out: 0..9;

...

MODULE main

VAR m1 : counter(m2.out);

m2 : counter(m1.out);

...

14

a is TRUE now

a

Xa

Fa

a

15

Ga

a

aUb

a

16

Examples

17

- applet.txtUploaded byJoshua Perry
- bpj lesson 8Uploaded byapi-307096342
- Permission DocUploaded bysebasti404
- bpj lesson 8Uploaded byapi-307093335
- Visual BasicUploaded byJyoti Narain
- pc eventcheckersUploaded byapi-242134185
- Contoh Source Code Pascal Implementasi Linked ListUploaded bySchwarzgelbenDie
- Tutorial 8Uploaded byWan Contract
- Silverlight_1.0_Class_DiagramUploaded byJoseph Machalani
- lesson 8Uploaded byapi-307094923
- Program Design - LADISLAUploaded byColeen Ladisla
- Group 4 VisualaUploaded byPatricia Cacnio
- SQL Interview QuestionsUploaded byJyotidesai
- Ch04(1).pptUploaded byAustin Grissom
- Date and Time Validation Functions - Visual Studio Sample Code - Developer FusionUploaded byIlhamIskandar
- Assignment OperatorUploaded byFarhan Sheikh Muhammad
- launcher2-Workspace.javaUploaded byandrddr
- correctionExamen1.txtUploaded byMalik Larson
- Lesson 1 - Setting Up HardwareUploaded byLuis Armando Reyes Cardoso
- Just a brief introduction to C++ data types.pdfUploaded bysandymcan
- Concepts before coding -- non-programming interactives to advance learning of introductory programming concepts in middle school.pdfUploaded byPedro
- Hands-On Lab - ASP.net Mvc RazorUploaded bywinuxue
- primefaces_users_guide_3_1.pdfUploaded byMatheus Sandrini Rossi
- SQL ReferenceUploaded bynira5050
- 1.8. Getting Started With Data — Problem Solving With Algorithms and Data StructuresUploaded byErr33
- SQL TutorialUploaded byvasudevjd28
- PLSQLUploaded byskumar4787
- BC101 Lecture 4 - Program StructuresUploaded byJohn Carlo Leynes Bruno
- Some Additional Notes and Programs in C for PointersUploaded byMITMCA
- Python ClassUploaded byTushar Gupta

- adonetUploaded byAbiramiAbi
- Schiller Slides Mobile CommunicationUploaded bySathya Arul
- DSP Unit 1.pdfUploaded byAbiramiAbi
- New Microsoft Office Word DocumentUploaded byAbiramiAbi
- A Scalable Data Stream Mining Methodology Stream-Based Holistic Analytics and Reasoning in ParallelUploaded byAbiramiAbi
- f-nmUploaded byAbiramiAbi
- unit ii and iii - wtUploaded byQamar Nangraj
- GATE 2014 Syllabus for CSEUploaded byAbiramiAbi
- GATE General Aptitude GA Syllabus Common to AllUploaded byAbiramiAbi

- Col 11056Uploaded byRavvi Ganesan
- EquationsUploaded byapokakia
- Marilia Matte (Resumo)Uploaded byAline Raldi
- Spring-13-BE-ME-CH-A.pdfUploaded byMuhammad Kamran
- NTSE stage-1 Mock Test 2Uploaded bySonal Gupta
- Variables and CalculationsUploaded byJay Mark
- Chapter 4 Intro to Coding TheoryUploaded bytrevorsum123
- FLT2Uploaded byapi-26401608
- Operasi Ke Atas SetUploaded byshivani4598
- Ring Theory Course Notes for MAT 3143 (Winter 2013) - Alistair SavageUploaded by陳琮方
- Access 2007 Introduction Best STL Training ManualUploaded byΦαέθων Ζέυξης
- Mathematics TriviaUploaded byanon-536275
- CongUploaded byGanesh Kumar
- Number System ArihantUploaded byPrudvi Krishna Maladi
- SOME PROPERTIES OF THE PSEUDO-SMARANDACHE FUNCTION, by RICHARD PINCHUploaded byAnonymous 0U9j6BLllB
- Topic 1_ Algebra Paper 1Uploaded byAmalAbdlFattah
- Differential Equations - Periodic Functions &Amp; Orthogonal FunctionsUploaded bySoumava Mukherjee
- Mathematical Proofs by ExamplesUploaded byNarada Dilshan
- Best Crisp SetsUploaded byAbdman Wayo
- Grabbe_Ramo_Wooldridge_Handbook_of_Automation_Computation_and_Control_Vol_1_1958.pdfUploaded byGianniNicheli
- exams.pdfUploaded byAnonymous 5lZJ470
- Mathematical Proofs - 3rd Edition - ChartrandUploaded byCarmel Harel
- Group TheoryUploaded bySuleiman M Yussuf
- Complex NumbersUploaded byjax21es
- Tos-In Math 6 2nd GradingUploaded byInteJulieta
- tr07-01Uploaded bycalidor
- Supplement (Set Theory)Uploaded byJoaquim Moreno
- A Von Sterneck Arithmetical Function and Restricted Partitions With Respect to a ModulusUploaded byapi-26401608
- CAT Problems_ QuestionsUploaded bydhruvbhardwaj
- Algebra for application.pdfUploaded byNgông Ngây Ngô