diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-03-10 19:17:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 19:17:40 -0500 |
commit | 6a2619c8c14e138b0ce4fdfe59e06dbcde2f61c7 (patch) | |
tree | 9417623f06b398f20f18d1c479ea4ee5bbca102c /src/preprocessing/passes | |
parent | 130963b0ffa5850d59b1bff9ad82c63703600097 (diff) |
Fix real to int for parameterized kinds (#4016)
Diffstat (limited to 'src/preprocessing/passes')
-rw-r--r-- | src/preprocessing/passes/real_to_int.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/preprocessing/passes/real_to_int.cpp b/src/preprocessing/passes/real_to_int.cpp index cc98726c6..f50cecd1b 100644 --- a/src/preprocessing/passes/real_to_int.cpp +++ b/src/preprocessing/passes/real_to_int.cpp @@ -151,6 +151,10 @@ Node RealToInt::realToIntInternal(TNode n, NodeMap& cache, std::vector<Node>& va } if (childChanged) { + if (n.getMetaKind() == kind::metakind::PARAMETERIZED) + { + children.insert(children.begin(), n.getOperator()); + } ret = NodeManager::currentNM()->mkNode(n.getKind(), children); } } |