|
CBMC
|
#include <util/message.h>#include <goto-programs/goto_program.h>#include <ansi-c/c_expr.h>#include "utils.h"#include <optional>#include <unordered_map>#include <unordered_set>
Include dependency graph for instrument_spec_assigns.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | conditional_target_exprt |
| Class that represents a single conditional target. More... | |
| class | car_exprt |
| Class that represents a normalized conditional address range, with: More... | |
| class | instrument_spec_assignst |
| A class that generates instrumentation for assigns clause checking. More... | |
| class | instrument_spec_assignst::location_intervalt |
| Represents an interval of source locations covered by the static local variable search. More... | |
Enumerations | |
| enum | car_havoc_methodt { car_havoc_methodt::HAVOC_OBJECT, car_havoc_methodt::HAVOC_SLICE, car_havoc_methodt::NONDET_ASSIGN } |
| method to use to havoc a target More... | |
Functions | |
| bool | has_propagate_static_local_pragma (source_locationt &source_location) |
| True iff the pragma to mark assignments to static local variables that need to be propagated upwards in the search is set. More... | |
| void | add_propagate_static_local_pragma (source_locationt &source_location) |
| Sets a pragma to mark assignments to static local variables that need to be propagated upwards in the search. More... | |
| void | add_pragma_disable_pointer_checks (source_locationt &source_location) |
| Adds a pragma on a source location disable all pointer checks. More... | |
| void | add_pragma_disable_assigns_check (source_locationt &source_location) |
| Adds a pragma on a source_locationt to disable inclusion checking. More... | |
| goto_programt::instructiont & | add_pragma_disable_assigns_check (goto_programt::instructiont &instr) |
| Adds a pragma on a GOTO instruction to disable inclusion checking. More... | |
| goto_programt & | add_pragma_disable_assigns_check (goto_programt &prog) |
| Adds pragmas on all instructions in a GOTO program to disable inclusion checking on them. More... | |
Specify write set in function contracts
Definition in file instrument_spec_assigns.h.
|
strong |
method to use to havoc a target
| Enumerator | |
|---|---|
| HAVOC_OBJECT | |
| HAVOC_SLICE | |
| NONDET_ASSIGN | |
Definition at line 63 of file instrument_spec_assigns.h.
| goto_programt& add_pragma_disable_assigns_check | ( | goto_programt & | prog | ) |
Adds pragmas on all instructions in a GOTO program to disable inclusion checking on them.
| prog | A mutable reference to the GOTO program. |
Definition at line 82 of file instrument_spec_assigns.cpp.
| goto_programt::instructiont& add_pragma_disable_assigns_check | ( | goto_programt::instructiont & | instr | ) |
Adds a pragma on a GOTO instruction to disable inclusion checking.
| instr | A mutable reference to the GOTO instruction. |
Definition at line 76 of file instrument_spec_assigns.cpp.
| void add_pragma_disable_assigns_check | ( | source_locationt & | source_location | ) |
Adds a pragma on a source_locationt to disable inclusion checking.
Definition at line 70 of file instrument_spec_assigns.cpp.
| void add_pragma_disable_pointer_checks | ( | source_locationt & | source_location | ) |
Adds a pragma on a source location disable all pointer checks.
The disabled checks are: "pointer-check", "pointer-primitive-check", "pointer-overflow-check", "signed-overflow-check",
Definition at line 51 of file instrument_spec_assigns.cpp.
| void add_propagate_static_local_pragma | ( | source_locationt & | source_location | ) |
Sets a pragma to mark assignments to static local variables that need to be propagated upwards in the search.
Definition at line 42 of file instrument_spec_assigns.cpp.
| bool has_propagate_static_local_pragma | ( | source_locationt & | source_location | ) |
True iff the pragma to mark assignments to static local variables that need to be propagated upwards in the search is set.