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
d07608c0
Commit
d07608c0
authored
Apr 22, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding the possibility to specify file name in 'pdr'.
parent
fa871615
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
src/base/abci/abc.c
+12
-2
src/proof/pdr/pdr.h
+1
-0
src/proof/pdr/pdrCore.c
+2
-1
src/proof/pdr/pdrIncr.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
d07608c0
...
...
@@ -27945,7 +27945,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Pdr_ManSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCDQTHGSLaxrmuyfqipdegjonctkvwzh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCDQTHGSL
I
axrmuyfqipdegjonctkvwzh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -28057,6 +28057,15 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
pLogFileName
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
break
;
case
'I'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-I
\"
should be followed by a file name.
\n
"
);
goto
usage
;
}
pPars
->
pInvFileName
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
break
;
case
'a'
:
pPars
->
fSolveAll
^=
1
;
break
;
...
...
@@ -28164,7 +28173,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: pdr [-MFCDQTHGS <num>] [-L <file>] [-axrmuyfqipdegjonctkvwzh]
\n
"
);
Abc_Print
(
-
2
,
"usage: pdr [-MFCDQTHGS <num>] [-L
I
<file>] [-axrmuyfqipdegjonctkvwzh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
model checking using property directed reachability (aka IC3)
\n
"
);
Abc_Print
(
-
2
,
"
\t
pioneered by Aaron R. Bradley (http://theory.stanford.edu/~arbrad/)
\n
"
);
Abc_Print
(
-
2
,
"
\t
with improvements by Niklas Een (http://een.se/niklas/)
\n
"
);
...
...
@@ -28178,6 +28187,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-G num : runtime gap since the last CEX (0 = no limit) [default = %d]
\n
"
,
pPars
->
nTimeOutGap
);
Abc_Print
(
-
2
,
"
\t
-S num : * value to seed the SAT solver with [default = %d]
\n
"
,
pPars
->
nRandomSeed
);
Abc_Print
(
-
2
,
"
\t
-L file: the log file name [default = %s]
\n
"
,
pLogFileName
?
pLogFileName
:
"no logging"
);
Abc_Print
(
-
2
,
"
\t
-I file: the invariant file name [default = %s]
\n
"
,
pPars
->
pInvFileName
?
pPars
->
pInvFileName
:
"default name"
);
Abc_Print
(
-
2
,
"
\t
-a : toggle solving all outputs even if one of them is SAT [default = %s]
\n
"
,
pPars
->
fSolveAll
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-x : toggle storing CEXes when solving all outputs [default = %s]
\n
"
,
pPars
->
fStoreCex
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle using more effort in generalization [default = %s]
\n
"
,
pPars
->
fTwoRounds
?
"yes"
:
"no"
);
src/proof/pdr/pdr.h
View file @
d07608c0
...
...
@@ -83,6 +83,7 @@ struct Pdr_Par_t_
int
(
*
pFuncOnFail
)(
int
,
Abc_Cex_t
*
);
// called for a failed output in MO mode
abctime
timeLastSolved
;
// the time when the last output was solved
Vec_Int_t
*
vOutMap
;
// in the multi-output mode, contains status for each PO (0 = sat; 1 = unsat; negative = undecided)
char
*
pInvFileName
;
// invariable file name
};
////////////////////////////////////////////////////////////////////////
...
...
src/proof/pdr/pdrCore.c
View file @
d07608c0
...
...
@@ -79,6 +79,7 @@ void Pdr_ManSetDefaultParams( Pdr_Par_t * pPars )
pPars
->
nFailOuts
=
0
;
// the number of disproved outputs
pPars
->
nDropOuts
=
0
;
// the number of timed out outputs
pPars
->
timeLastSolved
=
0
;
// last one solved
pPars
->
pInvFileName
=
NULL
;
// invariant file name
}
/**Function*************************************************************
...
...
@@ -1424,7 +1425,7 @@ int Pdr_ManSolve( Aig_Man_t * pAig, Pdr_Par_t * pPars )
}
if
(
p
->
pPars
->
fDumpInv
)
{
char
*
pFileName
=
Extra_FileNameGenericAppend
(
p
->
pAig
->
pName
,
"_inv.pla"
);
char
*
pFileName
=
pPars
->
pInvFileName
?
pPars
->
pInvFileName
:
Extra_FileNameGenericAppend
(
p
->
pAig
->
pName
,
"_inv.pla"
);
Abc_FrameSetInv
(
Pdr_ManDeriveInfinityClauses
(
p
,
RetValue
!=
1
)
);
Pdr_ManDumpClauses
(
p
,
pFileName
,
RetValue
==
1
);
printf
(
"Dumped inductive invariant in file
\"
%s
\"
.
\n
"
,
pFileName
);
...
...
src/proof/pdr/pdrIncr.c
View file @
d07608c0
...
...
@@ -843,7 +843,7 @@ int IPdr_ManSolve( Aig_Man_t * pAig, Pdr_Par_t * pPars )
}
if
(
p
->
pPars
->
fDumpInv
)
{
char
*
pFileName
=
Extra_FileNameGenericAppend
(
p
->
pAig
->
pName
,
"_inv.pla"
);
char
*
pFileName
=
pPars
->
pInvFileName
?
pPars
->
pInvFileName
:
Extra_FileNameGenericAppend
(
p
->
pAig
->
pName
,
"_inv.pla"
);
Abc_FrameSetInv
(
Pdr_ManDeriveInfinityClauses
(
p
,
RetValue
!=
1
)
);
Pdr_ManDumpClauses
(
p
,
pFileName
,
RetValue
==
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