Skip to content

Commit 9002f8e

Browse files
committed
fix a mis-encoding in three tests
Three wrongly hand-crafted bit-vector constants are fixed. Bit-vector constants are hex, and must not use leading zeros.
1 parent a18c481 commit 9002f8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

regression/symtab2gb/multiple_symtabs/entry_point.json_symtab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@
10001000
}
10011001
},
10021002
"value": {
1003-
"id": "00000000000000000000000000000000",
1003+
"id": "0",
10041004
"sub": [
10051005
],
10061006
"namedSub": {

regression/symtab2gb/single_symtab/entry_point.json_symtab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@
809809
}
810810
},
811811
"value": {
812-
"id": "00000000000000000000000000000000",
812+
"id": "0",
813813
"sub": [
814814
],
815815
"namedSub": {

unit/solvers/smt2_incremental/encoding/struct_encoding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ TEST_CASE("decoding into struct expressions.", "[core][smt2_incremental]")
414414
from_integer(2, unsignedbv_typet{16}),
415415
from_integer(1, signedbv_typet{24})},
416416
struct_tag};
417-
const exprt encoded = constant_exprt{"000000030002000001", bv_typet{72}};
417+
const exprt encoded = constant_exprt{"30002000001", bv_typet{72}};
418418
REQUIRE(test.struct_encoding.decode(encoded, struct_tag) == expected);
419419
}
420420

0 commit comments

Comments
 (0)