OR-Tools  9.6
cp_model_checker.cc File Reference

Go to the source code of this file.

Namespaces

 operations_research
 Collection of objects used to extend the Constraint Solver library.
 
 operations_research::sat
 

Macros

#define RETURN_IF_NOT_EMPTY(statement)
 

Functions

bool PossibleIntegerOverflow (const CpModelProto &model, absl::Span< const int > vars, absl::Span< const int64_t > coeffs, int64_t offset)
 
std::string ValidateCpModel (const CpModelProto &model, bool after_presolve)
 
std::string ValidateInputCpModel (const SatParameters &params, const CpModelProto &model)
 
bool SolutionIsFeasible (const CpModelProto &model, absl::Span< const int64_t > variable_values, const CpModelProto *mapping_proto, const std::vector< int > *postsolve_mapping)
 

Macro Definition Documentation

◆ RETURN_IF_NOT_EMPTY

#define RETURN_IF_NOT_EMPTY (   statement)
Value:
do { \
const std::string error_message = statement; \
if (!error_message.empty()) return error_message; \
} while (false)

Definition at line 47 of file cp_model_checker.cc.