summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/real_to_int.cpp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2021-03-11 11:05:58 -0800
committerGitHub <noreply@github.com>2021-03-11 19:05:58 +0000
commitdc679ed380aabc62aadfbb4033c02c5a27ae903c (patch)
treeeae38a0bcbd56104c4e381e84d7f8c724104d365 /src/preprocessing/passes/real_to_int.cpp
parentc314b0162c7fa089c400e11bd72c4ca24a26c9d0 (diff)
Delete Expr layer. (#6117)
Diffstat (limited to 'src/preprocessing/passes/real_to_int.cpp')
-rw-r--r--src/preprocessing/passes/real_to_int.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/preprocessing/passes/real_to_int.cpp b/src/preprocessing/passes/real_to_int.cpp
index c37ac9c20..9c58250e3 100644
--- a/src/preprocessing/passes/real_to_int.cpp
+++ b/src/preprocessing/passes/real_to_int.cpp
@@ -116,8 +116,8 @@ Node RealToInt::realToIntInternal(TNode n, NodeMap& cache, std::vector<Node>& va
}
else
{
- throw TypeCheckingException(
- v.toExpr(),
+ throw TypeCheckingExceptionPrivate(
+ v,
std::string("Cannot translate to Int: ") + v.toString());
}
}
@@ -171,8 +171,8 @@ Node RealToInt::realToIntInternal(TNode n, NodeMap& cache, std::vector<Node>& va
{
// cannot change the type of quantified variables, since this leads
// to incompleteness.
- throw TypeCheckingException(
- n.toExpr(),
+ throw TypeCheckingExceptionPrivate(
+ n,
std::string("Cannot translate bound variable to Int: ")
+ n.toString());
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback