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

Silicon cannot find z3 in PATH #617

Open
JonasAlaif opened this issue Jun 2, 2022 · 0 comments
Open

Silicon cannot find z3 in PATH #617

JonasAlaif opened this issue Jun 2, 2022 · 0 comments

Comments

@JonasAlaif
Copy link
Contributor

This change: d35ee70#diff-384bc38b113bf1202dd85dbd22ddee20345c21ef44a92fdde5fae2abd083ab7fR64-R70 added the .isFile and .canExecute checks for "z3", but in scala this only checks if ./z3 exists (it is not true that execute_command(z3Path) doesn't error ==> z3Path.isFile && z3Path.canExecute since z3 can be found in the PATH). I'd suggest removing the checks here:
https://github.com/viperproject/silicon/blob/master/src/main/scala/decider/ProverStdIO.scala#L115-L119
And wrap this line:
https://github.com/viperproject/silicon/blob/master/src/main/scala/decider/ProverStdIO.scala#L136
in a try catch, if we really want to transform the IOException into an ExternalToolError.

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

No branches or pull requests

1 participant