@@ -16,16 +16,14 @@ let empty : t =
1616
1717(* TODO: should we make some normalization here? *)
1818(* TODO: it would be better to split the conjunctions in many sub-conditions *)
19- let add ({ uf; set } as old : t ) (c : Symbolic_value.bool ) : t =
19+ let add ({ uf; set } : t ) (c : Symbolic_value.bool ) : t =
2020 match Smtml.Expr. get_symbols [ c ] with
2121 | [] ->
22- (* TODO: It means Smt.ml did not properly simplified a expression... *)
23- (* assert false *)
24- (* For now, we use this, it should be removed and assert false should be used instead later *)
25- Logs. debug (fun m ->
22+ (* It means Smt.ml did not properly simplified a expression! *)
23+ Logs. err (fun m ->
2624 m " an expression was not simplified by smtml: %a" Symbolic_value. pp_int32
2725 c );
28- old
26+ assert false
2927 | hd :: tl ->
3028 let set = Smtml.Expr.Set. add c set in
3129 (* We add the first symbol to the UF *)
@@ -46,16 +44,14 @@ let add ({ uf; set } as old : t) (c : Symbolic_value.bool) : t =
4644let to_set { uf = _ ; set } = set
4745
4846(* Return the set of constraints from [pc] that are relevant for [c]. *)
49- let slice ({ uf; set } : t ) (c : Symbolic_value.bool ) : Smtml.Expr.Set.t =
47+ let slice ({ uf; set = _ } : t ) (c : Symbolic_value.bool ) : Smtml.Expr.Set.t =
5048 match Smtml.Expr. get_symbols [ c ] with
5149 | [] ->
52- (* TODO: It means Smt.ml did not properly simplified a expression... *)
53- (* assert false *)
54- (* For now, we use this, it should be removed and assert false should be used instead later *)
55- Logs. debug (fun m ->
50+ (* It means Smt.ml did not properly simplified a expression... *)
51+ Logs. err (fun m ->
5652 m " an expression was not simplified by smtml: %a" Symbolic_value. pp_int32
5753 c );
58- Smtml.Expr.Set. add c set
54+ assert false
5955 | sym0 :: _tl -> (
6056 (* we need only the first symbol as all the others should have been merged with it *)
6157 match Union_find. find_opt sym0 uf with
0 commit comments