dlinear
0.0.1
Delta-complete SMT solver for linear programming
|
Simple dataclass used to store the configuration of the program. More...
#include <Config.h>
Public Types | |
enum class | LPSolver { SOPLEX = 0 , QSOPTEX = 1 } |
Underlying LP solver used by the theory solver. More... | |
enum class | SatSolver { CADICAL = 0 , PICOSAT = 1 } |
Underlying SAT solver used by the abstract SAT solver. More... | |
enum class | SatDefaultPhase { False = 0 , True = 1 , JeroslowWang = 2 , RandomInitialPhase = 3 } |
Phase for the SAT solver. More... | |
enum class | Format { AUTO , SMT2 , MPS , VNNLIB } |
Format of the input file. More... | |
enum class | LPMode { AUTO = 0 , PURE_PRECISION_BOOSTING = 1 , PURE_ITERATIVE_REFINEMENT = 2 , HYBRID = 3 } |
LP mode used by the LP solver. More... | |
enum class | BoundPropagationType { AUTO = 0 , EQ_BINOMIAL = 1 , EQ_POLYNOMIAL = 2 , BOUND_POLYNOMIAL = 3 } |
Types of bound propagation supported by the bound propagator. More... | |
enum class | PreprocessingRunningFrequency { AUTO , NEVER , ON_FIXED , ON_ITERATION , ALWAYS } |
Frequency at which the preprocessors will run. More... | |
Public Member Functions | |
Config ()=default | |
Construct a new Config object. | |
Config (std::string filename) | |
Construct a new Config object with the given filename. | |
Config (bool read_from_stdin) | |
Construct a new Config object that will read the input from the standard input. | |
std::string | filename () const |
Get read-only access to the filename parameter of the configuration. | |
std::string | filename_extension () const |
Get read-only access to the filename extension of the configuration. | |
OptionValue< std::string > & | m_filename () |
Get read-write access to the filename extension of the configuration. | |
std::string | onnx_file () const |
Get read-only access to the onnx_file parameter of the configuration. | |
OptionValue< std::string > & | m_onnx_file () |
Get read-write access to the onnx_file parameter of the configuration. | |
bool | needs_expansion () const |
LPMode | actual_lp_mode () const |
Get read-only access to the actual lp_mode parameter of the configuration. | |
Format | actual_format () const |
Get read-only access to the actual format parameter of the configuration. | |
BoundPropagationType | actual_bound_propagation_type () const |
Get read-only access to the actual actual_bound_propagation_type parameter of the configuration. | |
PreprocessingRunningFrequency | actual_bound_propagation_frequency () const |
Get read-only access to the actual bound_propagation_frequency parameter of the configuration. | |
PreprocessingRunningFrequency | actual_bound_implication_frequency () const |
Get read-only access to the actual bound_implication_frequency parameter of the configuration. | |
OptionValue< BoundPropagationType > & | m_bound_propagation_type () |
Get read-only access to the bound_propagation_type parameter of the configuration. | |
const BoundPropagationType & | bound_propagation_type () const |
Get read-write access to the bound_propagation_type parameter of the configuration. | |
OptionValue< PreprocessingRunningFrequency > & | m_bound_propagation_frequency () |
Get read-only access to the bound_propagation_frequency parameter of the configuration. | |
const PreprocessingRunningFrequency & | bound_propagation_frequency () const |
Get read-write access to the bound_propagation_frequency parameter of the configuration. | |
OptionValue< PreprocessingRunningFrequency > & | m_bound_implication_frequency () |
Get read-only access to the bound_implication_frequency parameter of the configuration. | |
const PreprocessingRunningFrequency & | bound_implication_frequency () const |
Get read-write access to the bound_implication_frequency parameter of the configuration. | |
OptionValue< bool > & | m_complete () |
Get read-only access to the complete parameter of the configuration. | |
const bool & | complete () const |
Get read-write access to the complete parameter of the configuration. | |
OptionValue< bool > & | m_continuous_output () |
Get read-only access to the continuous_output parameter of the configuration. | |
const bool & | continuous_output () const |
Get read-write access to the continuous_output parameter of the configuration. | |
OptionValue< bool > & | m_csv () |
Get read-only access to the csv parameter of the configuration. | |
const bool & | csv () const |
Get read-write access to the csv parameter of the configuration. | |
OptionValue< bool > & | m_debug_parsing () |
Get read-only access to the debug_parsing parameter of the configuration. | |
const bool & | debug_parsing () const |
Get read-write access to the debug_parsing parameter of the configuration. | |
OptionValue< bool > & | m_debug_scanning () |
Get read-only access to the debug_scanning parameter of the configuration. | |
const bool & | debug_scanning () const |
Get read-write access to the debug_scanning parameter of the configuration. | |
OptionValue< bool > & | m_disable_expansion () |
Get read-only access to the disable_expansion parameter of the configuration. | |
const bool & | disable_expansion () const |
Get read-write access to the disable_expansion parameter of the configuration. | |
OptionValue< bool > & | m_enforce_check_sat () |
Get read-only access to the enforce_check_sat parameter of the configuration. | |
const bool & | enforce_check_sat () const |
Get read-write access to the enforce_check_sat parameter of the configuration. | |
OptionValue< Format > & | m_format () |
Get read-only access to the format parameter of the configuration. | |
const Format & | format () const |
Get read-write access to the format parameter of the configuration. | |
OptionValue< LPMode > & | m_lp_mode () |
Get read-only access to the lp_mode parameter of the configuration. | |
const LPMode & | lp_mode () const |
Get read-write access to the lp_mode parameter of the configuration. | |
OptionValue< LPSolver > & | m_lp_solver () |
Get read-only access to the lp_solver parameter of the configuration. | |
const LPSolver & | lp_solver () const |
Get read-write access to the lp_solver parameter of the configuration. | |
OptionValue< unsigned int > & | m_number_of_jobs () |
Get read-only access to the number_of_jobs parameter of the configuration. | |
const unsigned int & | number_of_jobs () const |
Get read-write access to the number_of_jobs parameter of the configuration. | |
OptionValue< bool > & | m_optimize () |
Get read-only access to the optimize parameter of the configuration. | |
const bool & | optimize () const |
Get read-write access to the optimize parameter of the configuration. | |
OptionValue< double > & | m_precision () |
Get read-only access to the precision parameter of the configuration. | |
const double & | precision () const |
Get read-write access to the precision parameter of the configuration. | |
OptionValue< bool > & | m_produce_models () |
Get read-only access to the produce_models parameter of the configuration. | |
const bool & | produce_models () const |
Get read-write access to the produce_models parameter of the configuration. | |
OptionValue< unsigned int > & | m_random_seed () |
Get read-only access to the random_seed parameter of the configuration. | |
const unsigned int & | random_seed () const |
Get read-write access to the random_seed parameter of the configuration. | |
OptionValue< bool > & | m_read_from_stdin () |
Get read-only access to the read_from_stdin parameter of the configuration. | |
const bool & | read_from_stdin () const |
Get read-write access to the read_from_stdin parameter of the configuration. | |
OptionValue< SatDefaultPhase > & | m_sat_default_phase () |
Get read-only access to the sat_default_phase parameter of the configuration. | |
const SatDefaultPhase & | sat_default_phase () const |
Get read-write access to the sat_default_phase parameter of the configuration. | |
OptionValue< SatSolver > & | m_sat_solver () |
Get read-only access to the sat_solver parameter of the configuration. | |
const SatSolver & | sat_solver () const |
Get read-write access to the sat_solver parameter of the configuration. | |
OptionValue< bool > & | m_silent () |
Get read-only access to the silent parameter of the configuration. | |
const bool & | silent () const |
Get read-write access to the silent parameter of the configuration. | |
OptionValue< int > & | m_simplex_sat_phase () |
Get read-only access to the simplex_sat_phase parameter of the configuration. | |
const int & | simplex_sat_phase () const |
Get read-write access to the simplex_sat_phase parameter of the configuration. | |
OptionValue< bool > & | m_skip_check_sat () |
Get read-only access to the skip_check_sat parameter of the configuration. | |
const bool & | skip_check_sat () const |
Get read-write access to the skip_check_sat parameter of the configuration. | |
OptionValue< int > & | m_verbose_dlinear () |
Get read-only access to the verbose_dlinear parameter of the configuration. | |
const int & | verbose_dlinear () const |
Get read-write access to the verbose_dlinear parameter of the configuration. | |
OptionValue< int > & | m_verbose_simplex () |
Get read-only access to the verbose_simplex parameter of the configuration. | |
const int & | verbose_simplex () const |
Get read-write access to the verbose_simplex parameter of the configuration. | |
OptionValue< bool > & | m_verify () |
Get read-only access to the verify parameter of the configuration. | |
const bool & | verify () const |
Get read-write access to the verify parameter of the configuration. | |
OptionValue< bool > & | m_with_timings () |
Get read-only access to the with_timings parameter of the configuration. | |
const bool & | with_timings () const |
Get read-write access to the with_timings parameter of the configuration. | |
Simple dataclass used to store the configuration of the program.
It is usually generated by the ArgParser using the command line arguments.
|
strong |
Types of bound propagation supported by the bound propagator.
|
strong |
|
strong |
|
strong |
|
strong |
Frequency at which the preprocessors will run.
|
strong |
|
strong |
|
explicit |
Construct a new Config object with the given filename.
filename | name of the input file |
Definition at line 15 of file Config.cpp.
|
explicit |
Construct a new Config object that will read the input from the standard input.
read_from_stdin | whether to read the input from the standard input |
Definition at line 16 of file Config.cpp.
|
nodiscard |
Get read-only access to the actual bound_implication_frequency
parameter of the configuration.
If the bound_implication_frequency is PreprocessingRunningFrequency::AUTO, it will return the appropriate preprocessing running frequency based on the actual format
bound_implication_frequency
parameter of the configuration Definition at line 82 of file Config.cpp.
|
nodiscard |
Get read-only access to the actual bound_propagation_frequency
parameter of the configuration.
If the bound_propagation_frequency is PreprocessingRunningFrequency::AUTO, it will return the appropriate preprocessing running frequency based on the actual format
bound_propagation_frequency
parameter of the configuration Definition at line 65 of file Config.cpp.
|
nodiscard |
Get read-only access to the actual actual_bound_propagation_type
parameter of the configuration.
If the actual_bound_propagation_type is BoundPropagationType::AUTO, it will return the appropriate bound propagation type based on the actual format
actual_bound_propagation_type
parameter of the configuration Definition at line 48 of file Config.cpp.
|
nodiscard |
Get read-only access to the actual format
parameter of the configuration.
If the format is Format::AUTO, it will return the appropriate format based on the filename extension
format
parameter of the configuration Definition at line 33 of file Config.cpp.
|
nodiscard |
Get read-only access to the actual lp_mode
parameter of the configuration.
If the lp_mode is LPMode::AUTO, it will return the appropriate mode based on the lp_solver
lp_mode
parameter of the configuration Definition at line 25 of file Config.cpp.
|
inlinenodiscard |
Get read-write access to the bound_implication_frequency
parameter of the configuration.
Default to PreprocessingRunningFrequency::AUTO
bound_implication_frequency
parameter of the configuration
|
inlinenodiscard |
Get read-write access to the bound_propagation_frequency
parameter of the configuration.
Default to PreprocessingRunningFrequency::AUTO
bound_propagation_frequency
parameter of the configuration
|
inlinenodiscard |
Get read-write access to the bound_propagation_type
parameter of the configuration.
Default to BoundPropagationType::AUTO
bound_propagation_type
parameter of the configuration
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
nodiscard |
Get read-only access to the filename
extension of the configuration.
Contains the filename substring after the dot.
filename
extension of the configuration Definition at line 18 of file Config.cpp.
|
inlinenodiscard |
Get read-write access to the format
parameter of the configuration.
Default to dlinear::Config::Format::AUTO
format
parameter of the configuration
|
inlinenodiscard |
Get read-write access to the lp_mode
parameter of the configuration.
Default to dlinear::Config::LPMode::AUTO
lp_mode
parameter of the configuration
|
inlinenodiscard |
Get read-write access to the lp_solver
parameter of the configuration.
Default to dlinear::Config::LPSolver::SOPLEX
lp_solver
parameter of the configuration
|
inline |
Get read-only access to the bound_implication_frequency
parameter of the configuration.
Default to PreprocessingRunningFrequency::AUTO
bound_implication_frequency
parameter of the configuration
|
inline |
Get read-only access to the bound_propagation_frequency
parameter of the configuration.
Default to PreprocessingRunningFrequency::AUTO
bound_propagation_frequency
parameter of the configuration
|
inline |
Get read-only access to the bound_propagation_type
parameter of the configuration.
Default to BoundPropagationType::AUTO
bound_propagation_type
parameter of the configuration
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get read-only access to the format
parameter of the configuration.
Default to dlinear::Config::Format::AUTO
format
parameter of the configuration
|
inline |
Get read-only access to the lp_mode
parameter of the configuration.
Default to dlinear::Config::LPMode::AUTO
lp_mode
parameter of the configuration
|
inline |
Get read-only access to the lp_solver
parameter of the configuration.
Default to dlinear::Config::LPSolver::SOPLEX
lp_solver
parameter of the configuration
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get read-only access to the sat_default_phase
parameter of the configuration.
Default to dlinear::Config::SatDefaultPhase::JeroslowWang
sat_default_phase
parameter of the configuration
|
inline |
Get read-only access to the sat_solver
parameter of the configuration.
Default to dlinear::Config::SatSolver::PICOSAT
sat_solver
parameter of the configuration
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
nodiscard |
Get read-only access to the need for input expansion of the configuration.
It is true when the input format is Format::SMT2 or Format::VNNLIB, false if Format::MPS
Definition at line 20 of file Config.cpp.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
Get read-write access to the sat_default_phase
parameter of the configuration.
Default to dlinear::Config::SatDefaultPhase::JeroslowWang
sat_default_phase
parameter of the configuration
|
inlinenodiscard |
Get read-write access to the sat_solver
parameter of the configuration.
Default to dlinear::Config::SatSolver::PICOSAT
sat_solver
parameter of the configuration
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |