Coder Social home page Coder Social logo

fb2smv's People

Contributors

dmitrydrozdov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fb2smv's Issues

Support of E_DELAY

  1. Currently instances of E_DELAY need to have different names.
  2. For E_DELAY FBs instances FB2SMV inserts, I got it going after deleting the statement
    init(T2_DO):= -1;
    for the E_DELAY instance name T2

VAR T2 : E_DELAY (T2_START, T2_STOP, T2_EO, T2_DT, T2_DI, T2_DO, T2_alpha, T2_beta);
init(T2_START):= FALSE;
init(T2_STOP):= FALSE;
init(T2_EO):= FALSE;
init(T2_DT):= 666;
init(T2_DI):= -1;
init(T2_DO):= -1;
init(T2_alpha):= FALSE;
init(T2_beta):= FALSE;

NuSMV complains about the double assignment of this variable because inside the E_DELAY module there is already such an assignment init(DO_):= -1;

MODULE E_DELAY(event_START, event_STOP, event_EO, DT_, DI_, DO_, alpha, beta)
ASSIGN
init(DO_):= -1;
next(DO_):= case
alpha & event_START : DT_;
alpha & event_STOP : -1;
alpha & DI_ = 0 : -1;
DI_ >= 0 : DI_;
TRUE: DO_; TRUE : DO_;
esac;
DEFINE event_START_reset:= alpha;
DEFINE event_STOP_reset:= (alpha & (event_START));
DEFINE event_EO_set:= (alpha & DI_=0);
DEFINE alpha_reset:= alpha;
DEFINE beta_set:= alpha;
FAIRNESS (alpha)
FAIRNESS (beta)

Besides, FB2SMV defines some variables of E_DELAY as integer

VAR T2_DT :integer;
VAR T2_DI : integer;
VAR T2_DO : integer;

I changed it manually to:
VAR T2_DT : -1..666;
VAR T2_DI : -1..666;
VAR T2_DO : -1..666;

Because I found later initialisation
init(T2_DT):= 666;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.