Skip to content

Commit 26b655b

Browse files
authored
Merge pull request #5681 from tautschnig/null-is-zero
Enable reading NULL_is_zero from symbol table
2 parents de7f873 + bb7c787 commit 26b655b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

regression/goto-instrument/show-symbol-table-json/test.desc

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ test.c
44
"symbolTable": \{
55
"main": \{
66
"main::1::x": \{
7+
"__CPROVER_architecture_NULL_is_zero": \{
78
^EXIT=0$
89
^SIGNAL=0$
910
--

src/util/config.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1259,8 +1259,7 @@ void configt::set_from_symbol_table(
12591259
else
12601260
ansi_c.os=ansi_ct::string_to_os(id2string(string_from_ns(ns, "os")));
12611261

1262-
// NULL_is_zero=from_ns("NULL_is_zero");
1263-
ansi_c.NULL_is_zero=true;
1262+
ansi_c.NULL_is_zero = unsigned_from_ns(ns, "NULL_is_zero") != 0;
12641263

12651264
// mode, preprocessor (and all preprocessor command line options),
12661265
// lib, string_abstraction not stored in namespace

0 commit comments

Comments
 (0)