Does random_seed affect the initial state of parameters in an implementation? #578
-
I'm interested in leveraging the random_seed attribute in order to have variety in the values returned by z3's counterexample. For instance, this implementation has 3 parameters of different types.
No matter what I change the random_seed number N to, the initial state of the counterexample model always has the same values for i#0, j#0, and k#0.
Is this due to implementation parameters being immutable? I understand I'm not allowed to havoc these parameters for the same reason. I'm wondering if this is also why z3 doesn't return values within the parameters' domains, no matter what random_seed is specified. I'm willing to post the whole .bpl file as needed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried an example where the values of the variables |
Beta Was this translation helpful? Give feedback.
Have you tried an example where the values of the variables
i
j
andk
determine whether the assertion fails or not? I'm not sure whether that would help but to me it seems like a worthwhile experiment.