Skip to content

Commit ee49135

Browse files
committed
CHB:ARM: abstract global variables across calls
1 parent e85b400 commit ee49135

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeHawk/CHB/bchlib/bCHFloc.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,6 +2127,10 @@ object (self)
21272127
self#env#set_variable_name rvar name in
21282128
ASSIGN_NUM (r0, NUM_VAR rvar) in
21292129
let bridgeVars = self#env#get_bridge_values_at self#cia in
2130+
let abstractglobals =
2131+
let globals =
2132+
List.filter self#env#is_global_variable self#env#get_variables in
2133+
[ABSTRACT_VARS globals] in
21302134
let sideeffect_assigns =
21312135
self#get_sideeffect_assigns self#get_call_target#get_semantics in
21322136
let _ =
@@ -2139,6 +2143,7 @@ object (self)
21392143
| _ -> [ABSTRACT_VARS abstrRegs])
21402144
@ [returnassign]
21412145
@ sideeffect_assigns
2146+
@ abstractglobals
21422147
@ (match bridgeVars with
21432148
| [] -> []
21442149
| _ -> [ABSTRACT_VARS bridgeVars])

0 commit comments

Comments
 (0)