Skip to content

Commit 2a0d592

Browse files
committed
Add IntervalSetDomain.binary_op_concat_with_norm
1 parent 3e1ddb4 commit 2a0d592

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cdomain/value/cdomains/int/intervalSetDomain.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ struct
175175
| _, [] -> ([],{overflow=false; underflow=false})
176176
| _, _ -> norm_intvs ik @@ List.concat_map (fun (x,y) -> [op x y]) (BatList.cartesian_product x y)
177177

178+
let binary_op_concat_with_norm op (ik:ikind) (x: t) (y: t) : t*overflow_info = match x, y with
179+
| [], _ -> ([],{overflow=false; underflow=false})
180+
| _, [] -> ([],{overflow=false; underflow=false})
181+
| _, _ -> norm_intvs ik @@ List.concat_map (fun (x,y) -> op x y) (BatList.cartesian_product x y)
182+
178183
let binary_op_with_ovc (x: t) (y: t) op : t*overflow_info = match x, y with
179184
| [], _ -> ([],{overflow=false; underflow=false})
180185
| _, [] -> ([],{overflow=false; underflow=false})

0 commit comments

Comments
 (0)