3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00
This commit is contained in:
Nikolaj Bjorner 2019-02-07 08:10:08 -08:00
commit 031e4cdb38

View file

@ -78,10 +78,13 @@ int parse(string const & filename, map<string, map_entry> & data) {
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];
entry.num_instances = atoi(tokens[1].c_str());
entry.max_generation = (unsigned)atoi(tokens[2].c_str());
entry.max_cost = (unsigned)atoi(tokens[3].c_str());
entry.num_instances += atoi(tokens[1].c_str());
entry.max_generation = max(entry.max_generation, (unsigned)atoi(tokens[2].c_str()));
entry.max_cost = max(entry.max_cost, (unsigned)atoi(tokens[3].c_str()));
}
}