Skip to content

Commit

Permalink
StringRef::startswith was deprecated, use starts_with
Browse files Browse the repository at this point in the history
  • Loading branch information
manasij7479 committed Aug 28, 2024
1 parent ae49378 commit 963d4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SMTLIB2/Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class ProcessSMTLIBSolver : public SMTLIBSolver {
return EC;
}

if ((*MB)->getBuffer().startswith("sat\n")) {
if ((*MB)->getBuffer().starts_with("sat\n")) {
::remove(OutputPath.c_str());
Result = true;
++Sats;
Expand All @@ -288,7 +288,7 @@ class ProcessSMTLIBSolver : public SMTLIBSolver {
if (!ErrStr.empty())
return std::make_error_code(std::errc::protocol_error);
return std::error_code();
} else if ((*MB)->getBuffer().startswith("unsat\n")) {
} else if ((*MB)->getBuffer().starts_with("unsat\n")) {
::remove(OutputPath.c_str());
Result = false;
++Unsats;
Expand Down

0 comments on commit 963d4df

Please sign in to comment.