raz
/
test
/
run
/ DivLowestI16.raz
about
files
log
releases
feed
15 lines · 275 B ·
raw
·
history
· last change
2411fde8
1
module
DivLowestI16;
2
(* mod too: the lowest I16 mod -1 overflows the division as div does *)
3
import
Out;
4
5
proc
main*;
6
var
a, b:
I16
;
7
begin
8
a := -
32768
;
9
b :=
I16
(
ARGC
() -
2
);
10
Out.int(
I64
(a
mod
3
));
11
Out.flush;
12
Out.int(
I64
(a
mod
b));
13
end
;
14
15
end
DivLowestI16.