3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-01 08:53:18 +00:00

fix for github issue 54

This commit is contained in:
Ken McMillan 2015-05-19 18:47:13 -07:00
parent 69a3590490
commit ccc1f02216
3 changed files with 25 additions and 3 deletions

View file

@ -1702,14 +1702,16 @@ public:
return res;
}
}
if(dk == PR_MODUS_PONENS && expect_clause && op(con) == Or){
if(dk == PR_MODUS_PONENS && expect_clause && op(con) == Or && op(conc(prem(proof,0))) == Or){
Iproof::node clause = translate_main(prem(proof,0),true);
res = RewriteClause(clause,prem(proof,1));
return res;
}
#if 0
if(dk == PR_MODUS_PONENS && expect_clause && op(con) == Or)
std::cout << "foo!\n";
#endif
// no idea why this shows up
if(dk == PR_MODUS_PONENS_OEQ){
@ -1965,6 +1967,16 @@ public:
res = make(commute,pf,comm_equiv);
break;
}
case PR_AND_ELIM: {
std::vector<ast> rule_ax, res_conc;
ast piv = conc(prem(proof,0));
rule_ax.push_back(make(Not,piv));
rule_ax.push_back(con);
ast pf = iproof->make_axiom(rule_ax);
res_conc.push_back(con);
res = iproof->make_resolution(piv,res_conc,pf,args[0]);
break;
}
default:
pfgoto(proof);
assert(0 && "translate_main: unsupported proof rule");