From 421a093844d9249f2735ff4b0b44f6d2b086d81d Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 28 Aug 2018 10:39:48 -0500 Subject: [PATCH] Fix sort inference for quantified variables of interpreted types (#2393) --- src/theory/sort_inference.cpp | 19 ++++++++++++++----- test/regress/Makefile.tests | 3 ++- .../regress0/fmf/sort-infer-typed-082718.smt2 | 6 ++++++ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 test/regress/regress0/fmf/sort-infer-typed-082718.smt2 diff --git a/src/theory/sort_inference.cpp b/src/theory/sort_inference.cpp index c4c0a8b47..74f2e4803 100644 --- a/src/theory/sort_inference.cpp +++ b/src/theory/sort_inference.cpp @@ -367,12 +367,21 @@ int SortInference::process( Node n, std::map< Node, Node >& var_bound, std::map< if( d_var_types.find( n )!=d_var_types.end() ){ return getIdForType( n.getType() ); }else{ + //apply sort inference to quantified variables for( size_t i=0; i