Skip to content

Commit 2d1b420

Browse files
committed
Use only tops for arrays in ValueDomain.top_value
1 parent 4ea0756 commit 2d1b420

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cdomains/valueDomain.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,8 @@ struct
199199
| TComp ({cstruct=false; _},_) -> Union (Unions.top ())
200200
| TArray (ai, length, _) ->
201201
let typAttr = typeAttrs ai in
202-
let can_recover_from_top = ArrayDomain.can_recover_from_top (ArrayDomain.get_domain ~varAttr ~typAttr) in
203202
let len = array_length_idx (IndexDomain.top ()) length in
204-
Array (CArrays.make ~varAttr ~typAttr len (if can_recover_from_top then (top_value ai) else Bot))
203+
Array (CArrays.make ~varAttr ~typAttr len (top_value ai))
205204
| TNamed ({ttype=t; _}, _) -> top_value ~varAttr t
206205
| _ -> Top
207206

0 commit comments

Comments
 (0)