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

14 lines
523 B
Plaintext

// "An ARRAY keeps its dimensions through a loop" was assumed for every ARRAY
// the body changes, while A <- B gave A the length of B. The language now holds
// an ARRAY to its declared length: the store of another length stops the run.
// (When both lengths are plain numbers the checker refuses the store; B's
// length here is known only to the run.)
// RUN-STOPS: value@11
DECLARE A : ARRAY[3] OF INTEGER
DECLARE N : INTEGER <- 5
DECLARE B : ARRAY[N] OF INTEGER
FOR I <- 0 TO 1
A <- B
NEXT I
ASSERT LENGTH(A) == 3