Skip to content

Commit

Permalink
Extend IntToBits narrowing to track types for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ncough committed Jul 22, 2024
1 parent f5a1f78 commit e1de2f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libASL/transforms.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,13 @@ module IntToBits = struct
method! vstmt s =
match s with
| Stmt_ConstDecl(ty, nm, _, _) ->
var_types <- Bindings.add nm ty var_types;
var_types <- Bindings.add nm ty var_types;
DoChildren
| Stmt_VarDecl(ty, nm, _, _) ->
var_types <- Bindings.add nm ty var_types;
DoChildren
| Stmt_VarDeclsNoInit(ty, [nm], _) ->
var_types <- Bindings.add nm ty var_types;
DoChildren
| _ -> DoChildren

Expand Down

0 comments on commit e1de2f4

Please sign in to comment.