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
e21d3075
Commit
e21d3075
authored
Aug 14, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in interpolation (false positive if property fails in frame 0).
parent
3344a46b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
src/aig/int/intCore.c
+3
-1
src/aig/int/intUtil.c
+14
-3
No files found.
src/aig/int/intCore.c
View file @
e21d3075
...
...
@@ -93,12 +93,14 @@ int Inter_ManPerformInterpolation( Aig_Man_t * pAig, Inter_ManParams_t * pPars,
assert
(
Saig_ManPoNum
(
pAig
)
-
Saig_ManConstrNum
(
pAig
)
==
1
);
if
(
pPars
->
fVerbose
&&
Saig_ManConstrNum
(
pAig
)
)
printf
(
"Performing interpolation with %d constraints...
\n
"
,
Saig_ManConstrNum
(
pAig
)
);
/*
if
(
Inter_ManCheckInitialState
(
pAig
)
)
{
*
piFrame
=
0
;
printf
(
"Property trivially fails in the initial state.
\n
"
);
return
0
;
}
/*
if ( Inter_ManCheckAllStates(pAig) )
{
printf( "Property trivially holds in all states.\n" );
...
...
src/aig/int/intUtil.c
View file @
e21d3075
...
...
@@ -46,17 +46,28 @@ ABC_NAMESPACE_IMPL_START
int
Inter_ManCheckInitialState
(
Aig_Man_t
*
p
)
{
Cnf_Dat_t
*
pCnf
;
Aig_Obj_t
*
pObj
;
sat_solver
*
pSat
;
int
status
;
int
i
,
status
;
int
clk
=
clock
();
pCnf
=
Cnf_Derive
(
p
,
Saig_ManRegNum
(
p
)
);
pSat
=
(
sat_solver
*
)
Cnf_DataWriteIntoSolver
(
pCnf
,
1
,
1
);
Cnf_DataFree
(
pCnf
);
if
(
pSat
==
NULL
)
{
Cnf_DataFree
(
pCnf
);
return
0
;
}
status
=
sat_solver_solve
(
pSat
,
NULL
,
NULL
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
sat_solver_delete
(
pSat
);
ABC_PRT
(
"Time"
,
clock
()
-
clk
);
if
(
status
==
l_True
)
{
p
->
pSeqModel
=
Abc_CexAlloc
(
Aig_ManRegNum
(
p
),
Saig_ManPiNum
(
p
),
1
);
Saig_ManForEachPi
(
p
,
pObj
,
i
)
if
(
sat_solver_var_value
(
pSat
,
pCnf
->
pVarNums
[
Aig_ObjId
(
pObj
)]
)
)
Aig_InfoSetBit
(
p
->
pSeqModel
->
pData
,
Aig_ManRegNum
(
p
)
+
i
);
}
Cnf_DataFree
(
pCnf
);
sat_solver_delete
(
pSat
);
return
status
==
l_True
;
}
...
...
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