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
cf427690
Commit
cf427690
authored
Aug 09, 2017
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add frame done callback support for command &bmcs
parent
590ae696
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
src/base/abci/abc.c
+2
-0
src/sat/bmc/bmc.h
+2
-0
src/sat/bmc/bmcBmcS.c
+7
-0
No files found.
src/base/abci/abc.c
View file @
cf427690
...
...
@@ -40000,6 +40000,8 @@ int Abc_CommandAbc9SBmc( Abc_Frame_t * pAbc, int argc, char ** argv )
pPars
->
iFrame
=
0
;
// explored up to this frame
pPars
->
nFailOuts
=
0
;
// the number of failed outputs
pPars
->
nDropOuts
=
0
;
// the number of dropped outputs
pPars
->
pFuncOnFrameDone
=
pAbc
->
pFuncOnFrameDone
;
// frame done callback
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"CFTvwh"
)
)
!=
EOF
)
{
src/sat/bmc/bmc.h
View file @
cf427690
...
...
@@ -97,6 +97,8 @@ struct Bmc_AndPar_t_
int
iFrame
;
// explored up to this frame
int
nFailOuts
;
// the number of failed outputs
int
nDropOuts
;
// the number of dropped outputs
void
(
*
pFuncOnFrameDone
)(
int
,
int
,
int
);
// callback on each frame status (frame, po, statuss)
};
typedef
struct
Bmc_BCorePar_t_
Bmc_BCorePar_t
;
...
...
src/sat/bmc/bmcBmcS.c
View file @
cf427690
...
...
@@ -551,6 +551,9 @@ int Bmcs_ManPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
if
(
pCnf
==
NULL
)
{
Bmcs_ManPrintFrame
(
p
,
f
,
nClauses
,
clkStart
);
if
(
pPars
->
pFuncOnFrameDone
)
for
(
i
=
0
;
i
<
Gia_ManPoNum
(
pGia
);
i
++
)
pPars
->
pFuncOnFrameDone
(
f
,
i
,
0
);
continue
;
}
nClauses
+=
pCnf
->
nClauses
;
...
...
@@ -571,6 +574,8 @@ int Bmcs_ManPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
if
(
status
==
SATOKO_UNSAT
)
{
Bmcs_ManPrintFrame
(
p
,
f
,
nClauses
,
clkStart
);
if
(
pPars
->
pFuncOnFrameDone
)
pPars
->
pFuncOnFrameDone
(
f
,
i
,
0
);
continue
;
}
if
(
status
==
SATOKO_SAT
)
...
...
@@ -586,6 +591,8 @@ int Bmcs_ManPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
fflush
(
stdout
);
pGia
->
pCexSeq
=
Bmcs_ManGenerateCex
(
p
,
i
,
f
);
}
if
(
pPars
->
pFuncOnFrameDone
)
pPars
->
pFuncOnFrameDone
(
f
,
i
,
1
);
}
break
;
}
...
...
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