Skip to content

Commit 0849ccc

Browse files
committed
CHB:CIL: update for change in global variables
1 parent 64ac6bb commit 0849ccc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CodeHawk/CHB/bchcil/bCHParseCilFile.ml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ open Frontc
3232
(* chlib *)
3333
open CHPretty
3434

35+
(* chutil *)
36+
open CHLogger
37+
3538
(* bchlib *)
3639
open BCHBCFiles
3740
open BCHBCTypes
@@ -47,7 +50,13 @@ let update_symbolic_address_types () =
4750
if List.mem vinfo.bvname gfunnames then
4851
()
4952
else
50-
BCHGlobalMemoryMap.update_global_location_type vinfo) varinfos
53+
match BCHGlobalMemoryMap.update_global_location_type vinfo with
54+
| Error e ->
55+
ch_error_log#add
56+
"update-global-location-type"
57+
(LBLOCK [
58+
STR "varinfo: "; STR vinfo.bvname; STR (String.concat "; " e)])
59+
| _ -> ()) varinfos
5160

5261

5362
let parse_cil_file ?(computeCFG=true) ?(removeUnused=true) (filename: string) =

0 commit comments

Comments
 (0)