mirror of
https://github.com/c-cube/sidekick.git
synced 2026-01-24 18:36:43 -05:00
Only pure hypothesis are instantly learned
This commit is contained in:
parent
5786e26705
commit
6005652f3f
1 changed files with 1 additions and 1 deletions
|
|
@ -501,6 +501,7 @@ module Make (L : Log_intf.S)(E : Expr_intf.S)
|
|||
L.debug 10 "Adding clause : %a" St.pp_clause init0;
|
||||
try
|
||||
if Proof.has_been_proved init0 then raise Trivial;
|
||||
assert (Proof.is_proven init0); (* Important side-effect, DO NOT REMOVE *)
|
||||
let atoms, init = partition atoms init0 in
|
||||
let size = List.length atoms in
|
||||
match atoms with
|
||||
|
|
@ -513,7 +514,6 @@ module Make (L : Log_intf.S)(E : Expr_intf.S)
|
|||
else make_clause name atoms size true (History [init0])
|
||||
in
|
||||
L.debug 1 "New clause : %a" St.pp_clause clause;
|
||||
Proof.prove clause;
|
||||
attach_clause clause;
|
||||
Vec.push env.clauses clause;
|
||||
if a.neg.is_true then begin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue