mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
Fix bug in qprofdiff
This commit is contained in:
parent
e22f713b19
commit
1b1ff8dbab
|
@ -78,10 +78,13 @@ int parse(string const & filename, map<string, map_entry> & data) {
|
||||||
entry.num_instances = entry.max_generation = entry.max_cost = 0;
|
entry.num_instances = entry.max_generation = entry.max_cost = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Existing entries represent previous occurrences of quantifiers
|
||||||
|
// that, at some point, were removed (e.g. backtracked). We sum
|
||||||
|
// up instances from all occurrences of the same qid.
|
||||||
map_entry & entry = data[qid];
|
map_entry & entry = data[qid];
|
||||||
entry.num_instances = atoi(tokens[1].c_str());
|
entry.num_instances += atoi(tokens[1].c_str());
|
||||||
entry.max_generation = (unsigned)atoi(tokens[2].c_str());
|
entry.max_generation = max(entry.max_generation, (unsigned)atoi(tokens[2].c_str()));
|
||||||
entry.max_cost = (unsigned)atoi(tokens[3].c_str());
|
entry.max_cost = max(entry.max_cost, (unsigned)atoi(tokens[3].c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue