Skip to content

Make save-mix respect disabled postconditions#17

Open
zaidenx wants to merge 1 commit into
fmlab-iis:masterfrom
zaidenx:save-mix-respect-disabled-post
Open

Make save-mix respect disabled postconditions#17
zaidenx wants to merge 1 commit into
fmlab-iis:masterfrom
zaidenx:save-mix-respect-disabled-post

Conversation

@zaidenx

@zaidenx zaidenx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This patch makes save-mix respect the existing command-line flags
-disable_rpost and -disable_epost when generating mixed-theory SMT-LIB files.

Previously, Verify.Mix.smtlib_spec always included both range and algebraic
postconditions. This patch adds optional rpost and epost parameters to
Verify.Mix.smtlib_spec and forwards verify_rpost / verify_epost
from the command-line configuration.

Tested:

  • dune build
  • -disable_rpost with
    examples/openssl/x25519/armv8/x25519_fe64_add.cl
  • -disable_epost with
    examples/openssl/x25519/armv8/x25519_fe64_mul.cl

Observed behavior:

  • with -disable_rpost, the generated save-mix SMT-LIB output changes and
    the range postcondition is removed/disabled
  • with -disable_epost, the generated postcondition changes from an
    algebraic condition like
    (assert (not (and true (eqmodP1 ... ))))
    to
    (assert (not (and true true))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant