diff options
Diffstat (limited to 'src/sat/bmc/bmcCexCare.c')
-rw-r--r-- | src/sat/bmc/bmcCexCare.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sat/bmc/bmcCexCare.c b/src/sat/bmc/bmcCexCare.c index cc3e85ea..8db92444 100644 --- a/src/sat/bmc/bmcCexCare.c +++ b/src/sat/bmc/bmcCexCare.c @@ -430,6 +430,23 @@ Abc_Cex_t * Bmc_CexCareMinimize( Aig_Man_t * p, int nRealPis, Abc_Cex_t * pCex, Gia_ManStop( pGia ); return pCexMin; } +Abc_Cex_t * Bmc_CexCareSatBasedMinimize( Aig_Man_t * p, int nRealPis, Abc_Cex_t * pCex, int fHighEffort, int fCheck, int fVerbose ) +{ + Gia_Man_t * pGia = Gia_ManFromAigSimple( p ); + Abc_Cex_t * pCexMin = Bmc_CexCareSatBasedMinimizeAig( pGia, pCex, fHighEffort, fVerbose ); + if ( pCexMin == NULL ) + { + Gia_ManStop( pGia ); + return NULL; + } + // verify and return + if ( !Bmc_CexVerify( pGia, pCex, pCexMin ) ) + printf( "Counter-example verification has failed.\n" ); + else if ( fCheck ) + printf( "Counter-example verification succeeded.\n" ); + Gia_ManStop( pGia ); + return pCexMin; +} /**Function************************************************************* |