Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_flattening_3_test / flattening_3_test.lus @ 6c3ea955

History | View | Annotate | Download (1.6 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node flattening_3_test_SubVirtual_SubAtomic (SubIn1_1_1 : real)
6
returns (SubOut1_1_1 : real;
7
	SubOut2_2_1 : real); 
8
var
9
	Product_1_1 : real;
10
	SubSubVirtual1_Product2_1_1 : real;
11
	SubSubVirtual_Product2_1_1 : real;
12
	SubSubVirtua2_Product2_1_1 : real;
13
	SubSubVirtual3_Product2_1_1 : real;
14
let 
15
	Product_1_1 = SubIn1_1_1 * SubIn1_1_1;
16
	SubSubVirtual1_Product2_1_1 = SubIn1_1_1 * SubIn1_1_1;
17
	SubSubVirtual_Product2_1_1 = Product_1_1 * SubSubVirtual1_Product2_1_1;
18
	SubSubVirtua2_Product2_1_1 = SubSubVirtual_Product2_1_1 * SubSubVirtual_Product2_1_1 * SubSubVirtual_Product2_1_1;
19
	SubSubVirtual3_Product2_1_1 = SubSubVirtual_Product2_1_1 * SubSubVirtual_Product2_1_1 * SubSubVirtual_Product2_1_1;
20
	SubOut1_1_1 = SubSubVirtua2_Product2_1_1;
21
	SubOut2_2_1 = SubSubVirtual3_Product2_1_1;
22
tel
23

    
24
node flattening_3_test_Atomic (In1_1_1 : real)
25
returns (Out1_1_1 : real); 
26
var
27
	UnitDelay_1_1 : real;
28
let 
29
	UnitDelay_1_1 = 0.00000000 -> pre In1_1_1;
30
	Out1_1_1 = UnitDelay_1_1;
31
tel
32

    
33
node flattening_3_test (In1_1_1 : real; In2_1_1 : real)
34
returns (Out1_1_1 : real;
35
	Out2_2_1 : real;
36
	Out3_3_1 : real); 
37
var
38
	Atomic_1_1 : real;
39
	SubVirtual_SubAtomic_1_1 : real; SubVirtual_SubAtomic_2_1 : real;
40
	SubVirtual_Sum_1_1 : real;
41
	i_virtual_local : real;
42
let 
43
	Atomic_1_1 = flattening_3_test_Atomic(In2_1_1);
44
	Out1_1_1 = SubVirtual_SubAtomic_1_1;
45
	(SubVirtual_SubAtomic_1_1, SubVirtual_SubAtomic_2_1) = flattening_3_test_SubVirtual_SubAtomic(SubVirtual_Sum_1_1);
46
	SubVirtual_Sum_1_1 = In1_1_1 + In1_1_1;
47
	Out2_2_1 = Atomic_1_1;
48
	Out3_3_1 = SubVirtual_SubAtomic_2_1;
49
	i_virtual_local= 0.0 -> 1.0;
50
tel
51