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
b781c1c1
Commit
b781c1c1
authored
Nov 04, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merging heads.
parents
2076d38e
22fd7dca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/sat/bmc/bmcICheck.c
+5
-0
No files found.
src/sat/bmc/bmcICheck.c
View file @
b781c1c1
...
@@ -94,6 +94,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
...
@@ -94,6 +94,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
Vec_Int_t
*
vLits
;
Vec_Int_t
*
vLits
;
Gia_Obj_t
*
pObj
,
*
pObj0
,
*
pObj1
;
Gia_Obj_t
*
pObj
,
*
pObj0
,
*
pObj1
;
int
i
,
k
,
iVar0
,
iVar1
,
iVarOut
;
int
i
,
k
,
iVar0
,
iVar1
,
iVarOut
;
int
VarShift
=
0
;
// start the SAT solver
// start the SAT solver
pSat
=
sat_solver_new
();
pSat
=
sat_solver_new
();
...
@@ -108,6 +109,8 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
...
@@ -108,6 +109,8 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
// load the last timeframe
// load the last timeframe
Cnf_DataLiftGia
(
pCnf
,
pMiter
,
Gia_ManRegNum
(
p
)
+
Gia_ManCoNum
(
p
)
);
Cnf_DataLiftGia
(
pCnf
,
pMiter
,
Gia_ManRegNum
(
p
)
+
Gia_ManCoNum
(
p
)
);
VarShift
+=
Gia_ManRegNum
(
p
)
+
Gia_ManCoNum
(
p
);
// add XOR clauses
// add XOR clauses
Gia_ManForEachPo
(
p
,
pObj
,
i
)
Gia_ManForEachPo
(
p
,
pObj
,
i
)
{
{
...
@@ -141,6 +144,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
...
@@ -141,6 +144,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
Vec_IntPush
(
vLits
,
pCnf
->
pVarNums
[
Gia_ObjId
(
pMiter
,
pObj
)]
);
Vec_IntPush
(
vLits
,
pCnf
->
pVarNums
[
Gia_ObjId
(
pMiter
,
pObj
)]
);
// lift CNF again
// lift CNF again
Cnf_DataLiftGia
(
pCnf
,
pMiter
,
pCnf
->
nVars
);
Cnf_DataLiftGia
(
pCnf
,
pMiter
,
pCnf
->
nVars
);
VarShift
+=
pCnf
->
nVars
;
// stitch the clauses
// stitch the clauses
Gia_ManForEachRi
(
pMiter
,
pObj
,
i
)
Gia_ManForEachRi
(
pMiter
,
pObj
,
i
)
{
{
...
@@ -173,6 +177,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
...
@@ -173,6 +177,7 @@ sat_solver * Bmc_DeriveSolver( Gia_Man_t * p, Gia_Man_t * pMiter, Cnf_Dat_t * pC
assert
(
0
);
assert
(
0
);
}
}
// sat_solver_compress( pSat );
// sat_solver_compress( pSat );
Cnf_DataLiftGia
(
pCnf
,
pMiter
,
-
VarShift
);
Vec_IntFree
(
vLits
);
Vec_IntFree
(
vLits
);
return
pSat
;
return
pSat
;
}
}
...
...
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