Why Z3Py does not provide all possible solutions

后端 未结 2 1037
时光说笑
时光说笑 2020-12-11 11:00

I ran into a problem where Z3Py does not enumerate all possible solutions for the given Boolean clauses. I was wondering if anyone knows why this is happening.

Here

2条回答
  •  我在风中等你
    2020-12-11 11:45

    The other thing is that not all the solutions in Z3Py contain all the defined variables.

    That means that the unmentioned variables do not affect the result. So having ['-2', '-4', '3', '5'] as a solution is equivalent to having both ['1', '-2', '-4', '3', '5'] and ['-1', '-2', '-4', '3', '5'].

    If you take that into account when comparing the solutions, the sets of solutions provided by both solvers are equivalent.

提交回复
热议问题