mirror of
https://github.com/Z3Prover/z3
synced 2025-05-10 01:05:47 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
43
lib/instruction_count.h
Normal file
43
lib/instruction_count.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*++
|
||||
Copyright (c) 2009 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
instruction_count.h
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2009-03-04.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _INSTRUCTION_COUNT_H_
|
||||
#define _INSTRUCTION_COUNT_H_
|
||||
|
||||
|
||||
/**
|
||||
\brief Wrapper for an instruction counter.
|
||||
*/
|
||||
class instruction_count {
|
||||
unsigned long long m_count;
|
||||
public:
|
||||
instruction_count() : m_count(0) {}
|
||||
|
||||
~instruction_count() {}
|
||||
|
||||
void start();
|
||||
|
||||
double get_num_instructions();
|
||||
|
||||
bool is_instruction_maxed(double max_instr) {
|
||||
return max_instr > 0.0 && get_num_instructions() > max_instr;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _INSTRUcTION_COUNT_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue