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
a82bbaa9
Commit
a82bbaa9
authored
Jul 07, 2023
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in equiv class filtering.
parent
373c5ecc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
src/aig/gia/giaMini.c
+7
-0
src/proof/cec/cecSatG2.c
+15
-1
No files found.
src/aig/gia/giaMini.c
View file @
a82bbaa9
...
...
@@ -813,6 +813,13 @@ int * Abc_FrameReadMiniAigEquivClasses( Abc_Frame_t * pAbc )
printf
(
"Equivalence classes of internal GIA are not available.
\n
"
);
return
NULL
;
}
else
if
(
0
)
{
int
i
;
for
(
i
=
1
;
i
<
Gia_ManObjNum
(
pAbc
->
pGia2
);
i
++
)
if
(
Gia_ObjHasRepr
(
pAbc
->
pGia2
,
i
)
)
printf
(
"Obj %3d : Repr %3d Proved %d Failed %d
\n
"
,
i
,
Gia_ObjRepr
(
pAbc
->
pGia2
,
i
),
Gia_ObjProved
(
pAbc
->
pGia2
,
i
),
Gia_ObjFailed
(
pAbc
->
pGia2
,
i
)
);
}
if
(
Gia_ManObjNum
(
pAbc
->
pGia2
)
!=
Gia_ManObjNum
(
pAbc
->
pGiaMiniAig
)
)
printf
(
"Internal GIA with equivalence classes is not directly derived from MiniAig.
\n
"
);
// derive the set of equivalent node pairs
...
...
src/proof/cec/cecSatG2.c
View file @
a82bbaa9
...
...
@@ -1731,7 +1731,21 @@ Gia_Obj_t * Cec4_ManFindRepr( Gia_Man_t * p, Cec4_Man_t * pMan, int iObj )
}
void
Gia_ManRemoveWrongChoices
(
Gia_Man_t
*
p
)
{
int
i
,
iObj
,
iPrev
,
Counter
=
0
;
int
i
=
0
,
iObj
,
iPrev
,
Counter
=
0
;
for
(
iPrev
=
i
,
iObj
=
Gia_ObjNext
(
p
,
i
);
-
1
<
iObj
;
iObj
=
Gia_ObjNext
(
p
,
iPrev
)
)
{
Gia_Obj_t
*
pRepr
=
Gia_ObjReprObj
(
p
,
iObj
);
assert
(
pRepr
=
Gia_ManConst0
(
p
)
);
if
(
!
Gia_ObjFailed
(
p
,
iObj
)
&&
Abc_Lit2Var
(
Gia_ManObj
(
p
,
iObj
)
->
Value
)
==
Abc_Lit2Var
(
pRepr
->
Value
)
)
{
iPrev
=
iObj
;
continue
;
}
Gia_ObjSetRepr
(
p
,
iObj
,
GIA_VOID
);
Gia_ObjSetNext
(
p
,
iPrev
,
Gia_ObjNext
(
p
,
iObj
)
);
Gia_ObjSetNext
(
p
,
iObj
,
0
);
Counter
++
;
}
Gia_ManForEachClass
(
p
,
i
)
{
for
(
iPrev
=
i
,
iObj
=
Gia_ObjNext
(
p
,
i
);
-
1
<
iObj
;
iObj
=
Gia_ObjNext
(
p
,
iPrev
)
)
...
...
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