1

I observed that the check time of my logical formulas written in z3py changed a lot (from ~60s to ~30s, about 50%) after I removed "-" in the names of the variables that I defined.

E.g.,

vec = IntVector('vec-1',10)

to

vec = IntVector('vec1',10)

Is this something expected? If so, why?

Zhongjun 'Mark' Jin
  • 2,336
  • 3
  • 23
  • 33

1 Answers1

2

Probably, one of those forms has a name collision. In that case Z3 references the same constant twice instead of throwing an error. So you are solving a different formula.

usr
  • 165,323
  • 34
  • 234
  • 359