Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoCoSpec generation in stateless programs #1

Open
lememta opened this issue Jul 17, 2016 · 0 comments
Open

CoCoSpec generation in stateless programs #1

lememta opened this issue Jul 17, 2016 · 0 comments

Comments

@lememta
Copy link
Collaborator

lememta commented Jul 17, 2016

-- This file has been generated by cocoSim


-- Properties nodes
node property_3_test_observer (In1_1_1 : real; In2_1_1 : real)
returns (Out1_1_1 : bool);
var
    LogicalOperator_1_1 : bool;
    LogicalOperator1_1_1 : bool;
    RelationalOperator_1_1 : bool;
    RelationalOperator1_1_1 : bool;
    RelationalOperator2_1_1 : bool;
    RelationalOperator3_1_1 : bool;
    Output2_1_1 : real;
    Output1_1_1 : real;
let
    LogicalOperator_1_1 = RelationalOperator_1_1 or RelationalOperator1_1_1;
    LogicalOperator1_1_1 = LogicalOperator_1_1 and RelationalOperator2_1_1 and RelationalOperator3_1_1;
    RelationalOperator_1_1 = Output1_1_1 >= In1_1_1;
    RelationalOperator1_1_1 = Output1_1_1 >= In2_1_1;
    RelationalOperator2_1_1 = Output2_1_1 >= In1_1_1;
    RelationalOperator3_1_1 = Output2_1_1 >= In2_1_1;
    Out1_1_1 = LogicalOperator1_1_1;

    (Output2_1_1, Output1_1_1) = property_3_test(In1_1_1, In2_1_1);
    --%PROPERTY Out1_1_1; 

tel


-- System nodes
node property_3_test (In1_1_1 : real; In2_1_1 : real)
returns (Out1_1_1 : real;
    Out2_2_1 : real); 
var
    Abs_1_1 : real;
    RelationalOperator_1_1 : bool;
    Switch_1_1 : real;
let 
    Abs_1_1 = if Switch_1_1 >= 0.0 then Switch_1_1 else -Switch_1_1;
    RelationalOperator_1_1 = In1_1_1 >= In2_1_1;
    Switch_1_1 = if RelationalOperator_1_1 then In1_1_1 else In2_1_1;
    Out1_1_1 = Switch_1_1;
    Out2_2_1 = Abs_1_1;
tel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant