【发布时间】:2012-11-07 13:22:14
【问题描述】:
您能告诉我如何拆分 unsat cores 的子句吗? 这是问题2,关于发现未饱和核心后,我将再次尝试寻找。 你想告诉怎么做吗?
非常感谢。
如何拆分子句如下
`and` (`or` (`<=_int` 1002 x1) (`<=_int` 1000 x1)) (`and` (`or` (`<=_int` 0 (`+_int` x2 (`*_int` -1003 x1))) (`<=_int` 0 (`+_int` x2 (`*_int` -1230 x1)))) (`and` (`or` (`<=_int` 0 (`+_int` x3 (`*_int` -1999 x2)))
关于问题2,
cout<<s.check(3,assumptions)<<endl;
expr_vector core = s.unsat_core();
................
expr assumptions2[2] = {p1,p3};
cout<<"check next"<<s.check(2,assumptions2)<<endl;
expr_vector core1 = s.unsat_core();
for(unsigned int k=0;k<core1.size();++k){
cout<<"New core size "<<k<<endl;
cout<<"New unsat core "<<core1[k]<<endl;
}
再次调用 unsat core 函数,不能再给 unsat cores。 非常感谢。
【问题讨论】:
-
我不明白这个问题。你能举个例子说明你正在尝试做什么吗?