We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea0756 commit 2d1b420Copy full SHA for 2d1b420
src/cdomains/valueDomain.ml
@@ -199,9 +199,8 @@ struct
199
| TComp ({cstruct=false; _},_) -> Union (Unions.top ())
200
| TArray (ai, length, _) ->
201
let typAttr = typeAttrs ai in
202
- let can_recover_from_top = ArrayDomain.can_recover_from_top (ArrayDomain.get_domain ~varAttr ~typAttr) in
203
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))
+ Array (CArrays.make ~varAttr ~typAttr len (top_value ai))
205
| TNamed ({ttype=t; _}, _) -> top_value ~varAttr t
206
| _ -> Top
207
0 commit comments