Skip to content

Commit

Permalink
Fix spurious warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Mar 30, 2024
1 parent c5c4d35 commit 77c6b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/expr_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ Expr ExprParser::parseExpr()
Trace("parser") << "Binder is " << vl << std::endl;
Trace("parser") << "Env is " << env << std::endl;
// make the program variable, whose type is abstract
Expr ftype = d_state.mkFunctionType(fargTypes, atype);
Expr ftype = d_state.mkFunctionType(fargTypes, atype, false);
std::stringstream pvname;
pvname << "_match_" << hd;
Expr pv = d_state.mkSymbol(Kind::PROGRAM_CONST, pvname.str(), ftype);
Expand Down
4 changes: 3 additions & 1 deletion src/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,9 @@ Expr State::mkExpr(Kind k, const std::vector<Expr>& children)
}
else
{
Warning() << "Wrong number of arguments when applying program " << Expr(hd) << std::endl;
Warning() << "Wrong number of arguments when applying program " << Expr(hd)
<< ", " << t.getNumChildren() << " arguments expected, got "
<< children.size() << std::endl;
}
}
}
Expand Down

0 comments on commit 77c6b57

Please sign in to comment.