Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix model generation with SatML #832

Closed
wants to merge 22 commits into from

Conversation

Halbaroth
Copy link
Collaborator

@Halbaroth Halbaroth commented Sep 21, 2023

This PR restores the model generation tests.

The PR starts with the commit 2619445.

Please merge this PR just after #829 and before #776.

@Halbaroth Halbaroth changed the title Fix model generation satml Fix model generation with SatML Sep 21, 2023
iguerNL and others added 8 commits September 22, 2023 10:51
- add a data-structure for models,
- save the strucutre in the SAT's env
- print the models in the Frontend module
Some tests about models failed in the OptimAE PR.
This commit allows to tag tests in `tests/` with `fail` tag
which means the test is supposed to fail.
I also remove the mention about the different kind of formats used
to print models. Indeed, we use only the SMT-LIB format and
the Why3 format is slightly different but probably outdated.
As SatML supports model generation, we don't need to select
the appropriate SAT solver while parsing the command line or
the SMT-LIB statement `(set-option :produce-models true)`.
We should print constraints in models only if the appropriate flag is
used in the command line.
Some cram tests are not valid anymore as we don't need to select the SAT
solver Tableaux while generating models.
The dump-models option have been broken by the refactoring in OptimAE.
I restore this feature.
Return the appropriate environment in the Frontend module to
retrieve the model with `(get-model)` as we did in the PR OCamlPro#789.
@Halbaroth Halbaroth closed this Sep 25, 2023
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.

2 participants