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
017c35ba
Commit
017c35ba
authored
Mar 30, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating bmc3 printout to show the number of failed outputs.
parent
900bdfac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
src/sat/bmc/bmcBmc3.c
+12
-14
No files found.
src/sat/bmc/bmcBmc3.c
View file @
017c35ba
...
...
@@ -1382,14 +1382,14 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
// stop BMC after exploring all reachable states
if
(
!
pPars
->
nFramesJump
&&
Aig_ManRegNum
(
pAig
)
<
30
&&
f
==
(
1
<<
Aig_ManRegNum
(
pAig
))
)
{
Saig_Bmc3ManStop
(
p
)
;
return
pPars
->
nFailOuts
?
0
:
1
;
RetValue
=
pPars
->
nFailOuts
?
0
:
1
;
goto
finish
;
}
// stop BMC if all targets are solved
if
(
pPars
->
fSolveAll
&&
pPars
->
nFailOuts
==
Saig_ManPoNum
(
pAig
)
)
{
Saig_Bmc3ManStop
(
p
)
;
return
0
;
RetValue
=
0
;
goto
finish
;
}
// consider the next timeframe
if
(
RetValue
==
-
1
&&
pPars
->
nStart
==
0
&&
!
nJumpFrame
)
...
...
@@ -1432,14 +1432,12 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
if
(
pPars
->
nTimeOutGap
&&
pPars
->
timeLastSolved
&&
clock
()
>
pPars
->
timeLastSolved
+
pPars
->
nTimeOutGap
*
CLOCKS_PER_SEC
)
{
printf
(
"Reached gap timeout (%d seconds).
\n
"
,
pPars
->
nTimeOutGap
);
Saig_Bmc3ManStop
(
p
);
return
RetValue
;
goto
finish
;
}
if
(
nTimeToStop
&&
clock
()
>
nTimeToStop
)
{
printf
(
"Reached timeout (%d seconds).
\n
"
,
pPars
->
nTimeOut
);
Saig_Bmc3ManStop
(
p
);
return
RetValue
;
goto
finish
;
}
// skip solved outputs
if
(
p
->
vCexes
&&
Vec_PtrEntry
(
p
->
vCexes
,
i
)
)
...
...
@@ -1458,8 +1456,8 @@ clkOther += clock() - clk2;
printf
(
"Output %d is trivially SAT in frame %d.
\n
"
,
i
,
f
);
ABC_FREE
(
pAig
->
pSeqModel
);
pAig
->
pSeqModel
=
pCex
;
Saig_Bmc3ManStop
(
p
)
;
return
0
;
RetValue
=
0
;
goto
finish
;
}
pPars
->
nFailOuts
++
;
if
(
!
pPars
->
fNotVerbose
)
...
...
@@ -1540,8 +1538,8 @@ nTimeSat += clock() - clk2;
}
ABC_FREE
(
pAig
->
pSeqModel
);
pAig
->
pSeqModel
=
pCex
;
Saig_Bmc3ManStop
(
p
)
;
return
0
;
RetValue
=
0
;
goto
finish
;
}
pPars
->
nFailOuts
++
;
if
(
!
pPars
->
fNotVerbose
)
...
...
@@ -1568,8 +1566,7 @@ nTimeUndec += clock() - clk2;
fUnfinished
=
1
;
break
;
}
Saig_Bmc3ManStop
(
p
);
return
RetValue
;
goto
finish
;
}
}
if
(
pPars
->
fVerbose
)
...
...
@@ -1608,6 +1605,7 @@ nTimeUndec += clock() - clk2;
else
if
(
RetValue
==
-
1
&&
pPars
->
nStart
==
0
)
pPars
->
iFrame
=
f
-
1
;
//ABC_PRT( "CNF generation runtime", clkOther );
finish:
if
(
pPars
->
fVerbose
)
{
printf
(
"Runtime: "
);
...
...
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