3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-05 10:50:24 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-05-28 13:57:03 -07:00
parent 4953b95baa
commit 48701826f1
5 changed files with 21 additions and 14 deletions

View file

@ -932,11 +932,12 @@ namespace sat {
return ous.str();
}
proof_hint proof_hint::from_string(char const* s) {
proof_hint h;
void proof_hint::from_string(char const* s) {
proof_hint& h = *this;
h.reset();
h.m_ty = hint_type::null_h;
if (!s)
return h;
return;
auto ws = [&]() {
while (*s == ' ' || *s == '\n' || *s == '\t')
++s;
@ -999,14 +1000,14 @@ namespace sat {
ws();
if (!parse_type())
return h;
return;
ws();
while (*s) {
if (!parse_coeff_literal())
return h;
return;
ws();
}
return h;
return;
}
}