1.23
2.0
main
test-branch
|
Last change
on this file since 6a4e2e0 was 06b8536c, checked in by Stephen Siegel <siegel@…>, 13 years ago |
|
Starting to clean up examples, but adding some extra versions of matmat as bug have been revealed.
Optimized somewhat evaluation of conditional (if then else) expressions, though I now feel this construct should be translated away.
Added a method to get the canonic ID of a state, minor changes.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@257 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
194 bytes
|
| Rev | Line | |
|---|
| [06b8536c] | 1 | /* divisionBad.cvl: denominator in division could be 0,
|
|---|
| 2 | * so error should be reported.
|
|---|
| 3 | */
|
|---|
| 4 | $input double x;
|
|---|
| 5 | $input double y; // could be 0
|
|---|
| 6 |
|
|---|
| 7 | void main() {
|
|---|
| 8 | double z = x/y;
|
|---|
| 9 |
|
|---|
| 10 | $assert y*z==x;
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.