What is the importance of the order of the assertions in Z3?

前端 未结 1 1503
迷失自我
迷失自我 2021-01-06 15:42

I have two files whose content is identical except for the order in which I placed the assertions: in one file, the assertions are placed in the reverse order of the other.

相关标签:
1条回答
  • 2021-01-06 16:18

    What could be the reason for this difference?

    SMT solvers implement DPLL(T) algorithm, which is a combination of (a variant of) the DPLL procedure and decision procedures.

    Performance of DPLL is heavily affected by the choice of variables for branching. There are the cases of which the running time is constant or exponential depending on variable selection.

    If the two formulas are logically equivalent (you need to double-check), then I think the only possibility is that, the different order in the two formulas leads to different order in variable selection, which eventually leads to difference in performance.

    0 讨论(0)
提交回复
热议问题