| 1 | module DivLowest; |
| 2 | (* The lowest I64 divided by -1 stops the program with SIGFPE, as |
| 3 | dividing by zero does *) |
| 4 | import Out; |
| 5 | |
| 6 | proc main*; |
| 7 | var a, b: I64; |
| 8 | begin |
| 9 | a := -9223372036854775807 - 1; |
| 10 | b := ARGC() - 2; |
| 11 | Out.int(a div (-2)); |
| 12 | Out.flush; |
| 13 | Out.int(a div b); |
| 14 | end; |
| 15 | |
| 16 | end DivLowest. |