Skip to content

Commit bb7c787

Browse files
committed
Enable reading NULL_is_zero from symbol table
This was left commented out ever since introducing it in 5952f6a, which is reasonable for it required bumping the goto-program version. We have incremented the version since 2014, and thus it is safe to enable this now, as also confirmed by the regression test.
1 parent de7f873 commit bb7c787

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)