Setting logic for solver in Z3 (API)

前端 未结 2 1466
一生所求
一生所求 2021-01-22 00:58

I notice that the Z3 C++ (and C) API allows you to supply the logic to be used.

I have two questions about this that I couldn\'t answer by looking online:

2条回答
  •  梦谈多话
    2021-01-22 01:49

    Try it out and see!

    Usually it does make a big difference. Setting the logic means the solver will use a specialized tactic to solve the formula, instead of going through the generic loop. Z3 will also try to guess the logic, but it's usually better to just provide it upfront.

提交回复
热议问题