Initial commit
Test (in pplus-core) / in-core (push) Failing after 28m44s

This commit is contained in:
alexm committed 2026-11-12 22:23:48 -05:00
commit 568474d52f
1591 files changed
+528213

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
// X >= 0 is FALSE, so ISqrt is never called. The checker keeps ISqrt's
// ENSURE (0 <= RESULT <= X) as a fact anyway, and X >= 0 follows from it.
// INPUT: -1
// MUST-NOT-PROVE: assert@16
FUNCTION ISqrt(N : INTEGER) RETURNS INTEGER
REQUIRE N >= 0
ENSURE RESULT >= 0 AND RESULT <= N
RETURN 0
ENDFUNCTION
DECLARE X : INTEGER
INPUT X
IF X >= 0 AND ISqrt(X) > 2 THEN
OUTPUT "big"
ENDIF
ASSERT X >= 0