Skip to content

regression tests: use relative -solver_path to mathsat#63

Merged
fbrausse merged 1 commit intomasterfrom
regr-fix-solver-path
Mar 21, 2026
Merged

regression tests: use relative -solver_path to mathsat#63
fbrausse merged 1 commit intomasterfrom
regr-fix-solver-path

Conversation

@fbrausse
Copy link
Collaborator

This affects tests 172, 173, 182, 197 and fixes one issue observed in #61.

This affects tests 172, 173, 182, 197.
@fbrausse fbrausse requested a review from zurabk March 19, 2026 11:43
@fbrausse fbrausse mentioned this pull request Mar 19, 2026
@fbrausse fbrausse requested review from zurabksmlp and removed request for zurabk March 19, 2026 16:36
@fbrausse fbrausse mentioned this pull request Mar 19, 2026
21 tasks
Copy link
Collaborator

@zurabksmlp zurabksmlp left a comment

Choose a reason for hiding this comment

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

The old full path to mathsat should be removed but currently no path is added instead, and mathsat cannot be called. Is it assumed that a relative path like ../../../external/ will be used instead of an absolute path, or some MATHSAT_PATH variable will be introduced?

@fbrausse
Copy link
Collaborator Author

The old full path to mathsat should be removed but currently no path is added instead, and mathsat cannot be called. Is it assumed that a relative path like ../../../external/ will be used instead of an absolute path, or some MATHSAT_PATH variable will be introduced?

Indeed, using an environment variable for external tools either in general (like SMLP_SOLVER_PATH or so) or for each solver separately is a good idea, I think. I've setup my repo here s.t. ../../../external/ exists with MathSAT inside it. For the release I just wanted to get rid of the old Intel path structure to keep the regression tests consistent.

@fbrausse
Copy link
Collaborator Author

An alternative to introducing yet another environment variable would be setting the standard PATH and removing the mathsat-5.6.8-linux-x86_64-reentrant/bin/ component from the regression tests as well, only leaving -solver_path mathsat. That might be the cleanest approach, what do you think?

@zurabksmlp
Copy link
Collaborator

I think specifying a path explicitly in the command line would be best for clarity and also for debugging which version of mathsat is used or why it is not accessible. Since in regression we will have some directory structure regression script can use relative path, in other use cases a relative or absolute path can be used. A drawback could be that user should be aware of mathsat location, but in this specific case it should be OK since mathsat license is not as liberal as Z3 license and likely mathsat will not be packaged together with SMLP releases. In any case we do not need a decision now and I will approve the PR.

Copy link
Collaborator

@zurabksmlp zurabksmlp left a comment

Choose a reason for hiding this comment

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

Approving this PR.

@fbrausse fbrausse merged commit e17d217 into master Mar 21, 2026
@fbrausse fbrausse deleted the regr-fix-solver-path branch March 21, 2026 13:35
@zurabksmlp
Copy link
Collaborator

zurabksmlp commented Mar 21, 2026 via email

@fbrausse
Copy link
Collaborator Author

Another point - now this change significantly increases my effort, as I'll
have to update automation scripts once again

@mdmitry1 Why do you think this change would affect anything you do at all?

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.

2 participants