|
ESBMC
Efficient SMT-based Context-Bounded Model Checker
|
#include <goto-programs/cbmc_adapter.h>#include <util/lang/c_types.h>#include <util/message/message.h>#include <algorithm>#include <cstdlib>#include <map>#include <string>#include <unordered_map>#include <unordered_set>Functions | |
| unsigned | map_cbmc_instruction_type (unsigned cbmc_type) |
| Maps a CBMC goto-program instruction-type value onto the matching ESBMC goto_program_instruction_typet value. | |
| cbmc_adapted_resultt | adapt_cbmc_to_esbmc (cbmc_parse_resultt parsed) |
| Rewrites CBMC irep conventions into ESBMC's. | |
| cbmc_adapted_resultt adapt_cbmc_to_esbmc | ( | cbmc_parse_resultt | parsed | ) |
Rewrites CBMC irep conventions into ESBMC's.
Faithful port of goto-transcoder's adapter.rs (ESBMCParseResult::from(CBMCParseResult)).
| unsigned map_cbmc_instruction_type | ( | unsigned | cbmc_type | ) |
Maps a CBMC goto-program instruction-type value onto the matching ESBMC goto_program_instruction_typet value.
CBMC and ESBMC share the goto_program_instruction_typet numbering for every kind that reaches a finished straight-line/control-flow binary, so those map by identity. The kinds that diverge are handled explicitly:
cbmc_type is a raw CBMC instruction-type value; the return value is the ESBMC enumerator.