Closed fengwz17 closed 11 months ago
Hello! This "works as expected" because VCs generation within lambdas is modular: that is the inputs passed to the lambdas is not constrained (see comment https://github.com/epfl-lara/stainless/issues/1370#issuecomment-1359865635).
Hello! This "works as expected" because VCs generation within lambdas is modular: that is the inputs passed to the lambdas is not constrained (see comment #1370 (comment)).
I see, thanks!
I wonder how to provide pre- conditions for expression like
ScanLeft
.Given the following code,
The assertion
assert(j >= 0)
is reported invalid with a counterexampleSeems that it is beacause the information of
list
is not provided toScanLeft
, so how to provide such property inScanLeft
? (It cannot be provided byrequire
as a function call)