Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_abs_test / abs_test.lus @ 6c3ea955

History | View | Annotate | Download (1.66 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node abs_test (In1_1_1 : real; In2_1_1 : int; In2_1_2 : int; In2_1_3 : int; In3_1_1 : real; In3_1_2 : real; In3_1_3 : real; In3_1_4 : real; In3_1_5 : real; In3_1_6 : real; In3_1_7 : real; In3_1_8 : real)
6
returns (Out1_1_1 : real;
7
	Out2_2_1 : int; Out2_2_2 : int; Out2_2_3 : int;
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; Out3_3_7 : real; Out3_3_8 : real); 
9
var
10
	Abs_1_1 : real;
11
	Abs1_1_1 : int; Abs1_1_2 : int; Abs1_1_3 : int;
12
	Abs2_1_1 : real; Abs2_1_2 : real; Abs2_1_3 : real; Abs2_1_4 : real; Abs2_1_5 : real; Abs2_1_6 : real; Abs2_1_7 : real; Abs2_1_8 : real;
13
	i_virtual_local : real;
14
let 
15
	Abs_1_1 = if In1_1_1 >= 0.0 then In1_1_1 else -In1_1_1;
16
	Abs1_1_1 = if In2_1_1 >= 0 then In2_1_1 else -In2_1_1;
17
	Abs1_1_2 = if In2_1_2 >= 0 then In2_1_2 else -In2_1_2;
18
	Abs1_1_3 = if In2_1_3 >= 0 then In2_1_3 else -In2_1_3;
19
	Abs2_1_1 = if In3_1_1 >= 0.0 then In3_1_1 else -In3_1_1;
20
	Abs2_1_2 = if In3_1_2 >= 0.0 then In3_1_2 else -In3_1_2;
21
	Abs2_1_3 = if In3_1_3 >= 0.0 then In3_1_3 else -In3_1_3;
22
	Abs2_1_4 = if In3_1_4 >= 0.0 then In3_1_4 else -In3_1_4;
23
	Abs2_1_5 = if In3_1_5 >= 0.0 then In3_1_5 else -In3_1_5;
24
	Abs2_1_6 = if In3_1_6 >= 0.0 then In3_1_6 else -In3_1_6;
25
	Abs2_1_7 = if In3_1_7 >= 0.0 then In3_1_7 else -In3_1_7;
26
	Abs2_1_8 = if In3_1_8 >= 0.0 then In3_1_8 else -In3_1_8;
27
	Out1_1_1 = Abs_1_1;
28
	Out2_2_1 = Abs1_1_1;
29
	Out2_2_2 = Abs1_1_2;
30
	Out2_2_3 = Abs1_1_3;
31
	Out3_3_1 = Abs2_1_1;
32
	Out3_3_2 = Abs2_1_2;
33
	Out3_3_3 = Abs2_1_3;
34
	Out3_3_4 = Abs2_1_4;
35
	Out3_3_5 = Abs2_1_5;
36
	Out3_3_6 = Abs2_1_6;
37
	Out3_3_7 = Abs2_1_7;
38
	Out3_3_8 = Abs2_1_8;
39
	i_virtual_local= 0.0 -> 1.0;
40
tel
41