Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
6eecc5ac
Commit
6eecc5ac
authored
Jun 07, 2014
by
dbarbera
Browse files
Added rem and relational expressions
parent
a7c421ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/test13/basic.pr
View file @
6eecc5ac
...
...
@@ -21,13 +21,17 @@ NEXTSTATE Wait;
STATE Wait;
/* CIF INPUT (-85, -88), (100, 50) */
INPUT run;
/* CIF TASK (-124, -23), (179, 35) */
TASK i := ((i + 1) - 1) * 1 / 1 mod 1;
/* CIF TASK (-128, 27), (186, 35) */
/* CIF TASK (-170, -23), (271, 35) */
TASK i := ((i + 1) - (1 mod 1)) * 1 / 1 + 1 rem 1;
/* CIF TASK (-202, 27), (335, 35) */
TASK f := (f + 3.0 - (2.0 mod 1.0)) * 2.0 / 2.0 + 1.0 rem 1.0;
/* CIF TASK (-156, 77), (243, 35) */
TASK b := (b or false) and true xor false;
/* CIF TASK (-118, 77), (166, 35) */
TASK f := (f + 3.0) * 0.5 / 2.0;
/* CIF NEXTSTATE (-85, 127), (100, 50) */
/* CIF TASK (-242, 127), (414, 35) */
TASK b := 1 < 2 and 2 <= 2 and 2 >= 1 and 2 >= 2 and 1 = 1 and 1 /= 1;
/* CIF TASK (-302, 177), (535, 35) */
TASK b := 1.0 < 2.0 and 2.0 <= 2.0 and 2.0 >= 1.0 and 2.0 >= 2.0 and 1.0 = 1.0 and 1.0 /= 1.0;
/* CIF NEXTSTATE (-85, 227), (100, 50) */
NEXTSTATE Wait;
ENDSTATE;
ENDPROCESS basic;
ENDPROCESS basic;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment