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

[models] Add tests for model generation #703

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

bclement-ocp
Copy link
Collaborator

This updates the [gentest] tool to be able to add tests for model generation.

Note that while writing this I noticed:

  • Model generation doesn't work for check_sat in the Alt-Ergo language (the models are not printed, unless --dump-model is provided)
  • When using check_sat with Alt-Ergo or (check-sat-assuming) for smtlib2, we are not actually taking into consideration the assumptions when printing the model and print the pre-solve model. Or something similar (the gist of it is that process_decl discards the generated model). I will make separate PRs for these.

Copy link
Collaborator

@Halbaroth Halbaroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Halbaroth Halbaroth added this to the 2.5.0 milestone Jun 27, 2023
@bclement-ocp
Copy link
Collaborator Author

Uh, looks like some of the expected files are empty, not sure what's going on

This updates the [gentest] tool to be able to add tests for model
generation.
@bclement-ocp bclement-ocp enabled auto-merge (squash) June 27, 2023 11:15
@bclement-ocp bclement-ocp disabled auto-merge June 27, 2023 11:15
@bclement-ocp bclement-ocp enabled auto-merge (squash) June 27, 2023 11:16
@bclement-ocp bclement-ocp requested a review from Halbaroth June 27, 2023 11:16
There are regressions otherwise, see OCamlPro#704
@Halbaroth
Copy link
Collaborator

Did you promote them with make promote?

@bclement-ocp
Copy link
Collaborator Author

No I just messed up a rule in gentest and the tests were not actually being run 😁 It should be good now if you can re-review!

@bclement-ocp bclement-ocp merged commit c77466c into OCamlPro:next Jun 27, 2023
@bclement-ocp bclement-ocp deleted the model_tests branch January 3, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants