mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
parent
b638405e42
commit
5652d2a157
2 changed files with 7 additions and 16 deletions
|
@ -121,7 +121,7 @@ namespace {
|
|||
|
||||
struct instruction {
|
||||
opcode m_opcode;
|
||||
instruction * m_next;
|
||||
instruction* m_next = nullptr;
|
||||
#ifdef _PROFILE_MAM
|
||||
unsigned m_counter; // how often it was executed
|
||||
#endif
|
||||
|
@ -1224,9 +1224,10 @@ namespace {
|
|||
return;
|
||||
|
||||
SASSERT(head->m_next == 0);
|
||||
|
||||
m_seq.push_back(m_ct_manager.mk_yield(m_qa, m_mp, m_qa->get_num_decls(), reinterpret_cast<unsigned*>(m_vars.begin())));
|
||||
|
||||
for (instruction * curr : m_seq) {
|
||||
for (instruction* curr : m_seq) {
|
||||
head->m_next = curr;
|
||||
head = curr;
|
||||
}
|
||||
|
@ -2309,7 +2310,10 @@ namespace {
|
|||
|
||||
main_loop:
|
||||
|
||||
if (!m_pc)
|
||||
goto backtrack;
|
||||
TRACE("mam_int", display_pc_info(tout););
|
||||
|
||||
#ifdef _PROFILE_MAM
|
||||
const_cast<instruction*>(m_pc)->m_counter++;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue