| 1 | module DivLowestI8; |
| 2 | (* The lowest of every signed type divided by -1 stops the program, not |
| 3 | only the lowest I64's: here an I8's, by a divisor not known *) |
| 4 | import Out; |
| 5 | |
| 6 | proc main*; |
| 7 | var a, b: I8; |
| 8 | begin |
| 9 | a := -128; |
| 10 | b := I8(ARGC() - 2); |
| 11 | Out.int(I64(a div (-2))); |
| 12 | Out.flush; |
| 13 | Out.int(I64(a div b)); |
| 14 | end; |
| 15 | |
| 16 | end DivLowestI8. |