summaryrefslogtreecommitdiff
path: root/src/smt/model_postprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/model_postprocessor.cpp')
-rw-r--r--src/smt/model_postprocessor.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/smt/model_postprocessor.cpp b/src/smt/model_postprocessor.cpp
index db0ce3487..44b56fdd4 100644
--- a/src/smt/model_postprocessor.cpp
+++ b/src/smt/model_postprocessor.cpp
@@ -27,6 +27,15 @@ Node ModelPostprocessor::rewriteAs(TNode n, TypeNode asType) {
// good to go, we have the right type
return n;
}
+ if(n.getKind() == kind::LAMBDA) {
+ Assert(asType.isFunction());
+ Node rhs = rewriteAs(n[1], asType[1]);
+ Node out = NodeManager::currentNM()->mkNode(kind::LAMBDA, n[0], rhs);
+ Debug("boolean-terms") << "rewrote " << n << " as " << out << std::endl;
+ Debug("boolean-terms") << "need type " << asType << endl;
+ // Assert(out.getType() == asType);
+ return out;
+ }
if(!n.isConst()) {
// we don't handle non-const right now
return n;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback