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
eff805a6
Commit
eff805a6
authored
Apr 28, 2023
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in choice computation.
parent
cc6834d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
src/proof/cec/cecChoice.c
+23
-0
No files found.
src/proof/cec/cecChoice.c
View file @
eff805a6
...
...
@@ -412,11 +412,33 @@ Aig_Man_t * Cec_ComputeChoices( Gia_Man_t * pGia, Dch_Pars_t * pPars )
SeeAlso []
***********************************************************************/
void
Gia_ManRemoveWrongChoices
(
Gia_Man_t
*
p
)
{
int
i
,
iObj
,
iPrev
,
Counter
=
0
;
Gia_ManForEachClass
(
p
,
i
)
{
for
(
iPrev
=
i
,
iObj
=
Gia_ObjNext
(
p
,
i
);
-
1
<
iObj
;
iObj
=
Gia_ObjNext
(
p
,
iPrev
)
)
{
Gia_Obj_t
*
pRepr
=
Gia_ObjReprObj
(
p
,
iObj
);
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
++
;
}
}
//Abc_Print( 1, "Removed %d wrong choices.\n", Counter );
}
Aig_Man_t
*
Cec_ComputeChoicesNew
(
Gia_Man_t
*
pGia
,
int
nConfs
,
int
fVerbose
)
{
extern
void
Cec4_ManSimulateTest2
(
Gia_Man_t
*
p
,
int
nConfs
,
int
fVerbose
);
Aig_Man_t
*
pAig
;
Cec4_ManSimulateTest2
(
pGia
,
nConfs
,
fVerbose
);
Gia_ManRemoveWrongChoices
(
pGia
);
pGia
=
Gia_ManEquivToChoices
(
pGia
,
3
);
pAig
=
Gia_ManToAig
(
pGia
,
1
);
Gia_ManStop
(
pGia
);
...
...
@@ -428,6 +450,7 @@ Aig_Man_t * Cec_ComputeChoicesNew2( Gia_Man_t * pGia, int nConfs, int fVerbose )
Aig_Man_t
*
pAig
;
Gia_Man_t
*
pNew
=
Cec5_ManSimulateTest3
(
pGia
,
nConfs
,
fVerbose
);
Gia_ManStop
(
pNew
);
Gia_ManRemoveWrongChoices
(
pGia
);
pGia
=
Gia_ManEquivToChoices
(
pGia
,
3
);
pAig
=
Gia_ManToAig
(
pGia
,
1
);
Gia_ManStop
(
pGia
);
...
...
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