dlinear  0.0.1
Delta-complete SMT solver for linear programming
Loading...
Searching...
No Matches
PiecewiseConstraintState.cpp
1
6#include "PiecewiseConstraintState.h"
7
8#include <iostream>
9
10#include "dlinear/util/exception.h"
11
12namespace dlinear {
13
14std::ostream& operator<<(std::ostream& os, const PiecewiseConstraintState& status) {
15 switch (status) {
17 os << "NOT_FIXED";
18 break;
20 os << "INACTIVE";
21 break;
23 os << "ACTIVE";
24 break;
25 default:
26 DLINEAR_UNREACHABLE();
27 }
28 return os;
29}
30
31} // namespace dlinear
Global namespace for the dlinear library.
PiecewiseConstraintState
State a piecewise constraint can be in.
@ ACTIVE
The constraint is active.
@ INACTIVE
The constraint is inactive.
@ NOT_FIXED
The constraint is not fixed yet.