1

 This file has been generated by CoCoSim2.

2


3

 Compiler: Lustre compiler 2 (ToLustre.m)

4

 Time: 03Dec2018 22:18:43

5

(*

6

Original block name: Assignment_port_2

7

*)

8

node Assignment_port_2(_virtual : bool;)

9

returns(Out1_1 : real;

10

Out1_2 : real;

11

Out1_3 : real;

12

Out1_4 : real;

13

Out1_5 : real;

14

Out1_6 : real;

15

Out1_7 : real;

16

Out1_8 : real;

17

Out1_9 : real;

18

Out1_10 : real;

19

Out1_11 : real;

20

Out1_12 : real;

21

Out1_13 : real;

22

Out1_14 : real;

23

Out1_15 : real;

24

Out1_16 : real;);

25

var Assignment_5_986_U_index_1 : int;

26

Assignment_5_986_U_index_2 : int;

27

Assignment_5_986_U_index_3 : int;

28

Assignment_5_986_U_index_4 : int;

29

Assignment_5_986_ind_dim_1_1 : int;

30

Assignment_5_986_ind_dim_1_2 : int;

31

Assignment_5_986_ind_dim_2_1 : int;

32

Assignment_5_986_ind_dim_2_2 : int;

33

Assignment_5_986_str_Y_index_1_1 : int;

34

Assignment_5_986_str_Y_index_1_2 : int;

35

Assignment_5_986_str_Y_index_2_1 : int;

36

Assignment_5_986_str_Y_index_2_2 : int;

37

Assignment_5_986_str_Y_index_3_1 : int;

38

Assignment_5_986_str_Y_index_3_2 : int;

39

Assignment_5_986_str_Y_index_4_1 : int;

40

Assignment_5_986_str_Y_index_4_2 : int;

41

Assignment_1 : real;

42

Assignment_2 : real;

43

Assignment_3 : real;

44

Assignment_4 : real;

45

Assignment_5 : real;

46

Assignment_6 : real;

47

Assignment_7 : real;

48

Assignment_8 : real;

49

Assignment_9 : real;

50

Assignment_10 : real;

51

Assignment_11 : real;

52

Assignment_12 : real;

53

Assignment_13 : real;

54

Assignment_14 : real;

55

Assignment_15 : real;

56

Assignment_16 : real;

57

Constant_1 : real;

58

Constant_2 : real;

59

Constant_3 : real;

60

Constant_4 : real;

61

Constant_5 : real;

62

Constant_6 : real;

63

Constant_7 : real;

64

Constant_8 : real;

65

Constant_9 : real;

66

Constant_10 : real;

67

Constant_11 : real;

68

Constant_12 : real;

69

Constant_13 : real;

70

Constant_14 : real;

71

Constant_15 : real;

72

Constant_16 : real;

73

Constant1_1 : real;

74

Constant1_2 : real;

75

Constant1_3 : real;

76

Constant1_4 : real;

77

Constant2_1 : int;

78

Constant2_2 : int;

79

__time_step : real;

80

__nb_step : int;

81

let

82

Assignment_5_986_ind_dim_1_1 = 3;

83

Assignment_5_986_ind_dim_1_2 = 4;

84

Assignment_5_986_ind_dim_2_1 = (Constant2_1 + 1);

85

Assignment_5_986_ind_dim_2_2 = (Constant2_2 + 1);

86

Assignment_5_986_str_Y_index_1_1 = Assignment_5_986_ind_dim_1_1;

87

Assignment_5_986_str_Y_index_1_2 = Assignment_5_986_ind_dim_2_1;

88

Assignment_5_986_U_index_1 = ( (Assignment_5_986_str_Y_index_1_1 * 1) + ((Assignment_5_986_str_Y_index_1_2  1) * 4) );

89

Assignment_5_986_str_Y_index_2_1 = Assignment_5_986_ind_dim_1_2;

90

Assignment_5_986_str_Y_index_2_2 = Assignment_5_986_ind_dim_2_1;

91

Assignment_5_986_U_index_2 = ( (Assignment_5_986_str_Y_index_2_1 * 1) + ((Assignment_5_986_str_Y_index_2_2  1) * 4) );

92

Assignment_5_986_str_Y_index_3_1 = Assignment_5_986_ind_dim_1_1;

93

Assignment_5_986_str_Y_index_3_2 = Assignment_5_986_ind_dim_2_2;

94

Assignment_5_986_U_index_3 = ( (Assignment_5_986_str_Y_index_3_1 * 1) + ((Assignment_5_986_str_Y_index_3_2  1) * 4) );

95

Assignment_5_986_str_Y_index_4_1 = Assignment_5_986_ind_dim_1_2;

96

Assignment_5_986_str_Y_index_4_2 = Assignment_5_986_ind_dim_2_2;

97

Assignment_5_986_U_index_4 = ( (Assignment_5_986_str_Y_index_4_1 * 1) + ((Assignment_5_986_str_Y_index_4_2  1) * 4) );

98

Assignment_1 = if (Assignment_5_986_U_index_4 = 1) then

99

Constant1_4

100

else if (Assignment_5_986_U_index_3 = 1) then

101

Constant1_3

102

else if (Assignment_5_986_U_index_2 = 1) then

103

Constant1_2

104

else if (Assignment_5_986_U_index_1 = 1) then

105

Constant1_1

106

else Constant_1;

107

Assignment_2 = if (Assignment_5_986_U_index_4 = 2) then

108

Constant1_4

109

else if (Assignment_5_986_U_index_3 = 2) then

110

Constant1_3

111

else if (Assignment_5_986_U_index_2 = 2) then

112

Constant1_2

113

else if (Assignment_5_986_U_index_1 = 2) then

114

Constant1_1

115

else Constant_2;

116

Assignment_3 = if (Assignment_5_986_U_index_4 = 3) then

117

Constant1_4

118

else if (Assignment_5_986_U_index_3 = 3) then

119

Constant1_3

120

else if (Assignment_5_986_U_index_2 = 3) then

121

Constant1_2

122

else if (Assignment_5_986_U_index_1 = 3) then

123

Constant1_1

124

else Constant_3;

125

Assignment_4 = if (Assignment_5_986_U_index_4 = 4) then

126

Constant1_4

127

else if (Assignment_5_986_U_index_3 = 4) then

128

Constant1_3

129

else if (Assignment_5_986_U_index_2 = 4) then

130

Constant1_2

131

else if (Assignment_5_986_U_index_1 = 4) then

132

Constant1_1

133

else Constant_4;

134

Assignment_5 = if (Assignment_5_986_U_index_4 = 5) then

135

Constant1_4

136

else if (Assignment_5_986_U_index_3 = 5) then

137

Constant1_3

138

else if (Assignment_5_986_U_index_2 = 5) then

139

Constant1_2

140

else if (Assignment_5_986_U_index_1 = 5) then

141

Constant1_1

142

else Constant_5;

143

Assignment_6 = if (Assignment_5_986_U_index_4 = 6) then

144

Constant1_4

145

else if (Assignment_5_986_U_index_3 = 6) then

146

Constant1_3

147

else if (Assignment_5_986_U_index_2 = 6) then

148

Constant1_2

149

else if (Assignment_5_986_U_index_1 = 6) then

150

Constant1_1

151

else Constant_6;

152

Assignment_7 = if (Assignment_5_986_U_index_4 = 7) then

153

Constant1_4

154

else if (Assignment_5_986_U_index_3 = 7) then

155

Constant1_3

156

else if (Assignment_5_986_U_index_2 = 7) then

157

Constant1_2

158

else if (Assignment_5_986_U_index_1 = 7) then

159

Constant1_1

160

else Constant_7;

161

Assignment_8 = if (Assignment_5_986_U_index_4 = 8) then

162

Constant1_4

163

else if (Assignment_5_986_U_index_3 = 8) then

164

Constant1_3

165

else if (Assignment_5_986_U_index_2 = 8) then

166

Constant1_2

167

else if (Assignment_5_986_U_index_1 = 8) then

168

Constant1_1

169

else Constant_8;

170

Assignment_9 = if (Assignment_5_986_U_index_4 = 9) then

171

Constant1_4

172

else if (Assignment_5_986_U_index_3 = 9) then

173

Constant1_3

174

else if (Assignment_5_986_U_index_2 = 9) then

175

Constant1_2

176

else if (Assignment_5_986_U_index_1 = 9) then

177

Constant1_1

178

else Constant_9;

179

Assignment_10 = if (Assignment_5_986_U_index_4 = 10) then

180

Constant1_4

181

else if (Assignment_5_986_U_index_3 = 10) then

182

Constant1_3

183

else if (Assignment_5_986_U_index_2 = 10) then

184

Constant1_2

185

else if (Assignment_5_986_U_index_1 = 10) then

186

Constant1_1

187

else Constant_10;

188

Assignment_11 = if (Assignment_5_986_U_index_4 = 11) then

189

Constant1_4

190

else if (Assignment_5_986_U_index_3 = 11) then

191

Constant1_3

192

else if (Assignment_5_986_U_index_2 = 11) then

193

Constant1_2

194

else if (Assignment_5_986_U_index_1 = 11) then

195

Constant1_1

196

else Constant_11;

197

Assignment_12 = if (Assignment_5_986_U_index_4 = 12) then

198

Constant1_4

199

else if (Assignment_5_986_U_index_3 = 12) then

200

Constant1_3

201

else if (Assignment_5_986_U_index_2 = 12) then

202

Constant1_2

203

else if (Assignment_5_986_U_index_1 = 12) then

204

Constant1_1

205

else Constant_12;

206

Assignment_13 = if (Assignment_5_986_U_index_4 = 13) then

207

Constant1_4

208

else if (Assignment_5_986_U_index_3 = 13) then

209

Constant1_3

210

else if (Assignment_5_986_U_index_2 = 13) then

211

Constant1_2

212

else if (Assignment_5_986_U_index_1 = 13) then

213

Constant1_1

214

else Constant_13;

215

Assignment_14 = if (Assignment_5_986_U_index_4 = 14) then

216

Constant1_4

217

else if (Assignment_5_986_U_index_3 = 14) then

218

Constant1_3

219

else if (Assignment_5_986_U_index_2 = 14) then

220

Constant1_2

221

else if (Assignment_5_986_U_index_1 = 14) then

222

Constant1_1

223

else Constant_14;

224

Assignment_15 = if (Assignment_5_986_U_index_4 = 15) then

225

Constant1_4

226

else if (Assignment_5_986_U_index_3 = 15) then

227

Constant1_3

228

else if (Assignment_5_986_U_index_2 = 15) then

229

Constant1_2

230

else if (Assignment_5_986_U_index_1 = 15) then

231

Constant1_1

232

else Constant_15;

233

Assignment_16 = if (Assignment_5_986_U_index_4 = 16) then

234

Constant1_4

235

else if (Assignment_5_986_U_index_3 = 16) then

236

Constant1_3

237

else if (Assignment_5_986_U_index_2 = 16) then

238

Constant1_2

239

else if (Assignment_5_986_U_index_1 = 16) then

240

Constant1_1

241

else Constant_16;

242

Constant_1 = 1.000000000000000;

243

Constant_2 = 5.000000000000000;

244

Constant_3 = 9.000000000000000;

245

Constant_4 = 13.000000000000000;

246

Constant_5 = 2.000000000000000;

247

Constant_6 = 6.000000000000000;

248

Constant_7 = 10.000000000000000;

249

Constant_8 = 14.000000000000000;

250

Constant_9 = 3.000000000000000;

251

Constant_10 = 7.000000000000000;

252

Constant_11 = 11.000000000000000;

253

Constant_12 = 15.000000000000000;

254

Constant_13 = 4.000000000000000;

255

Constant_14 = 8.000000000000000;

256

Constant_15 = 12.000000000000000;

257

Constant_16 = 16.000000000000000;

258

Constant1_1 = 7.000000000000000;

259

Constant1_2 = 8.000000000000000;

260

Constant1_3 = 9.000000000000000;

261

Constant1_4 = 10.000000000000000;

262

Constant2_1 = 2;

263

Constant2_2 = 3;

264

Out1_1 = Assignment_1;

265

Out1_2 = Assignment_2;

266

Out1_3 = Assignment_3;

267

Out1_4 = Assignment_4;

268

Out1_5 = Assignment_5;

269

Out1_6 = Assignment_6;

270

Out1_7 = Assignment_7;

271

Out1_8 = Assignment_8;

272

Out1_9 = Assignment_9;

273

Out1_10 = Assignment_10;

274

Out1_11 = Assignment_11;

275

Out1_12 = Assignment_12;

276

Out1_13 = Assignment_13;

277

Out1_14 = Assignment_14;

278

Out1_15 = Assignment_15;

279

Out1_16 = Assignment_16;

280

__time_step = (0.0 > ((pre __time_step) + 0.200000000000000));

281

__nb_step = (0 > ((pre __nb_step) + 1));

282

tel

283

