Skip to content

Commit

Permalink
First pass on ecCircuits error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo2622 committed Nov 22, 2024
1 parent 1d04ab9 commit fa56c97
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 219 deletions.
4 changes: 3 additions & 1 deletion libs/lospecs/hlaig.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ end
(* Assumes circuit inputs have already been appropriately renamed *)
module MakeSMTInterface(SMT: SMTInstance) : SMTInterface = struct
let circ_equiv (r1 : Aig.reg) (r2 : Aig.reg) (pcond : Aig.node) (inps: (int * int) list) : bool =
assert ((List.compare_length_with r1 0 > 0) && (List.compare_length_with r2 0 > 0));
if not ((List.compare_length_with r1 0 > 0) && (List.compare_length_with r2 0 > 0)) then
(Format.eprintf "Sizes differ in circ_equiv"; false)
else
let bvvars : SMT.bvterm Map.String.t ref = ref Map.String.empty in

let rec bvterm_of_node : Aig.node -> SMT.bvterm =
Expand Down
Loading

0 comments on commit fa56c97

Please sign in to comment.