Skip to content

Commit ef43fc9

Browse files
Output message about used object bits settings
1 parent 55d4011 commit ef43fc9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,8 @@ int cbmc_parse_optionst::get_goto_program(
720720
show_goto_functions(ns, get_ui(), goto_functions);
721721
return 0;
722722
}
723+
724+
status() << config.object_bits_info() << eom;
723725
}
724726

725727
catch(const char *e)

src/util/config.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,16 @@ void configt::set_object_bits_from_symbol_table(
11941194
}
11951195
}
11961196

1197+
std::string configt::object_bits_info()
1198+
{
1199+
return "Running with "+std::to_string(bv_encoding.object_bits)+
1200+
" object bits, "+
1201+
std::to_string(ansi_c.pointer_width-bv_encoding.object_bits)+
1202+
" offset bits ("+
1203+
(bv_encoding.is_object_bits_default ? "default" : "user-specified")+
1204+
")";
1205+
}
1206+
11971207
irep_idt configt::this_architecture()
11981208
{
11991209
irep_idt this_arch;

src/util/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class configt
168168
bool set(const cmdlinet &cmdline);
169169

170170
void set_object_bits_from_symbol_table(const symbol_tablet &);
171+
std::string object_bits_info();
171172

172173
static irep_idt this_architecture();
173174
static irep_idt this_operating_system();

0 commit comments

Comments
 (0)