Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
f06056d8
Commit
f06056d8
authored
Sep 06, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to 'pdr' to run with updated Satoko.
parent
0fa4c868
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
src/base/wlc/wlcAbs.c
+2
-2
src/proof/pdr/pdrCnf.c
+4
-4
src/proof/pdr/pdrCore.c
+1
-1
src/proof/pdr/pdrInt.h
+3
-1
src/sat/bsat/satSolver.h
+8
-0
No files found.
src/base/wlc/wlcAbs.c
View file @
f06056d8
...
@@ -224,8 +224,8 @@ static Vec_Int_t * Wlc_NtkGetCoreSels( Gia_Man_t * pFrames, int nFrames, int fir
...
@@ -224,8 +224,8 @@ static Vec_Int_t * Wlc_NtkGetCoreSels( Gia_Man_t * pFrames, int nFrames, int fir
sat_solver_setnvars
(
pSat
,
pCnf
->
nVars
);
sat_solver_setnvars
(
pSat
,
pCnf
->
nVars
);
if
(
RunId
>=
0
)
if
(
RunId
>=
0
)
{
{
pSat
->
RunId
=
RunId
;
sat_solver_set_runid
(
pSat
,
RunId
)
;
pSat
->
pFuncStop
=
Wla_CallBackToStop
;
sat_solver_set_stop_func
(
pSat
,
Wla_CallBackToStop
)
;
}
}
for
(
i
=
0
;
i
<
pCnf
->
nClauses
;
i
++
)
for
(
i
=
0
;
i
<
pCnf
->
nClauses
;
i
++
)
...
...
src/proof/pdr/pdrCnf.c
View file @
f06056d8
...
@@ -370,8 +370,8 @@ static inline sat_solver * Pdr_ManNewSolver1( sat_solver * pSat, Pdr_Man_t * p,
...
@@ -370,8 +370,8 @@ static inline sat_solver * Pdr_ManNewSolver1( sat_solver * pSat, Pdr_Man_t * p,
}
}
pSat
=
(
sat_solver
*
)
Cnf_DataWriteIntoSolverInt
(
pSat
,
p
->
pCnf1
,
1
,
fInit
);
pSat
=
(
sat_solver
*
)
Cnf_DataWriteIntoSolverInt
(
pSat
,
p
->
pCnf1
,
1
,
fInit
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
pSat
->
RunId
=
p
->
pPars
->
RunId
;
sat_solver_set_runid
(
pSat
,
p
->
pPars
->
RunId
)
;
pSat
->
pFuncStop
=
p
->
pPars
->
pFuncStop
;
sat_solver_set_stop_func
(
pSat
,
p
->
pPars
->
pFuncStop
)
;
return
pSat
;
return
pSat
;
}
}
...
@@ -420,8 +420,8 @@ static inline sat_solver * Pdr_ManNewSolver2( sat_solver * pSat, Pdr_Man_t * p,
...
@@ -420,8 +420,8 @@ static inline sat_solver * Pdr_ManNewSolver2( sat_solver * pSat, Pdr_Man_t * p,
// pSat = sat_solver_new();
// pSat = sat_solver_new();
sat_solver_setnvars
(
pSat
,
500
);
sat_solver_setnvars
(
pSat
,
500
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
pSat
->
RunId
=
p
->
pPars
->
RunId
;
sat_solver_set_runid
(
pSat
,
p
->
pPars
->
RunId
)
;
pSat
->
pFuncStop
=
p
->
pPars
->
pFuncStop
;
sat_solver_set_stop_func
(
pSat
,
p
->
pPars
->
pFuncStop
)
;
return
pSat
;
return
pSat
;
}
}
...
...
src/proof/pdr/pdrCore.c
View file @
f06056d8
...
@@ -1296,7 +1296,7 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
...
@@ -1296,7 +1296,7 @@ int Pdr_ManSolveInt( Pdr_Man_t * p )
if
(
p
->
timeToStop
&&
Abc_Clock
()
>
p
->
timeToStop
)
if
(
p
->
timeToStop
&&
Abc_Clock
()
>
p
->
timeToStop
)
Abc_Print
(
1
,
"Reached timeout (%d seconds) in frame %d.
\n
"
,
p
->
pPars
->
nTimeOut
,
iFrame
);
Abc_Print
(
1
,
"Reached timeout (%d seconds) in frame %d.
\n
"
,
p
->
pPars
->
nTimeOut
,
iFrame
);
else
else
Abc_Print
(
1
,
"Reached conflict limit (%d) in frame.
\n
"
,
p
->
pPars
->
nConfLimit
,
iFrame
);
Abc_Print
(
1
,
"Reached conflict limit (%d) in frame
%d
.
\n
"
,
p
->
pPars
->
nConfLimit
,
iFrame
);
}
}
p
->
pPars
->
iFrame
=
iFrame
;
p
->
pPars
->
iFrame
=
iFrame
;
return
-
1
;
return
-
1
;
...
...
src/proof/pdr/pdrInt.h
View file @
f06056d8
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "misc/hash/hashInt.h"
#include "misc/hash/hashInt.h"
#include "aig/gia/giaAig.h"
#include "aig/gia/giaAig.h"
//
#define PDR_USE_SATOKO 1
#define PDR_USE_SATOKO 1
#ifndef PDR_USE_SATOKO
#ifndef PDR_USE_SATOKO
#include "sat/bsat/satSolver.h"
#include "sat/bsat/satSolver.h"
...
@@ -53,6 +53,8 @@
...
@@ -53,6 +53,8 @@
#define sat_solver_solve(s,b,e,c,x,y,z) satoko_solve_assumptions_limit(s,b,e-b,(int)c)
#define sat_solver_solve(s,b,e,c,x,y,z) satoko_solve_assumptions_limit(s,b,e-b,(int)c)
#define sat_solver_var_value satoko_read_cex_varvalue
#define sat_solver_var_value satoko_read_cex_varvalue
#define sat_solver_set_runtime_limit satoko_set_runtime_limit
#define sat_solver_set_runtime_limit satoko_set_runtime_limit
#define sat_solver_set_runid satoko_set_runid
#define sat_solver_set_stop_func satoko_set_stop_func
#define sat_solver_compress(s)
#define sat_solver_compress(s)
#endif
#endif
...
...
src/sat/bsat/satSolver.h
View file @
f06056d8
...
@@ -330,6 +330,14 @@ static inline int sat_solver_count_usedvars(sat_solver* s)
...
@@ -330,6 +330,14 @@ static inline int sat_solver_count_usedvars(sat_solver* s)
}
}
return
nVars
;
return
nVars
;
}
}
static
void
sat_solver_set_runid
(
sat_solver
*
s
,
int
id
)
{
s
->
RunId
=
id
;
}
static
void
sat_solver_set_stop_func
(
sat_solver
*
s
,
int
(
*
fnct
)(
int
)
)
{
s
->
pFuncStop
=
fnct
;
}
static
inline
int
sat_solver_add_const
(
sat_solver
*
pSat
,
int
iVar
,
int
fCompl
)
static
inline
int
sat_solver_add_const
(
sat_solver
*
pSat
,
int
iVar
,
int
fCompl
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment