Skip to content

pyspec: add --reject-approximations CLI flag#1208

Open
julesmt wants to merge 1 commit into
main2from
julesmt/features/reject-approximations
Open

pyspec: add --reject-approximations CLI flag#1208
julesmt wants to merge 1 commit into
main2from
julesmt/features/reject-approximations

Conversation

@julesmt
Copy link
Copy Markdown
Member

@julesmt julesmt commented May 21, 2026

Adds a strict mode for the Python frontend: every site that would
silently approximate an unsupported construct as a havoc'd Hole or
silently drop it instead raises a hard unsupportedConstruct error.
Default-off for back-compat; the --reject-approximations flag on
pyAnalyzeLaurel turns it on.

Useful when running a verification you intend to trust: if the run
succeeds with the flag on, no Hole was emitted along the way and no
statement was silently dropped, so the obligation set is faithful to
the source.

Adds a strict mode for the Python frontend: every site that would
silently approximate an unsupported construct as a havoc'd Hole or
silently drop it instead raises a hard unsupportedConstruct error.
Default-off for back-compat; the --reject-approximations flag on
pyAnalyzeLaurel turns it on.

Useful when running a verification you intend to trust: if the run
succeeds with the flag on, no Hole was emitted along the way and no
statement was silently dropped, so the obligation set is faithful to
the source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant