26 lines
373 B
Coq
26 lines
373 B
Coq
|
|
module main;
|
||
|
|
|
||
|
|
int foo;
|
||
|
|
|
||
|
|
initial begin
|
||
|
|
foo = 1;
|
||
|
|
foo ++;
|
||
|
|
++ foo;
|
||
|
|
if (foo !== 3) begin
|
||
|
|
$display("FAILED -- foo=%0d", foo);
|
||
|
|
$finish;
|
||
|
|
end
|
||
|
|
|
||
|
|
foo --;
|
||
|
|
-- foo;
|
||
|
|
if (foo !== 1) begin
|
||
|
|
$display("FAILED -- foo=%0d", foo);
|
||
|
|
$finish;
|
||
|
|
end
|
||
|
|
|
||
|
|
$display("PASSED");
|
||
|
|
$finish;
|
||
|
|
end // initial begin
|
||
|
|
|
||
|
|
endmodule // main
|