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
e89fe16b
Commit
e89fe16b
authored
Mar 14, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding silent mode to &splitprove.
parent
dc92f892
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
src/proof/cec/cecSplit.c
+19
-12
No files found.
src/proof/cec/cecSplit.c
View file @
e89fe16b
...
...
@@ -403,7 +403,7 @@ void Cec_GiaSplitPrintRefs( Gia_Man_t * p )
SeeAlso []
***********************************************************************/
int
Cec_GiaSplitTest2
(
Gia_Man_t
*
p
,
int
nProcs
,
int
nTimeOut
,
int
nIterMax
,
int
LookAhead
,
int
fVerbose
,
int
fVeryVerbose
)
int
Cec_GiaSplitTest2
(
Gia_Man_t
*
p
,
int
nProcs
,
int
nTimeOut
,
int
nIterMax
,
int
LookAhead
,
int
fVerbose
,
int
fVeryVerbose
,
int
fSilent
)
{
abctime
clkTotal
=
Abc_Clock
();
Vec_Ptr_t
*
vStack
;
...
...
@@ -419,11 +419,13 @@ int Cec_GiaSplitTest2( Gia_Man_t * p, int nProcs, int nTimeOut, int nIterMax, in
Cec_GiaSplitPrint
(
0
,
0
,
nSatVars
,
nSatConfs
,
status
,
Progress
,
Abc_Clock
()
-
clkTotal
);
if
(
status
==
0
)
{
if
(
!
fSilent
)
printf
(
"The problem is SAT without cofactoring.
\n
"
);
return
0
;
}
if
(
status
==
1
)
{
if
(
!
fSilent
)
printf
(
"The problem is UNSAT without cofactoring.
\n
"
);
return
1
;
}
...
...
@@ -508,16 +510,19 @@ int Cec_GiaSplitTest2( Gia_Man_t * p, int nProcs, int nTimeOut, int nIterMax, in
RetValue
=
1
;
// finish
Cec_GiaSplitClean
(
vStack
);
if
(
RetValue
==
0
)
printf
(
"Problem is SAT "
);
else
if
(
RetValue
==
1
)
printf
(
"Problem is UNSAT "
);
else
if
(
RetValue
==
-
1
)
printf
(
"Problem is UNDECIDED "
);
else
assert
(
0
);
printf
(
"after %d case-splits. "
,
nIter
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clkTotal
);
fflush
(
stdout
);
if
(
!
fSilent
)
{
if
(
RetValue
==
0
)
printf
(
"Problem is SAT "
);
else
if
(
RetValue
==
1
)
printf
(
"Problem is UNSAT "
);
else
if
(
RetValue
==
-
1
)
printf
(
"Problem is UNDECIDED "
);
else
assert
(
0
);
printf
(
"after %d case-splits. "
,
nIter
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clkTotal
);
fflush
(
stdout
);
}
return
RetValue
;
}
...
...
@@ -581,7 +586,7 @@ int Cec_GiaSplitTestInt( Gia_Man_t * p, int nProcs, int nTimeOut, int nIterMax,
printf
(
"Processes = %d TimeOut = %d sec MaxIter = %d LookAhead = %d Verbose = %d.
\n
"
,
nProcs
,
nTimeOut
,
nIterMax
,
LookAhead
,
fVerbose
);
fflush
(
stdout
);
if
(
nProcs
==
1
)
return
Cec_GiaSplitTest2
(
p
,
nProcs
,
nTimeOut
,
nIterMax
,
LookAhead
,
fVerbose
,
fVeryVerbose
);
return
Cec_GiaSplitTest2
(
p
,
nProcs
,
nTimeOut
,
nIterMax
,
LookAhead
,
fVerbose
,
fVeryVerbose
,
fSilent
);
// subtract manager thread
nProcs
--
;
assert
(
nProcs
>=
1
&&
nProcs
<=
PAR_THR_MAX
);
...
...
@@ -593,11 +598,13 @@ int Cec_GiaSplitTestInt( Gia_Man_t * p, int nProcs, int nTimeOut, int nIterMax,
Cec_GiaSplitPrint
(
0
,
0
,
nSatVars
,
nSatConfs
,
status
,
Progress
,
Abc_Clock
()
-
clkTotal
);
if
(
status
==
0
)
{
if
(
!
fSilent
)
printf
(
"The problem is SAT without cofactoring.
\n
"
);
return
0
;
}
if
(
status
==
1
)
{
if
(
!
fSilent
)
printf
(
"The problem is UNSAT without cofactoring.
\n
"
);
return
1
;
}
...
...
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