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
fe1a16e9
Commit
fe1a16e9
authored
Aug 31, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to allow &gla to run with fSimple = 1 (useful for debugging).
parent
1e53a78a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/aig/gia/giaAbsGla2.c
+6
-6
src/sat/bsat/satSolver2.c
+1
-0
No files found.
src/aig/gia/giaAbsGla2.c
View file @
fe1a16e9
...
...
@@ -769,7 +769,7 @@ static inline void Ga2_ManSetupNode( Ga2_Man_t * p, Gia_Obj_t * pObj, int fAbs )
Vec_PtrWriteEntry
(
p
->
vCnfs
,
2
*
Ga2_ObjId
(
p
,
pObj
)
+
1
,
Ga2_ManCnfCompute
(
~
uTruth
,
nLeaves
,
p
->
vIsopMem
)
);
}
static
inline
void
Ga2_ManAddToAbsOneStatic
(
Ga2_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
int
f
)
static
inline
void
Ga2_ManAddToAbsOneStatic
(
Ga2_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
int
f
,
int
fUseId
)
{
Vec_Int_t
*
vLeaves
;
Gia_Obj_t
*
pLeaf
;
...
...
@@ -779,7 +779,7 @@ static inline void Ga2_ManAddToAbsOneStatic( Ga2_Man_t * p, Gia_Obj_t * pObj, in
if
(
Gia_ObjIsConst0
(
pObj
)
||
(
f
==
0
&&
Gia_ObjIsRo
(
p
->
pGia
,
pObj
))
)
{
iLitOut
=
Abc_LitNot
(
iLitOut
);
sat_solver2_addclause
(
p
->
pSat
,
&
iLitOut
,
&
iLitOut
+
1
,
Gia_ObjId
(
p
->
pGia
,
pObj
)
);
sat_solver2_addclause
(
p
->
pSat
,
&
iLitOut
,
&
iLitOut
+
1
,
fUseId
?
Gia_ObjId
(
p
->
pGia
,
pObj
)
:
-
1
);
}
else
{
...
...
@@ -794,7 +794,7 @@ static inline void Ga2_ManAddToAbsOneStatic( Ga2_Man_t * p, Gia_Obj_t * pObj, in
fUseStatic
=
0
;
}
if
(
fUseStatic
||
Gia_ObjIsRo
(
p
->
pGia
,
pObj
)
)
Ga2_ManCnfAddStatic
(
p
->
pSat
,
Ga2_ObjCnf0
(
p
,
pObj
),
Ga2_ObjCnf1
(
p
,
pObj
),
Vec_IntArray
(
p
->
vLits
),
iLitOut
,
Gia_ObjId
(
p
->
pGia
,
pObj
)
);
Ga2_ManCnfAddStatic
(
p
->
pSat
,
Ga2_ObjCnf0
(
p
,
pObj
),
Ga2_ObjCnf1
(
p
,
pObj
),
Vec_IntArray
(
p
->
vLits
),
iLitOut
,
fUseId
?
Gia_ObjId
(
p
->
pGia
,
pObj
)
:
-
1
);
else
{
unsigned
uTruth
=
Ga2_ObjComputeTruthSpecial
(
p
->
pGia
,
pObj
,
vLeaves
,
p
->
vLits
);
...
...
@@ -946,13 +946,13 @@ void Ga2_ManAddAbsClauses( Ga2_Man_t * p, int f )
if
(
i
==
p
->
LimAbs
)
break
;
if
(
fSimple
)
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
);
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
,
0
);
else
Ga2_ManAddToAbsOneDynamic
(
p
,
pObj
,
f
);
}
Gia_ManForEachObjVec
(
p
->
vAbs
,
p
->
pGia
,
pObj
,
i
)
if
(
i
>=
p
->
LimAbs
)
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
);
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
,
1
);
// sat_solver2_simplify( p->pSat );
}
...
...
@@ -981,7 +981,7 @@ void Ga2_ManAddToAbs( Ga2_Man_t * p, Vec_Int_t * vToAdd )
{
Vec_IntFillExtra
(
Ga2_MapFrameMap
(
p
,
f
),
Vec_IntSize
(
p
->
vValues
),
-
1
);
Gia_ManForEachObjVec
(
vToAdd
,
p
->
pGia
,
pObj
,
i
)
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
);
Ga2_ManAddToAbsOneStatic
(
p
,
pObj
,
f
,
1
);
}
// sat_solver2_simplify( p->pSat );
}
...
...
src/sat/bsat/satSolver2.c
View file @
fe1a16e9
...
...
@@ -1276,6 +1276,7 @@ int sat_solver2_addclause(sat_solver2* s, lit* begin, lit* end, int Id)
int
maxvar
,
count
,
temp
;
assert
(
solver2_dlevel
(
s
)
==
0
);
assert
(
begin
<
end
);
assert
(
Id
!=
0
);
// copy clause into storage
veci_resize
(
&
s
->
temp_clause
,
0
);
...
...
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