|
CBMC
|
Allows to: More...
Collaboration diagram for flag_overridet:Public Member Functions | |
| flag_overridet (const source_locationt &source_location) | |
| void | set_flag (bool &flag, bool new_value, const irep_idt &flag_name) |
Store the current value of flag and then set its value to new_value. More... | |
| void | disable_flag (bool &flag, const irep_idt &flag_name) |
| Sets the given flag to false, overriding any previous value. More... | |
| ~flag_overridet () | |
Restore the values of all flags that have been modified via set_flag. More... | |
Private Attributes | |
| const source_locationt & | source_location |
| std::map< bool *, bool > | flags_to_reset |
| std::set< bool * > | disabled_flags |
Allows to:
set_flagdisable_flag, such that previous set_flag are overridden and future set_flag are ignored.A flag's initial value (before any set_flag or disable_flag) is restored when the entire object goes out of scope.
Definition at line 339 of file goto_check_c.cpp.
|
inlineexplicit |
Definition at line 342 of file goto_check_c.cpp.
|
inline |
Restore the values of all flags that have been modified via set_flag.
Definition at line 396 of file goto_check_c.cpp.
|
inline |
Sets the given flag to false, overriding any previous value.
disable_flag after set_flag overrides the set valuedisable_flag twice triggers an INVARIANT Definition at line 374 of file goto_check_c.cpp.
|
inline |
Store the current value of flag and then set its value to new_value.
set_flag after disable_flag is a no-opset_flag twice triggers an INVARIANT Definition at line 352 of file goto_check_c.cpp.
|
private |
Definition at line 405 of file goto_check_c.cpp.
|
private |
Definition at line 404 of file goto_check_c.cpp.
|
private |
Definition at line 403 of file goto_check_c.cpp.