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

11 lines
292 B
Plaintext

// SORTED of a two-dimensional ARRAY gives every value (6 here); the checker
// gives SORTED(A) the first length of A.
// MUST-NOT-PROVE: assert@10
DECLARE A : ARRAY[2, 3] OF INTEGER
FOR R <- 0 TO 2
FOR C <- 0 TO 3
A[R, C] <- R + C
NEXT C
NEXT R
ASSERT LENGTH(SORTED(A)) == 2