From 1e6f142d3b309db022edcfd3218adcb146d73dec Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Tue, 26 May 2020 09:44:51 -0700 Subject: [PATCH] Fix mismatched iterators (CID 1493892). (#4531) Issue found by coverity. --- src/api/cvc4cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/cvc4cpp.cpp b/src/api/cvc4cpp.cpp index 052b62efc..1ea421c4b 100644 --- a/src/api/cvc4cpp.cpp +++ b/src/api/cvc4cpp.cpp @@ -2354,7 +2354,7 @@ Sort Grammar::resolve() addSygusConstructorTerm(dtDecl, consTerm, ntsToUnres); } - if (d_allowVars.find(ntSym) != d_allowConst.cend()) + if (d_allowVars.find(ntSym) != d_allowVars.cend()) { addSygusConstructorVariables(dtDecl, ntSym.d_expr->getType()); } -- 2.30.2