Skip to content

Commit 7471111

Browse files
committed
CHT: update for change in global variables
1 parent 4fbcb1c commit 7471111

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

CodeHawk/CHT/CHB_tests/bchlib_tests/txbchlib/bCHMemoryReferenceTest.ml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
------------------------------------------------------------------------------
66
The MIT License (MIT)
77
8-
Copyright (c) 2024 Aarno Labs LLC
8+
Copyright (c) 2024-2025 Aarno Labs LLC
99
1010
Permission is hereby granted, free of charge, to any person obtaining a copy
1111
of this software and associated documentation files (the "Software"), to deal
@@ -32,7 +32,6 @@ open CHNumerical
3232
(* bchlib *)
3333
open BCHBCFiles
3434
open BCHBCTypes
35-
open BCHConstantDefinitions
3635
open BCHDoubleword
3736
open BCHFunctionData
3837
open BCHLibTypes
@@ -49,7 +48,7 @@ module XBA = TCHBchlibAssertion
4948

5049

5150
let testname = "bCHMemoryReferenceTest"
52-
let lastupdated = "2024-08-21"
51+
let lastupdated = "2025-01-06"
5352

5453

5554
let mk_maximal_memory_offset_test () =
@@ -58,21 +57,6 @@ let mk_maximal_memory_offset_test () =
5857
parse_cil_file ~removeUnused:false "decompose_array_address.i";
5958
ignore
6059
(functions_data#add_function (TR.tget_ok (string_to_doubleword "0x1d6bfc")));
61-
62-
let arraysym = {
63-
xconst_name = "x44_array";
64-
xconst_value = TR.tget_ok (string_to_doubleword "0x5e1e1c");
65-
xconst_type =
66-
if bcfiles#has_varinfo "x44_array" then
67-
let vinfo = bcfiles#get_varinfo "x44_array" in
68-
vinfo.bvtype
69-
else
70-
raise
71-
(Invalid_argument "Error in arraysym");
72-
xconst_desc = "decompose_array_address";
73-
xconst_is_addr = true
74-
} in
75-
let _ = add_address arraysym in
7660
let compinfo = bcfiles#get_compinfo_by_name "x44_struct_t" in
7761
let structty = TComp (compinfo.bckey, []) in
7862

0 commit comments

Comments
 (0)