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?

Mark Jin
  • 2,616
  • 3
  • 25
  • 37
  • 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 Sep 19 '15 at 20:36
  • Huh, this is interesting. Thanks! – Mark Jin Sep 20 '15 at 03:23

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
  • 168,620
  • 35
  • 240
  • 369