|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
#include <hal_core/netlist/decorators/boolean_function_net_decorator.h>

Public Member Functions | |
| BooleanFunctionNetDecorator (const Net &net) | |
| BooleanFunction | get_boolean_variable () const |
| std::string | get_boolean_variable_name () const |
Static Public Member Functions | |
| static Result< Net * > | get_net_from (const Netlist *netlist, const BooleanFunction &var) |
| static Result< Net * > | get_net_from (const Netlist *netlist, const std::string &var_name) |
| static Result< u32 > | get_net_id_from (const BooleanFunction &var) |
| static Result< u32 > | get_net_id_from (const std::string &var_name) |
A net decorator that provides functionality to translate between nets and Boolean function variables.
Definition at line 39 of file boolean_function_net_decorator.h.
| hal::BooleanFunctionNetDecorator::BooleanFunctionNetDecorator | ( | const Net & | net | ) |
Construct new BooleanFunctionNetDecorator object.
| [in] | net | - The net to operate on. |
Definition at line 9 of file boolean_function_net_decorator.cpp.
| BooleanFunction hal::BooleanFunctionNetDecorator::get_boolean_variable | ( | ) | const |
Generate a unique Boolean variable representing the given net.
Definition at line 13 of file boolean_function_net_decorator.cpp.
References get_boolean_variable_name(), and hal::BooleanFunction::Var().
Referenced by hal::boolean_function_net_decorator_init(), hal::module_identification::VerifiedCandidate::get_merged_word_level_operation(), and hal::solve_fsm::solve_fsm().
| std::string hal::BooleanFunctionNetDecorator::get_boolean_variable_name | ( | ) | const |
Generate a unique Boolean variable name representing the given net.
Definition at line 18 of file boolean_function_net_decorator.cpp.
References hal::Net::get_id().
Referenced by hal::boolean_function_net_decorator_init(), hal::module_identification::FunctionalCandidate::early_abort(), hal::bitorder_propagation::export_bitorder_propagation_information(), hal::BooleanFunctionDecorator::get_boolean_function_from(), get_boolean_variable(), hal::hawkeye::identify_sbox(), and hal::solve_fsm::solve_fsm_brute_force().
|
static |
Get the net represented by a unique Boolean variable.
| [in] | netlist | - The netlist on which to operate. |
| [in] | var | - The Boolean variable. |
Definition at line 44 of file boolean_function_net_decorator.cpp.
References ERR_APPEND, hal::BooleanFunction::get_variable_name(), and hal::BooleanFunction::to_string().
Referenced by hal::boolean_function_net_decorator_init(), hal::module_identification::FunctionalCandidate::create_sign_extension_variants(), hal::module_identification::FunctionalCandidate::find_control_signals(), hal::BooleanFunctionDecorator::substitute_module_pins(), and hal::BooleanFunctionDecorator::substitute_power_ground_nets().
|
static |
Get the net represented by a unique Boolean variable name.
| [in] | netlist | - The netlist on which to operate. |
| [in] | var_name | - The Boolean variable name. |
Definition at line 23 of file boolean_function_net_decorator.cpp.
References ERR, hal::Netlist::get_net_by_id(), and OK.
|
static |
Get the net id represented by a unique Boolean variable.
| [in] | var | - The Boolean variable. |
Definition at line 84 of file boolean_function_net_decorator.cpp.
References ERR_APPEND, hal::BooleanFunction::get_variable_name(), and hal::BooleanFunction::to_string().
Referenced by hal::z3_utils::extract_net_ids().
|
static |
Get the net id represented by a unique Boolean variable name.
| [in] | var_name | - The Boolean variable name. |
Definition at line 63 of file boolean_function_net_decorator.cpp.