1 |
4748b215
|
hbourbou
|
-- This file has been generated by CoCoSim2.
|
2 |
|
|
|
3 |
|
|
-- Compiler: Lustre compiler 2 (ToLustre.m)
|
4 |
|
|
-- Time: 03-Dec-2018 22:38:04
|
5 |
|
|
node ForIteratorSubsystem_55_714_iterator(In1_1 : real;
|
6 |
|
|
__time_step : real;
|
7 |
|
|
__nb_step : int;)
|
8 |
|
|
returns(Out1_1 : real;
|
9 |
|
|
Out2_1 : real;);
|
10 |
|
|
var _pre_In1_1 : real;
|
11 |
|
|
_pre_Add_1 : real;
|
12 |
|
|
Add_1 : real;
|
13 |
|
|
Out1_1_1 : real;
|
14 |
|
|
Out2_1_1 : real;
|
15 |
|
|
Add_1_1 : real;
|
16 |
|
|
Out1_1_2 : real;
|
17 |
|
|
Out2_1_2 : real;
|
18 |
|
|
Add_1_2 : real;
|
19 |
|
|
let
|
20 |
|
|
_pre_In1_1 = (0.0 -> (pre In1_1));
|
21 |
|
|
_pre_Add_1 = (0.0 -> (pre Add_1));
|
22 |
|
|
(Out1_1_1, Out2_1_1, Add_1_1) = ForIteratorSubsystem_55_714(In1_1, __time_step, __nb_step, _pre_In1_1, _pre_Add_1, 1);
|
23 |
|
|
(Out1_1_2, Out2_1_2, Add_1_2) = ForIteratorSubsystem_55_714(In1_1, __time_step, __nb_step, In1_1, Add_1_1, 2);
|
24 |
|
|
(Out1_1, Out2_1, Add_1) = ForIteratorSubsystem_55_714(In1_1, __time_step, __nb_step, In1_1, Add_1_2, 3);
|
25 |
|
|
tel
|
26 |
|
|
|
27 |
|
|
(*
|
28 |
|
|
Original block name: ForIterator2_PP/ForIteratorSubsystem
|
29 |
|
|
*)
|
30 |
|
|
node ForIteratorSubsystem_55_714(In1_1 : real;
|
31 |
|
|
__time_step : real;
|
32 |
|
|
__nb_step : int;
|
33 |
|
|
_pre_In1_1 : real;
|
34 |
|
|
_pre_Add_1 : real;
|
35 |
|
|
_iterationVariable : int;)
|
36 |
|
|
returns(Out1_1 : real;
|
37 |
|
|
Out2_1 : real;
|
38 |
|
|
Add_1 : real;);
|
39 |
|
|
var UnitDelay_1 : real;
|
40 |
|
|
UnitDelay1_1 : real;
|
41 |
|
|
UnitDelay2_1 : real;
|
42 |
|
|
let
|
43 |
|
|
Add_1 = 0.0 + UnitDelay2_1 + UnitDelay_1;
|
44 |
|
|
UnitDelay_1 = (if ((__time_step = 0.0) and (_iterationVariable = 1)) then 0.000000000000000 else _pre_Add_1);
|
45 |
|
|
UnitDelay1_1 = (if ((__time_step = 0.0) and (_iterationVariable = 1)) then 0.000000000000000 else _pre_Add_1);
|
46 |
|
|
UnitDelay2_1 = (if ((__time_step = 0.0) and (_iterationVariable = 1)) then 0.000000000000000 else _pre_In1_1);
|
47 |
|
|
Out1_1 = UnitDelay1_1;
|
48 |
|
|
Out2_1 = UnitDelay2_1;
|
49 |
|
|
tel
|
50 |
|
|
|
51 |
|
|
(*
|
52 |
|
|
Original block name: ForIterator2_PP
|
53 |
|
|
*)
|
54 |
|
|
node ForIterator2_PP(In1_1 : real;)
|
55 |
|
|
returns(Out1_1 : real;
|
56 |
|
|
Out2_1 : real;);
|
57 |
|
|
var ForIteratorSubsystem_1 : real;
|
58 |
|
|
ForIteratorSubsystem_2 : real;
|
59 |
|
|
__time_step : real;
|
60 |
|
|
__nb_step : int;
|
61 |
|
|
let
|
62 |
|
|
(ForIteratorSubsystem_1, ForIteratorSubsystem_2) = ForIteratorSubsystem_55_714_iterator(In1_1, __time_step, __nb_step);
|
63 |
|
|
Out1_1 = ForIteratorSubsystem_1;
|
64 |
|
|
Out2_1 = ForIteratorSubsystem_2;
|
65 |
|
|
__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
|
66 |
|
|
__nb_step = (0 -> ((pre __nb_step) + 1));
|
67 |
|
|
tel
|