Fixes #8852.
// get the grammar type for the interpolant
Node igdtbv = itp.getAttribute(SygusSynthFunVarListAttribute());
- Assert(!igdtbv.isNull());
+ // could have no variables, in which case there is nothing to do
+ if (igdtbv.isNull())
+ {
+ return true;
+ }
Assert(igdtbv.getKind() == kind::BOUND_VAR_LIST);
// convert back to original
// must replace formal arguments of itp with the free variables in the
regress1/issue5739-rtf-processed.smt2
regress1/issue7902-abd-subsolver-uc.smt2
regress1/issue7937-difficulty-irr.smt2
+ regress1/issue8852-interpol-no-var.smt2
regress1/lemmas/clocksynchro_5clocks.main_invar.base.smtv1.smt2
regress1/lemmas/pursuit-safety-8.smtv1.smt2
regress1/minimal_unsat_core.smt2
--- /dev/null
+; COMMAND-LINE: --produce-interpolants
+; EXPECT: (define-fun A () Bool false)
+(set-logic ALL)
+(declare-fun a () Int)
+(assert (<= 1 0))
+(get-interpolant A (> a 0))