Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_product_matrix_test / product_matrix_test.lus @ 6c3ea955

History | View | Annotate | Download (2.42 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node product_matrix_test (In1_1_1 : real; In2_1_1 : real; In2_1_2 : real; In2_1_3 : real; In3_1_1 : real; In3_1_2 : real; In3_1_3 : real; In3_1_4 : real; In3_1_5 : real; In3_1_6 : real; In4_1_1 : real; In4_1_2 : real; In4_1_3 : real; In4_1_4 : real; In4_1_5 : real; In4_1_6 : 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; In5_1_7 : real; In5_1_8 : real; In5_1_9 : real; In6_1_1 : real; In6_1_2 : real; In7_1_1 : real; In7_1_2 : real)
6
returns (Out1_1_1 : 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
	Out4_4_1 : real; Out4_4_2 : real; Out4_4_3 : real; Out4_4_4 : real; Out4_4_5 : real; Out4_4_6 : real;
10
	Out5_5_1 : real); 
11
var
12
	Product_1_1 : real;
13
	Product1_1_1 : real; Product1_1_2 : real; Product1_1_3 : real;
14
	Product2_1_1 : real; Product2_1_2 : real; Product2_1_3 : real; Product2_1_4 : real; Product2_1_5 : real; Product2_1_6 : real;
15
	Product3_1_1 : real; Product3_1_2 : real; Product3_1_3 : real; Product3_1_4 : real; Product3_1_5 : real; Product3_1_6 : real;
16
	Product4_1_1 : real;
17
	i_virtual_local : real;
18
let 
19
	Product_1_1 = In1_1_1;
20
	Product1_1_1 = In2_1_1;
21
	Product1_1_2 = In2_1_2;
22
	Product1_1_3 = In2_1_3;
23
	Product2_1_1 = In3_1_1;
24
	Product2_1_2 = In3_1_2;
25
	Product2_1_3 = In3_1_3;
26
	Product2_1_4 = In3_1_4;
27
	Product2_1_5 = In3_1_5;
28
	Product2_1_6 = In3_1_6;
29
	Product3_1_1 = In4_1_1 * In5_1_1 + In4_1_2 * In5_1_4 + In4_1_3 * In5_1_7;
30
	Product3_1_2 = In4_1_1 * In5_1_2 + In4_1_2 * In5_1_5 + In4_1_3 * In5_1_8;
31
	Product3_1_3 = In4_1_1 * In5_1_3 + In4_1_2 * In5_1_6 + In4_1_3 * In5_1_9;
32
	Product3_1_4 = In4_1_4 * In5_1_1 + In4_1_5 * In5_1_4 + In4_1_6 * In5_1_7;
33
	Product3_1_5 = In4_1_4 * In5_1_2 + In4_1_5 * In5_1_5 + In4_1_6 * In5_1_8;
34
	Product3_1_6 = In4_1_4 * In5_1_3 + In4_1_5 * In5_1_6 + In4_1_6 * In5_1_9;
35
	Product4_1_1 = In6_1_1 * In7_1_1 + In6_1_2 * In7_1_2;
36
	Out1_1_1 = Product_1_1;
37
	Out2_2_1 = Product1_1_1;
38
	Out2_2_2 = Product1_1_2;
39
	Out2_2_3 = Product1_1_3;
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
	Out3_3_5 = Product2_1_5;
45
	Out3_3_6 = Product2_1_6;
46
	Out4_4_1 = Product3_1_1;
47
	Out4_4_2 = Product3_1_2;
48
	Out4_4_3 = Product3_1_3;
49
	Out4_4_4 = Product3_1_4;
50
	Out4_4_5 = Product3_1_5;
51
	Out4_4_6 = Product3_1_6;
52
	Out5_5_1 = Product4_1_1;
53
	i_virtual_local= 0.0 -> 1.0;
54
tel
55