Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_minmax_multi_test / minmax_multi_test.lus @ 6c3ea955

History | View | Annotate | Download (4.13 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node minmax_multi_test (In1_1_1 : real; In2_1_1 : real; In2_1_2 : real; In2_1_3 : real; In2_1_4 : real; In2_1_5 : real; In3_1_1 : 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; In6_1_1 : real; In6_1_2 : real; In6_1_3 : real; In7_1_1 : real; In8_1_1 : real; In9_1_1 : real; In9_1_2 : real; In9_1_3 : real; In9_1_4 : real; In9_1_5 : real; In9_1_6 : real; In10_1_1 : real; In10_1_2 : real; In10_1_3 : real; In10_1_4 : real; In10_1_5 : real; In10_1_6 : real)
6
returns (Out1_1_1 : real; Out1_1_2 : real; Out1_1_3 : real; Out1_1_4 : real; Out1_1_5 : real;
7
	Out2_2_1 : real; Out2_2_2 : real; Out2_2_3 : real;
8
	Out3_3_1 : real; Out3_3_2 : real; Out3_3_3 : real; Out3_3_4 : real; Out3_3_5 : real; Out3_3_6 : real); 
9
var
10
	MinMax_1_1 : real; MinMax_1_2 : real; MinMax_1_3 : real; MinMax_1_4 : real; MinMax_1_5 : real;
11
	MinMax1_1_1 : real; MinMax1_1_2 : real; MinMax1_1_3 : real;
12
	MinMax2_1_1 : real; MinMax2_1_2 : real; MinMax2_1_3 : real; MinMax2_1_4 : real; MinMax2_1_5 : real; MinMax2_1_6 : real;
13
	i_virtual_local : real;
14
	MinMax1_tmp_1 : real; MinMax1_tmp_2 : real; MinMax1_tmp_3 : real; MinMax1_tmp_4 : real; MinMax1_tmp_5 : real; MinMax1_tmp_6 : real; 
15
	MinMax2_tmp_1 : real; MinMax2_tmp_2 : real; MinMax2_tmp_3 : real; MinMax2_tmp_4 : real; MinMax2_tmp_5 : real; MinMax2_tmp_6 : real; MinMax2_tmp_7 : real; MinMax2_tmp_8 : real; MinMax2_tmp_9 : real; MinMax2_tmp_10 : real; MinMax2_tmp_11 : real; MinMax2_tmp_12 : real; 
16
let 
17
	MinMax_1_1 = if In1_1_1 <= In2_1_1 then In1_1_1 else In2_1_1;
18
	MinMax_1_2 = if In1_1_1 <= In2_1_2 then In1_1_1 else In2_1_2;
19
	MinMax_1_3 = if In1_1_1 <= In2_1_3 then In1_1_1 else In2_1_3;
20
	MinMax_1_4 = if In1_1_1 <= In2_1_4 then In1_1_1 else In2_1_4;
21
	MinMax_1_5 = if In1_1_1 <= In2_1_5 then In1_1_1 else In2_1_5;
22
	MinMax1_tmp_1 = if In3_1_1 <= In4_1_1 then In3_1_1 else In4_1_1;
23
	MinMax1_tmp_2 = if MinMax1_tmp_1 <= In5_1_1 then MinMax1_tmp_1 else In5_1_1;
24
	MinMax1_1_1 = if MinMax1_tmp_2 <= In6_1_1 then MinMax1_tmp_2 else In6_1_1;
25
	MinMax1_tmp_3 = if In3_1_1 <= In4_1_2 then In3_1_1 else In4_1_2;
26
	MinMax1_tmp_4 = if MinMax1_tmp_3 <= In5_1_2 then MinMax1_tmp_3 else In5_1_2;
27
	MinMax1_1_2 = if MinMax1_tmp_4 <= In6_1_2 then MinMax1_tmp_4 else In6_1_2;
28
	MinMax1_tmp_5 = if In3_1_1 <= In4_1_3 then In3_1_1 else In4_1_3;
29
	MinMax1_tmp_6 = if MinMax1_tmp_5 <= In5_1_3 then MinMax1_tmp_5 else In5_1_3;
30
	MinMax1_1_3 = if MinMax1_tmp_6 <= In6_1_3 then MinMax1_tmp_6 else In6_1_3;
31
	MinMax2_tmp_1 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
32
	MinMax2_tmp_2 = if MinMax2_tmp_1 <= In9_1_1 then MinMax2_tmp_1 else In9_1_1;
33
	MinMax2_1_1 = if MinMax2_tmp_2 <= In10_1_1 then MinMax2_tmp_2 else In10_1_1;
34
	MinMax2_tmp_3 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
35
	MinMax2_tmp_4 = if MinMax2_tmp_3 <= In9_1_2 then MinMax2_tmp_3 else In9_1_2;
36
	MinMax2_1_2 = if MinMax2_tmp_4 <= In10_1_2 then MinMax2_tmp_4 else In10_1_2;
37
	MinMax2_tmp_5 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
38
	MinMax2_tmp_6 = if MinMax2_tmp_5 <= In9_1_3 then MinMax2_tmp_5 else In9_1_3;
39
	MinMax2_1_3 = if MinMax2_tmp_6 <= In10_1_3 then MinMax2_tmp_6 else In10_1_3;
40
	MinMax2_tmp_7 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
41
	MinMax2_tmp_8 = if MinMax2_tmp_7 <= In9_1_4 then MinMax2_tmp_7 else In9_1_4;
42
	MinMax2_1_4 = if MinMax2_tmp_8 <= In10_1_4 then MinMax2_tmp_8 else In10_1_4;
43
	MinMax2_tmp_9 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
44
	MinMax2_tmp_10 = if MinMax2_tmp_9 <= In9_1_5 then MinMax2_tmp_9 else In9_1_5;
45
	MinMax2_1_5 = if MinMax2_tmp_10 <= In10_1_5 then MinMax2_tmp_10 else In10_1_5;
46
	MinMax2_tmp_11 = if In7_1_1 <= In8_1_1 then In7_1_1 else In8_1_1;
47
	MinMax2_tmp_12 = if MinMax2_tmp_11 <= In9_1_6 then MinMax2_tmp_11 else In9_1_6;
48
	MinMax2_1_6 = if MinMax2_tmp_12 <= In10_1_6 then MinMax2_tmp_12 else In10_1_6;
49
	Out1_1_1 = MinMax_1_1;
50
	Out1_1_2 = MinMax_1_2;
51
	Out1_1_3 = MinMax_1_3;
52
	Out1_1_4 = MinMax_1_4;
53
	Out1_1_5 = MinMax_1_5;
54
	Out2_2_1 = MinMax1_1_1;
55
	Out2_2_2 = MinMax1_1_2;
56
	Out2_2_3 = MinMax1_1_3;
57
	Out3_3_1 = MinMax2_1_1;
58
	Out3_3_2 = MinMax2_1_2;
59
	Out3_3_3 = MinMax2_1_3;
60
	Out3_3_4 = MinMax2_1_4;
61
	Out3_3_5 = MinMax2_1_5;
62
	Out3_3_6 = MinMax2_1_6;
63
	i_virtual_local= 0.0 -> 1.0;
64
tel
65