Problem with z3 (required for SMTChecker) #413
Unanswered
shikhar229169
asked this question in
Q&A
Replies: 3 comments
-
|
+1, I did (Ubuntu 24.04): And still the same? How can I use SMT verification in foundry? It seems the solc provided by foundry is broken. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Workaround:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Followed the below steps and it worked:
[smt]
solver = "z3" # or "eldarica"
z3 --versionOverall [profile.default]
src = 'src'
out = 'out'
libs = ['lib']
[fuzz]
runs = 1000
[invariant]
runs = 1000
depth = 25
fail_on_revert = false
[smt]
solver = "z3"
[profile.default.model_checker]
contracts = {'./src/CaughtWithSymbolic.sol' = ['CaughtWithSymbolic']}
engine = 'chc'
timeout = 1000
targets = ['assert'] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the last lesson of the 3rd video, the Security & Auditing one (TimeStamp: 7:42:10) when I run forge build, it says:
Even after I installed z3, it is giving the same error.
Beta Was this translation helpful? Give feedback.
All reactions