Project

General

Profile

Revision b03d5034

View differences:

regression_tests/lustre_files/success/include/Bias_PP.KIND2.lus
1
-- This file has been generated by CoCoSim2.
2

  
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 20-Nov-2018 18:32:16
5
include "lustrec_math.lus"
6

  
7
(*
8
Original block name: Bias_PP
9
*)
10
node  Bias_PP(_virtual : bool;)
11
returns(Out2_1 : real;);
12
var Constant1_1 : real;
13
	TrigonometricFunction_1 : real;
14
	__time_step : real;
15
	__nb_step : int;
16
let
17
	Constant1_1 = 3.500000000000000;
18
	TrigonometricFunction_1 = sin(Constant1_1);
19
	Out2_1 = TrigonometricFunction_1;
20
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
21
	__nb_step = (0 -> ((pre __nb_step) + 1));
22
tel
23

  
regression_tests/lustre_files/success/include/lustrec_math.lus
1
node imported acos (x: real) returns (y: real) ;
2
node imported acosh (x: real) returns (y: real) ;
3
node imported asin (x: real) returns (y: real) ;
4
node imported asinh (x: real) returns (y: real) ;
5
node imported atan (x: real) returns (y: real) ;
6
node imported atan2(x:real; n: real) returns (y: real) ;
7
node imported atanh (x: real) returns (y: real) ;
8
node imported cbrt (x: real) returns (y: real) ;
9
node imported cos (x: real) returns (y: real) ;
10
(*@contract
11
     	guarantee (y >= -1.0 and y <= 1.0);
12
*)
13
node imported cosh (x: real) returns (y: real) ;
14
node imported ceil (x: real) returns (y: real) ;
15
node imported erf (x: real) returns (y: real) ;
16
node imported exp (x: real) returns (y: real) ;
17
node imported fabs (x: real) returns (y: real) ;
18
node imported floor (x: real) returns (y: real) ;
19
node imported fmod (x,y: real) returns (z: real) ;
20
node imported log (x: real) returns (y: real) ;
21
node imported log10 (x: real) returns (y: real) ;
22
node imported pow (x:real; n: real) returns (y: real) ;
23
node imported round (x: real) returns (y: real) ;
24
node imported sin (x: real) returns (y: real) ;
25
(*@contract
26
     	guarantee (y >= -1.0 and y <= 1.0);
27
*)
28
node imported sinh (x: real) returns (y: real) ;
29
node imported sqrt (x: real) returns (y: real) ;
30
(*@contract
31
     	assume (x >= 0.0);
32
     	guarantee (y >= 0.0);
33
     	guarantee (x >= y);
34
     	guarantee ((y * y) = x);
35
*)
36

  
37
node imported trunc (x: real) returns (y: real) ;
38
node imported tan (x: real) returns (y: real) ;
39
node imported tanh (x: real) returns (y: real) ;

Also available in: Unified diff