prusti-dev icon indicating copy to clipboard operation
prusti-dev copied to clipboard

Default precondition of external functions

Open fpoli opened this issue 3 years ago • 4 comments
trafficstars

We discussed that external functions should have false as precondition, instead of true. The latter only makes sense if Prusti verifies all the dependencies, but this is not what cargo-prusti does.

fpoli avatar Mar 22 '22 12:03 fpoli

At the very least this depends on having a solid library of stdlib specifications. Otherwise this kind of thing would quickly make any code unusable without a huge chunk of boilerplate specs.

Aurel300 avatar Mar 22 '22 18:03 Aurel300

At the very least this depends on having a solid library of stdlib specifications. Otherwise this kind of thing would quickly make any code unusable without a huge chunk of boilerplate specs.

I think this is true in any case.

vakaras avatar Mar 22 '22 19:03 vakaras

#1187 is done. When PRUSTI_OPT_IN_VERIFICATION is enabled, we can now use false as the default precondition.

fpoli avatar Feb 01 '23 11:02 fpoli