Loading...
Searching...
No Matches
api_sessiont Struct Reference
#include <api.h>
+ Collaboration diagram for api_sessiont:
Load a goto_model from a given vector of filenames.
Drop unused functions from the loaded goto_model simplifying it.
Validate the loaded goto model.
A simple API version information function.
Process the model by running symex and the decision procedure.
Read a goto-binary from a given filename.
True if file is goto-binary.
Implement necessary transformations to reduce model to symex-ready-GOTO, before being fed to symex.
Detailed Description
Definition at line 56 of file api.h.
Constructor & Destructor Documentation
◆ api_sessiont() [1/2]
api_sessiont::api_sessiont
(
)
◆ api_sessiont() [2/2]
◆ ~api_sessiont()
api_sessiont::~api_sessiont
(
)
default
Member Function Documentation
◆ drop_unused_functions()
void api_sessiont::drop_unused_functions
(
)
const
Drop unused functions from the loaded goto_model simplifying it.
Definition at line 243 of file api.cpp.
◆ get_api_version()
std::unique_ptr< std::string > api_sessiont::get_api_version
(
)
const
A simple API version information function.
Definition at line 37 of file api.cpp.
◆ is_goto_binary()
bool api_sessiont::is_goto_binary
(
std::string &
file )
const
True if file is goto-binary.
Definition at line 173 of file api.cpp.
◆ load_model_from_files()
void api_sessiont::load_model_from_files
(
const std::vector< std::string > &
files )
const
Load a goto_model from a given vector of filenames.
- Parameters
-
files A vector<string> containing the filenames to be loaded
Definition at line 136 of file api.cpp.
◆ preprocess_model()
bool api_sessiont::preprocess_model
(
)
const
private
Implement necessary transformations to reduce model to symex-ready-GOTO, before being fed to symex.
- Returns
- The function returns
true if it failed because CBMC produced an error.
Definition at line 178 of file api.cpp.
◆ read_goto_binary()
void api_sessiont::read_goto_binary
(
std::string &
file )
const
Read a goto-binary from a given filename.
- Warning
- Will error out if it reads a source file.
Definition at line 156 of file api.cpp.
◆ run_verifier()
Process the model by running symex and the decision procedure.
- Returns
- a
unique_ptr to the verification_resultt summary.
Definition at line 223 of file api.cpp.
◆ set_message_callback()
- Parameters
-
callback A call back function to receive progress updates and success/failure statuses.
context A context pointer passed through to the callback function. This is used similarly to a capture in a lambda function.
Definition at line 128 of file api.cpp.
◆ validate_goto_model()
void api_sessiont::validate_goto_model
(
)
const
Validate the loaded goto model.
Definition at line 258 of file api.cpp.
◆ verify_model()
Member Data Documentation
◆ implementation
The documentation for this struct was generated from the following files:
- /home/runner/work/cbmc/cbmc/src/libcprover-cpp/api.h
- /home/runner/work/cbmc/cbmc/src/libcprover-cpp/api.cpp