[Question] Is it possible to add randomness to generated solutions? #7595
Unanswered
jonathan-dilorenzo
asked this question in
Q&A
Replies: 2 comments
-
use options smt.random_seed=NNN and sat.random_seed=NNN to ensure either SMT or SAT core uses randomization. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Amazing! Thanks Nikolaj! We'll give it a shot. |
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
-
Currently (at least in my use of Z3), if I pass Z3 the same formula, it will generate the same solution deterministically every time, which is generally great.
However, I have a use-case (as part of a Fuzzer) where it would be amazing if I could somehow tell Z3 to randomize the solutions more (ideally w.r.t. a seed). Is there any setting that allows for this or do I need to perturb the formula externally to achieve my goal?
Beta Was this translation helpful? Give feedback.
All reactions