Files
pplus-library/pseudo/prover/impure-function.pseudo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

13 lines
317 B
Plaintext

// 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