carl  24.04
Computer ARithmetic Library
CompareResult.h
Go to the documentation of this file.
1 /**
2  * @file CompareResult.h
3  * @author Sebastian Junges
4  */
5 
6 #pragma once
7 
8 #include <ostream>
9 
10 namespace carl
11 {
12  enum class CompareResult { LESS = -1, EQUAL = 0, GREATER = 1 };
13 
14  inline std::ostream& operator<<(std::ostream& os, CompareResult cr) {
15  switch (cr) {
16  case CompareResult::LESS: return os << "LESS";
17  case CompareResult::EQUAL: return os << "EQUAL";
18  case CompareResult::GREATER: return os << "GREATER";
19  }
20  }
21 }
carl is the main namespace for the library.
std::ostream & operator<<(std::ostream &os, const BasicConstraint< Poly > &c)
Prints the given constraint on the given stream.
CompareResult
Definition: CompareResult.h:12
@ GREATER
Definition: SignCondition.h:15