/[ascend]/trunk/models/test/compiler/fixfree.a4c
ViewVC logotype

Contents of /trunk/models/test/compiler/fixfree.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2399 - (show annotations) (download) (as text)
Tue Mar 1 00:34:00 2011 UTC (11 years, 11 months ago) by jpye
File MIME type: text/x-ascend
File size: 397 byte(s)
Fixes bug 488.
1 REQUIRE "system.a4l";
2
3 MODEL test1;
4 x,y,z IS_A solver_var;
5 x = y + z;
6 METHODS
7 METHOD on_load;
8 FIX y;
9 END on_load;
10 END test1;
11
12 MODEL test2;
13 x,y,z IS_A solver_var;
14 x = y + z;
15 METHODS
16 METHOD on_load;
17 FIX x,a,b,z;
18 END on_load;
19 END test2;
20
21 MODEL test3;
22 x,y[1..2], z IS_A solver_var;
23 n IS_A integer_constant;
24 x = y[1] + y[2] + z;
25 METHODS
26 METHOD on_load;
27 FIX x,y[n],z;
28 END on_load;
29 END test3;

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22