mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 11:41:23 +00:00
Added timout functionality to SAT solver
This commit is contained in:
parent
21e38bed98
commit
8fbb5b6240
6 changed files with 120 additions and 8 deletions
|
@ -21,6 +21,7 @@
|
|||
#define EZMINISAT_H
|
||||
|
||||
#include "ezsat.h"
|
||||
#include <time.h>
|
||||
|
||||
// minisat is using limit macros and format macros in their headers that
|
||||
// can be the source of some troubles when used from c++11. thefore we
|
||||
|
@ -36,6 +37,10 @@ private:
|
|||
std::vector<int> minisatVars;
|
||||
bool foundContradiction;
|
||||
|
||||
static ezMiniSAT *alarmHandlerThis;
|
||||
static clock_t alarmHandlerTimeout;
|
||||
static void alarmHandler(int);
|
||||
|
||||
public:
|
||||
ezMiniSAT();
|
||||
virtual ~ezMiniSAT();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue