Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_sum_collapse_test / sum_collapse_test.lus @ 6c3ea955

History | View | Annotate | Download (1.92 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node sum_collapse_test (In1_1_1 : real; In2_1_1 : real; In3_1_1 : real; In3_1_2 : real; In3_1_3 : real; In4_1_1 : real; In4_1_2 : real; In4_1_3 : real; In5_1_1 : real; In5_1_2 : real; In5_1_3 : real; In5_1_4 : real; In5_1_5 : real; In5_1_6 : real; In6_1_1 : real; In6_1_2 : real; In6_1_3 : real; In6_1_4 : real; In6_1_5 : real; In6_1_6 : real; In7_1_1 : real; In7_1_2 : real; In7_1_3 : real; In7_1_4 : real; In7_1_5 : real; In7_1_6 : real; In8_1_1 : real; In8_1_2 : real; In8_1_3 : real; In8_1_4 : real; In8_1_5 : real; In8_1_6 : real)
6
returns (Out1_1_1 : real;
7
	Out2_2_1 : real;
8
	Out3_3_1 : real;
9
	Out4_4_1 : real;
10
	Out5_5_1 : real; Out5_5_2 : real; Out5_5_3 : real;
11
	Out6_6_1 : real; Out6_6_2 : real; Out6_6_3 : real;
12
	Out7_7_1 : real; Out7_7_2 : real;
13
	Out8_8_1 : real; Out8_8_2 : real); 
14
var
15
	Sum_1_1 : real;
16
	Sum1_1_1 : real;
17
	Sum2_1_1 : real;
18
	Sum3_1_1 : real;
19
	Sum4_1_1 : real; Sum4_1_2 : real; Sum4_1_3 : real;
20
	Sum5_1_1 : real; Sum5_1_2 : real; Sum5_1_3 : real;
21
	Sum6_1_1 : real; Sum6_1_2 : real;
22
	Sum7_1_1 : real; Sum7_1_2 : real;
23
	i_virtual_local : real;
24
let 
25
	Sum_1_1 = In1_1_1;
26
	Sum1_1_1 =  - In2_1_1;
27
	Sum2_1_1 = In3_1_1 + In3_1_2 + In3_1_3;
28
	Sum3_1_1 =  - In4_1_1 - In4_1_2 - In4_1_3;
29
	Sum4_1_1 = In5_1_1 + In5_1_4;
30
	Sum4_1_2 = In5_1_2 + In5_1_5;
31
	Sum4_1_3 = In5_1_3 + In5_1_6;
32
	Sum5_1_1 =  - In6_1_1 - In6_1_4;
33
	Sum5_1_2 =  - In6_1_2 - In6_1_5;
34
	Sum5_1_3 =  - In6_1_3 - In6_1_6;
35
	Sum6_1_1 = In7_1_1 + In7_1_2 + In7_1_3;
36
	Sum6_1_2 = In7_1_4 + In7_1_5 + In7_1_6;
37
	Sum7_1_1 =  - In8_1_1 - In8_1_2 - In8_1_3;
38
	Sum7_1_2 =  - In8_1_4 - In8_1_5 - In8_1_6;
39
	Out1_1_1 = Sum_1_1;
40
	Out2_2_1 = Sum1_1_1;
41
	Out3_3_1 = Sum2_1_1;
42
	Out4_4_1 = Sum3_1_1;
43
	Out5_5_1 = Sum4_1_1;
44
	Out5_5_2 = Sum4_1_2;
45
	Out5_5_3 = Sum4_1_3;
46
	Out6_6_1 = Sum5_1_1;
47
	Out6_6_2 = Sum5_1_2;
48
	Out6_6_3 = Sum5_1_3;
49
	Out7_7_1 = Sum6_1_1;
50
	Out7_7_2 = Sum6_1_2;
51
	Out8_8_1 = Sum7_1_1;
52
	Out8_8_2 = Sum7_1_2;
53
	i_virtual_local= 0.0 -> 1.0;
54
tel
55