This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// Roll() gives a different number on each call. The checker treats a
|
||||
// FUNCTION as a function of its arguments only, so Roll() == Roll().
|
||||
// MUST-NOT-PROVE: assert@12
|
||||
FUNCTION Roll() RETURNS INTEGER
|
||||
RETURN RANDINT(1, 7)
|
||||
ENDFUNCTION
|
||||
|
||||
DECLARE A : INTEGER
|
||||
DECLARE B : INTEGER
|
||||
A <- Roll()
|
||||
B <- Roll()
|
||||
ASSERT A == B
|
||||
Reference in new issue
Block a user