Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added all split xor rules #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/smtinterpol/ir.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ type rewrite_rule =
| Rewrite_intern

type split_rule =
| Split_xor_1
| Split_xor_2
| Split_xor_minus_1
| Split_xor_minus_2
| Split_xor_plus_1
| Split_xor_plus_2
| Split_notOr

type equality_proof =
Expand Down
5 changes: 4 additions & 1 deletion src/smtinterpol/ir_to_clauses.ml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,10 @@ let handle_split unsplit_clause split_rule form =
let first_sub_form = get_subformula heap_form 0 in
if Form.pform first_sub_form = Form.pform needle_form then 0 else 1 in
match split_rule with
| Split_xor_2 ->
| Split_xor_plus_1 | Split_xor_minus_1 ->
let split_clause = lmkOther (ImmBuildDef unsplit_clause) None in
split_clause
| Split_xor_plus_2 | Split_xor_minus_2 ->
let split_clause = lmkOther (ImmBuildDef2 unsplit_clause) None in
split_clause
| Split_notOr ->
Expand Down
6 changes: 4 additions & 2 deletions src/smtinterpol/smtlib_to_ir.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ let rec walk_equality_proof term =
*)
let rec walk_formula_proof term =
let handle_split_annotation = function
| ":xor-1" -> Split_xor_1
| ":xor-2" -> Split_xor_2
| ":xor-1" -> Split_xor_minus_1
| ":xor-2" -> Split_xor_minus_2
| ":xor+1" -> Split_xor_plus_1
| ":xor+2" -> Split_xor_plus_2
| ":notOr" -> Split_notOr in
match (deconstruct_qualidterm term) with
| "@asserted", [ft] ->
Expand Down