Removes RationalFromDoubleException. Replaces this with an explicit M… (#1476)
authorTim King <taking@cs.nyu.edu>
Mon, 8 Jan 2018 00:46:16 +0000 (16:46 -0800)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2018 00:46:16 +0000 (16:46 -0800)
commit20957db27201d594a83e0e5abe77875ed4932faf
tree47c665493a2a26d9ad50d2f53de310a7ce8193e0
parent8497910df4d1c254b26f09c3dc5ee6191c970b12
Removes RationalFromDoubleException. Replaces this with an explicit M… (#1476)

* Removes RationalFromDoubleException. Replaces this with an explicit Maybe<Rational> datatype. Makes Maybe<T> CVC4_PUBLIC. Updates the users of Rational::fromDouble(). Miscellaneous cleanup of ApproxSimplex.
14 files changed:
src/cvc4.i
src/theory/arith/approx_simplex.cpp
src/theory/arith/approx_simplex.h
src/theory/arith/linear_equality.cpp
src/theory/arith/pseudoboolean_proc.cpp
src/theory/arith/simplex_update.h
src/theory/arith/theory_arith_private.cpp
src/theory/arith/theory_arith_private.h
src/util/maybe.h
src/util/rational.i
src/util/rational_cln_imp.cpp
src/util/rational_cln_imp.h
src/util/rational_gmp_imp.cpp
src/util/rational_gmp_imp.h