Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_product_elementwise_test / product_elementwise_test.lus @ 6c3ea955

History | View | Annotate | Download (2.78 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node product_elementwise_test (In1_1_1 : real; In2_1_1 : real; In3_1_1 : real; In3_1_2 : real; In4_1_1 : real; In4_1_2 : real; In5_1_1 : real; In5_1_2 : real; In5_1_3 : real; In5_1_4 : real; In6_1_1 : real; In6_1_2 : real; In6_1_3 : real; In6_1_4 : real; In7_1_1 : real; In8_1_1 : real; In9_1_1 : real; In10_1_1 : real; In11_1_1 : real; In11_1_2 : real; In12_1_1 : real; In12_1_2 : real; In13_1_1 : real; In13_1_2 : real; In14_1_1 : real; In14_1_2 : real; In15_1_1 : real; In15_1_2 : real; In15_1_3 : real; In15_1_4 : real; In15_1_5 : real; In15_1_6 : real; In16_1_1 : real; In16_1_2 : real; In16_1_3 : real; In16_1_4 : real; In16_1_5 : real; In16_1_6 : real; In17_1_1 : real; In17_1_2 : real; In17_1_3 : real; In17_1_4 : real; In17_1_5 : real; In17_1_6 : real; In18_1_1 : real; In18_1_2 : real; In18_1_3 : real; In18_1_4 : real; In18_1_5 : real; In18_1_6 : real)
6
returns (Out1_1_1 : real;
7
	Out2_2_1 : real; Out2_2_2 : real;
8
	Out3_3_1 : real; Out3_3_2 : real; Out3_3_3 : real; Out3_3_4 : real;
9
	Out4_4_1 : real;
10
	Out5_5_1 : real; Out5_5_2 : real;
11
	Out6_6_1 : real; Out6_6_2 : real; Out6_6_3 : real; Out6_6_4 : real; Out6_6_5 : real; Out6_6_6 : real); 
12
var
13
	Product_1_1 : real;
14
	Product1_1_1 : real; Product1_1_2 : real;
15
	Product2_1_1 : real; Product2_1_2 : real; Product2_1_3 : real; Product2_1_4 : real;
16
	Product3_1_1 : real;
17
	Product4_1_1 : real; Product4_1_2 : real;
18
	Product5_1_1 : real; Product5_1_2 : real; Product5_1_3 : real; Product5_1_4 : real; Product5_1_5 : real; Product5_1_6 : real;
19
	i_virtual_local : real;
20
let 
21
	Product_1_1 = In1_1_1 * In2_1_1;
22
	Product1_1_1 = In3_1_1 / In4_1_1;
23
	Product1_1_2 = In3_1_2 / In4_1_2;
24
	Product2_1_1 = (1.0 / In5_1_1) * In6_1_1;
25
	Product2_1_2 = (1.0 / In5_1_2) * In6_1_2;
26
	Product2_1_3 = (1.0 / In5_1_3) * In6_1_3;
27
	Product2_1_4 = (1.0 / In5_1_4) * In6_1_4;
28
	Product3_1_1 = In7_1_1 * In8_1_1 * In9_1_1 * In10_1_1;
29
	Product4_1_1 = In11_1_1 * In12_1_1 * In13_1_1 * In14_1_1;
30
	Product4_1_2 = In11_1_2 * In12_1_2 * In13_1_2 * In14_1_2;
31
	Product5_1_1 = In15_1_1 * In16_1_1 * In17_1_1 * In18_1_1;
32
	Product5_1_2 = In15_1_2 * In16_1_2 * In17_1_2 * In18_1_2;
33
	Product5_1_3 = In15_1_3 * In16_1_3 * In17_1_3 * In18_1_3;
34
	Product5_1_4 = In15_1_4 * In16_1_4 * In17_1_4 * In18_1_4;
35
	Product5_1_5 = In15_1_5 * In16_1_5 * In17_1_5 * In18_1_5;
36
	Product5_1_6 = In15_1_6 * In16_1_6 * In17_1_6 * In18_1_6;
37
	Out1_1_1 = Product_1_1;
38
	Out2_2_1 = Product1_1_1;
39
	Out2_2_2 = Product1_1_2;
40
	Out3_3_1 = Product2_1_1;
41
	Out3_3_2 = Product2_1_2;
42
	Out3_3_3 = Product2_1_3;
43
	Out3_3_4 = Product2_1_4;
44
	Out4_4_1 = Product3_1_1;
45
	Out5_5_1 = Product4_1_1;
46
	Out5_5_2 = Product4_1_2;
47
	Out6_6_1 = Product5_1_1;
48
	Out6_6_2 = Product5_1_2;
49
	Out6_6_3 = Product5_1_3;
50
	Out6_6_4 = Product5_1_4;
51
	Out6_6_5 = Product5_1_5;
52
	Out6_6_6 = Product5_1_6;
53
	i_virtual_local= 0.0 -> 1.0;
54
tel
55