From 944961607aa4a16c97d32e605c3f609ab66b4dc5 Mon Sep 17 00:00:00 2001 From: ajreynol Date: Wed, 17 Sep 2014 17:35:41 +0200 Subject: [PATCH] Fix soundness bug for quantifier macros involving Int/Real. --- src/theory/quantifiers/macros.cpp | 4 ++++ test/regress/regress0/quantifiers/Makefile.am | 3 ++- test/regress/regress0/quantifiers/macros-int-real.smt2 | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/regress/regress0/quantifiers/macros-int-real.smt2 diff --git a/src/theory/quantifiers/macros.cpp b/src/theory/quantifiers/macros.cpp index 11734c43f..7321e22b4 100644 --- a/src/theory/quantifiers/macros.cpp +++ b/src/theory/quantifiers/macros.cpp @@ -98,10 +98,14 @@ bool QuantifierMacros::isMacroLiteral( Node n, bool pol ){ bool QuantifierMacros::isBoundVarApplyUf( Node n ) { Assert( n.getKind()==APPLY_UF ); + TypeNode tn = n.getOperator().getType(); for( unsigned i=0; i