cecCec.c 18.3 KB
Newer Older
Alan Mishchenko committed
1 2 3 4 5 6
/**CFile****************************************************************

  FileName    [cecCec.c]

  SystemName  [ABC: Logic synthesis and verification system.]

Alan Mishchenko committed
7
  PackageName [Combinational equivalence checking.]
Alan Mishchenko committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21

  Synopsis    [Integrated combinatinal equivalence checker.]

  Author      [Alan Mishchenko]
  
  Affiliation [UC Berkeley]

  Date        [Ver. 1.0. Started - June 20, 2005.]

  Revision    [$Id: cecCec.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]

***********************************************************************/

#include "cecInt.h"
22 23
#include "proof/fra/fra.h"
#include "aig/gia/giaAig.h"
24 25
#include "misc/extra/extra.h"
#include "sat/cnf/cnf.h"
Alan Mishchenko committed
26

27 28 29
ABC_NAMESPACE_IMPL_START


Alan Mishchenko committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
////////////////////////////////////////////////////////////////////////
///                        DECLARATIONS                              ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                     FUNCTION DEFINITIONS                         ///
////////////////////////////////////////////////////////////////////////

/**Function*************************************************************

  Synopsis    [Saves the input pattern with the given number.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
void Cec_ManTransformPattern( Gia_Man_t * p, int iOut, int * pValues )
{
    int i;
    assert( p->pCexComb == NULL );
53
    p->pCexComb = Abc_CexAlloc( 0, Gia_ManCiNum(p), 1 );
Alan Mishchenko committed
54 55
    p->pCexComb->iPo = iOut;
    for ( i = 0; i < Gia_ManCiNum(p); i++ )
56
        if ( pValues && pValues[i] )
57
            Abc_InfoSetBit( p->pCexComb->pData, i );
Alan Mishchenko committed
58 59 60 61 62 63 64 65 66 67 68 69 70
}

/**Function*************************************************************

  Synopsis    [Interface to the old CEC engine]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
71
int Cec_ManVerifyOld( Gia_Man_t * pMiter, int fVerbose, int * piOutFail, abctime clkTotal, int fSilent )
Alan Mishchenko committed
72
{
73
//    extern int Fra_FraigCec( Aig_Man_t ** ppAig, int nConfLimit, int fVerbose );
Alan Mishchenko committed
74 75
    extern int Ssw_SecCexResimulate( Aig_Man_t * p, int * pModel, int * pnOutputs );
    Gia_Man_t * pTemp = Gia_ManTransformMiter( pMiter );
Alan Mishchenko committed
76
    Aig_Man_t * pMiterCec = Gia_ManToAig( pTemp, 0 );
77
    int RetValue, iOut, nOuts;
78 79
    if ( piOutFail )
        *piOutFail = -1;
Alan Mishchenko committed
80 81
    Gia_ManStop( pTemp );
    // run CEC on this miter
82
    RetValue = Fra_FraigCec( &pMiterCec, 10000000, fVerbose );
Alan Mishchenko committed
83 84 85
    // report the miter
    if ( RetValue == 1 )
    {
86 87
        if ( !fSilent )
        {
88
            Abc_Print( 1, "Networks are equivalent.  " );
89 90
            Abc_PrintTime( 1, "Time", Abc_Clock() - clkTotal );
        }
Alan Mishchenko committed
91 92 93
    }
    else if ( RetValue == 0 )
    {
94 95
        if ( !fSilent )
        {
96
            Abc_Print( 1, "Networks are NOT EQUIVALENT.  " );
97 98
            Abc_PrintTime( 1, "Time", Abc_Clock() - clkTotal );
        }
Alan Mishchenko committed
99
        if ( pMiterCec->pData == NULL )
100
            Abc_Print( 1, "Counter-example is not available.\n" );
Alan Mishchenko committed
101 102
        else
        {
103
            iOut = Ssw_SecCexResimulate( pMiterCec, (int *)pMiterCec->pData, &nOuts );
Alan Mishchenko committed
104
            if ( iOut == -1 )
105
                Abc_Print( 1, "Counter-example verification has failed.\n" );
Alan Mishchenko committed
106 107
            else 
            {
108 109 110 111 112 113 114
                if ( !fSilent )
                {
                    Abc_Print( 1, "Primary output %d has failed", iOut );
                    if ( nOuts-1 >= 0 )
                        Abc_Print( 1, ", along with other %d incorrect outputs", nOuts-1 );
                    Abc_Print( 1, ".\n" );
                }
115 116
                if ( piOutFail )
                    *piOutFail = iOut;
Alan Mishchenko committed
117
            }
118
            Cec_ManTransformPattern( pMiter, iOut, (int *)pMiterCec->pData );
Alan Mishchenko committed
119 120
        }
    }
121
    else if ( !fSilent )
Alan Mishchenko committed
122
    {
123
        Abc_Print( 1, "Networks are UNDECIDED.  " );
Alan Mishchenko committed
124
        Abc_PrintTime( 1, "Time", Abc_Clock() - clkTotal );
Alan Mishchenko committed
125 126 127 128 129 130 131 132
    }
    fflush( stdout );
    Aig_ManStop( pMiterCec );
    return RetValue;
}

/**Function*************************************************************

133 134 135 136 137 138 139 140 141 142 143 144 145
  Synopsis    []

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
int Cec_ManHandleSpecialCases( Gia_Man_t * p, Cec_ParCec_t * pPars )
{
    Gia_Obj_t * pObj1, * pObj2;
    Gia_Obj_t * pDri1, * pDri2;
146
    int i;
147
    abctime clk = Abc_Clock();
148 149 150 151 152 153 154 155
    Gia_ManSetPhase( p );
    Gia_ManForEachPo( p, pObj1, i )
    {
        pObj2 = Gia_ManPo( p, ++i );
        // check if they different on all-0 pattern
        // (for example, when they have the same driver but complemented)
        if ( Gia_ObjPhase(pObj1) != Gia_ObjPhase(pObj2) )
        {
156 157
            if ( !pPars->fSilent )
            {
158
            Abc_Print( 1, "Networks are NOT EQUIVALENT. Output %d trivially differs (different phase).  ", i/2 );
159
            Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
160
            }
161 162 163 164 165 166 167 168 169 170
            pPars->iOutFail = i/2;
            Cec_ManTransformPattern( p, i/2, NULL );
            return 0;
        }
        // get the drivers
        pDri1 = Gia_ObjFanin0(pObj1);
        pDri2 = Gia_ObjFanin0(pObj2);
        // drivers are different PIs
        if ( Gia_ObjIsPi(p, pDri1) && Gia_ObjIsPi(p, pDri2) && pDri1 != pDri2 )
        {
171 172
            if ( !pPars->fSilent )
            {
173
            Abc_Print( 1, "Networks are NOT EQUIVALENT. Output %d trivially differs (different PIs).  ", i/2 );
174
            Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
175
            }
176 177 178 179 180 181 182 183 184 185 186
            pPars->iOutFail = i/2;
            Cec_ManTransformPattern( p, i/2, NULL );
            // if their compl attributes are the same - one should be complemented
            assert( Gia_ObjFaninC0(pObj1) == Gia_ObjFaninC0(pObj2) );
            Abc_InfoSetBit( p->pCexComb->pData, Gia_ObjCioId(pDri1) );
            return 0;
        }
        // one of the drivers is a PI; another is a constant 0
        if ( (Gia_ObjIsPi(p, pDri1) && Gia_ObjIsConst0(pDri2)) || 
             (Gia_ObjIsPi(p, pDri2) && Gia_ObjIsConst0(pDri1)) )
        {
187 188
            if ( !pPars->fSilent )
            {
189
            Abc_Print( 1, "Networks are NOT EQUIVALENT. Output %d trivially differs (PI vs. constant).  ", i/2 );
190
            Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
191
            }
192 193 194 195 196 197 198 199 200 201 202 203 204
            pPars->iOutFail = i/2;
            Cec_ManTransformPattern( p, i/2, NULL );
            // the compl attributes are the same - the PI should be complemented
            assert( Gia_ObjFaninC0(pObj1) == Gia_ObjFaninC0(pObj2) );
            if ( Gia_ObjIsPi(p, pDri1) )
                Abc_InfoSetBit( p->pCexComb->pData, Gia_ObjCioId(pDri1) );
            else
                Abc_InfoSetBit( p->pCexComb->pData, Gia_ObjCioId(pDri2) );
            return 0;
        }
    }
    if ( Gia_ManAndNum(p) == 0 )
    {
205 206
        if ( !pPars->fSilent )
        {
207
        Abc_Print( 1, "Networks are equivalent.  " );
208
        Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
209
        }
210 211 212 213 214 215 216
        return 1;
    }
    return -1;
}

/**Function*************************************************************

217 218 219 220 221 222 223 224 225 226 227
  Synopsis    [Performs naive checking.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
int Cec_ManVerifyNaive( Gia_Man_t * p, Cec_ParCec_t * pPars )
{
228
    Cnf_Dat_t * pCnf = (Cnf_Dat_t *)Mf_ManGenerateCnf( p, 8, 0, 0, 0, 0 );
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
    sat_solver * pSat = (sat_solver *)Cnf_DataWriteIntoSolver( pCnf, 1, 0 );
    Gia_Obj_t * pObj0, * pObj1;
    abctime clkStart = Abc_Clock();
    int nPairs = Gia_ManPoNum(p)/2;
    int nUnsats = 0, nSats = 0, nUndecs = 0, nTrivs = 0;
    int i, iVar0, iVar1, pLits[2], status, RetValue;
    ProgressBar * pProgress = Extra_ProgressBarStart( stdout, nPairs );
    assert( Gia_ManPoNum(p) % 2 == 0 );
    for ( i = 0; i < nPairs; i++ )
    {
        if ( (i & 0xFF) == 0 )
            Extra_ProgressBarUpdate( pProgress, i, NULL );
        pObj0 = Gia_ManPo(p, 2*i);
        pObj1 = Gia_ManPo(p, 2*i+1);
        if ( Gia_ObjChild0(pObj0) == Gia_ObjChild0(pObj1) )
        {
            nUnsats++;
            nTrivs++;
            continue;
        }
        if ( pPars->TimeLimit && (Abc_Clock() - clkStart)/CLOCKS_PER_SEC >= pPars->TimeLimit )
        {
            printf( "Timeout (%d sec) is reached.\n", pPars->TimeLimit );
            nUndecs = nPairs - nUnsats - nSats;
            break;
        }
        iVar0 = pCnf->pVarNums[ Gia_ObjId(p, pObj0) ];
        iVar1 = pCnf->pVarNums[ Gia_ObjId(p, pObj1) ];
        assert( iVar0 >= 0 && iVar1 >= 0 );
        pLits[0] = Abc_Var2Lit( iVar0, 0 );
        pLits[1] = Abc_Var2Lit( iVar1, 0 );
        // check direct
        pLits[0] = lit_neg(pLits[0]);
        status = sat_solver_solve( pSat, pLits, pLits + 2, pPars->nBTLimit, 0, 0, 0 );
        if ( status == l_False )
        {
            pLits[0] = lit_neg( pLits[0] );
            pLits[1] = lit_neg( pLits[1] );
            RetValue = sat_solver_addclause( pSat, pLits, pLits + 2 );
            assert( RetValue );
        }
        else if ( status == l_True )
        {
            printf( "Output %d is SAT.\n", i );
            nSats++;
            continue;
        }
        else
        {
            nUndecs++;
            continue;
        }
        // check inverse
        status = sat_solver_solve( pSat, pLits, pLits + 2, pPars->nBTLimit, 0, 0, 0 );
        if ( status == l_False )
        {
            pLits[0] = lit_neg( pLits[0] );
            pLits[1] = lit_neg( pLits[1] );
            RetValue = sat_solver_addclause( pSat, pLits, pLits + 2 );
            assert( RetValue );
        }
        else if ( status == l_True )
        {
            printf( "Output %d is SAT.\n", i );
            nSats++;
            continue;
        }
        else
        {
            nUndecs++;
            continue;
        }
        nUnsats++;
    }
    Extra_ProgressBarStop( pProgress );
    printf( "UNSAT = %6d.  SAT = %6d.   UNDEC = %6d.  Trivial = %6d.  ", nUnsats, nSats, nUndecs, nTrivs );
    Abc_PrintTime( 1, "Time", Abc_Clock() - clkStart );
    Cnf_DataFree( pCnf );
    sat_solver_delete( pSat );
    if ( nSats )
        return 0;
    if ( nUndecs )
        return -1;
    return 1;
}

/**Function*************************************************************

Alan Mishchenko committed
317 318 319 320 321 322 323 324 325
  Synopsis    [New CEC engine.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
326
int Cec_ManVerify( Gia_Man_t * pInit, Cec_ParCec_t * pPars )
Alan Mishchenko committed
327
{
328
    int fDumpUndecided = 0;
Alan Mishchenko committed
329
    Cec_ParFra_t ParsFra, * pParsFra = &ParsFra;
330
    Gia_Man_t * p, * pNew;
331
    int RetValue;
332 333
    abctime clk = Abc_Clock();
    abctime clkTotal = Abc_Clock();
334 335 336 337 338 339 340
    // consider special cases:
    // 1) (SAT) a pair of POs have different value under all-0 pattern
    // 2) (SAT) a pair of POs has different PI/Const drivers
    // 3) (UNSAT) 1-2 do not hold and there is no nodes
    RetValue = Cec_ManHandleSpecialCases( pInit, pPars );
    if ( RetValue == 0 || RetValue == 1 )
        return RetValue;
341 342 343 344 345
    // preprocess 
    p = Gia_ManDup( pInit );
    Gia_ManEquivFixOutputPairs( p );
    p = Gia_ManCleanup( pNew = p );
    Gia_ManStop( pNew );
346 347 348 349 350 351
    if ( pPars->fNaive )
    {
        RetValue = Cec_ManVerifyNaive( p, pPars );
        Gia_ManStop( p );
        return RetValue;
    }
352 353 354 355 356
    if ( pInit->vSimsPi )
    {
        p->vSimsPi = Vec_WrdDup(pInit->vSimsPi); 
        p->nSimWords = pInit->nSimWords;
    }
Alan Mishchenko committed
357 358
    // sweep for equivalences
    Cec_ManFraSetDefaultParams( pParsFra );
Alan Mishchenko committed
359
    pParsFra->nItersMax    = 1000;
Alan Mishchenko committed
360 361 362 363
    pParsFra->nBTLimit     = pPars->nBTLimit;
    pParsFra->TimeLimit    = pPars->TimeLimit;
    pParsFra->fVerbose     = pPars->fVerbose;
    pParsFra->fCheckMiter  = 1;
Alan Mishchenko committed
364
    pParsFra->fDualOut     = 1;
365
    pNew = Cec_ManSatSweeping( p, pParsFra, pPars->fSilent );
366 367 368 369 370 371
    pPars->iOutFail = pParsFra->iOutFail;
    // update
    pInit->pCexComb = p->pCexComb; p->pCexComb = NULL;
    Gia_ManStop( p );
    p = pInit;
    // continue
Alan Mishchenko committed
372 373
    if ( pNew == NULL )
    {
374 375
        if ( p->pCexComb != NULL )
        {
376
            if ( p->pCexComb && !Gia_ManVerifyCex( p, p->pCexComb, 1 ) )
377
                Abc_Print( 1, "Counter-example simulation has failed.\n" );
378 379
            if ( !pPars->fSilent )
            {
380
            Abc_Print( 1, "Networks are NOT EQUIVALENT.  " );
381
            Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
382
            }
383 384 385 386 387 388 389
            return 0;
        }
        p = Gia_ManDup( pInit );
        Gia_ManEquivFixOutputPairs( p );
        p = Gia_ManCleanup( pNew = p );
        Gia_ManStop( pNew );
        pNew = p;
Alan Mishchenko committed
390
    }
391 392
    if ( pPars->fVerbose )
    {
393
        Abc_Print( 1, "Networks are UNDECIDED after the new CEC engine.  " );
394
        Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
395
    }
Alan Mishchenko committed
396 397
    if ( fDumpUndecided )
    {
398 399
        ABC_FREE( pNew->pReprs );
        ABC_FREE( pNew->pNexts );
400
        Gia_AigerWrite( pNew, "gia_cec_undecided.aig", 0, 0, 0 );
401
        Abc_Print( 1, "The result is written into file \"%s\".\n", "gia_cec_undecided.aig" );
Alan Mishchenko committed
402
    }
403
    if ( pPars->TimeLimit && (Abc_Clock() - clkTotal)/CLOCKS_PER_SEC >= pPars->TimeLimit )
Alan Mishchenko committed
404 405 406 407 408
    {
        Gia_ManStop( pNew );
        return -1;
    }
    // call other solver
409
    if ( pPars->fVerbose )
410
        Abc_Print( 1, "Calling the old CEC engine.\n" );
Alan Mishchenko committed
411
    fflush( stdout );
412
    RetValue = Cec_ManVerifyOld( pNew, pPars->fVerbose, &pPars->iOutFail, clkTotal, pPars->fSilent );
Alan Mishchenko committed
413
    p->pCexComb = pNew->pCexComb; pNew->pCexComb = NULL;
414
    if ( p->pCexComb && !Gia_ManVerifyCex( p, p->pCexComb, 1 ) )
415
        Abc_Print( 1, "Counter-example simulation has failed.\n" );
Alan Mishchenko committed
416 417 418 419 420 421
    Gia_ManStop( pNew );
    return RetValue;
}

/**Function*************************************************************

422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
  Synopsis    [Simple SAT run to check equivalence.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
int Cec_ManVerifySimple( Gia_Man_t * p )
{
    Cec_ParCec_t ParsCec, * pPars = &ParsCec;
    Cec_ManCecSetDefaultParams( pPars );
    pPars->fSilent = 1;
    assert( Gia_ManCoNum(p) == 2 );
    assert( Gia_ManRegNum(p) == 0 );
    return Cec_ManVerify( p, pPars );
}

/**Function*************************************************************

Alan Mishchenko committed
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
  Synopsis    [New CEC engine applied to two circuits.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
int Cec_ManVerifyTwo( Gia_Man_t * p0, Gia_Man_t * p1, int fVerbose )
{
    Cec_ParCec_t ParsCec, * pPars = &ParsCec;
    Gia_Man_t * pMiter;
    int RetValue;
    Cec_ManCecSetDefaultParams( pPars );
    pPars->fVerbose = fVerbose;
459
    pMiter = Gia_ManMiter( p0, p1, 0, 1, 0, 0, pPars->fVerbose );
Alan Mishchenko committed
460 461 462 463 464 465 466 467 468 469 470 471 472 473
    if ( pMiter == NULL )
        return -1;
    RetValue = Cec_ManVerify( pMiter, pPars );
    p0->pCexComb = pMiter->pCexComb; pMiter->pCexComb = NULL;
    Gia_ManStop( pMiter );
    return RetValue;
}

/**Function*************************************************************

  Synopsis    [New CEC engine applied to two circuits.]

  Description [Returns 1 if equivalent, 0 if counter-example, -1 if undecided.
  Counter-example is returned in the first manager as pAig0->pSeqModel.
474
  The format is given in Abc_Cex_t (file "abc\src\aig\gia\gia.h").]
Alan Mishchenko committed
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
int Cec_ManVerifyTwoAigs( Aig_Man_t * pAig0, Aig_Man_t * pAig1, int fVerbose )
{
    Gia_Man_t * p0, * p1, * pTemp;
    int RetValue;

    p0 = Gia_ManFromAig( pAig0 );
    p0 = Gia_ManCleanup( pTemp = p0 );
    Gia_ManStop( pTemp );

    p1 = Gia_ManFromAig( pAig1 );
    p1 = Gia_ManCleanup( pTemp = p1 );
    Gia_ManStop( pTemp );

    RetValue = Cec_ManVerifyTwo( p0, p1, fVerbose );
    pAig0->pSeqModel = p0->pCexComb; p0->pCexComb = NULL;
    Gia_ManStop( p0 );
    Gia_ManStop( p1 );
    return RetValue;
}

Alan Mishchenko committed
501 502 503 504 505 506 507 508 509 510 511
/**Function*************************************************************

  Synopsis    [Implementation of new signal correspodence.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
Alan Mishchenko committed
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
Aig_Man_t * Cec_LatchCorrespondence( Aig_Man_t * pAig, int nConfs, int fUseCSat )
{
    Gia_Man_t * pGia;
    Cec_ParCor_t CorPars, * pCorPars = &CorPars;
    Cec_ManCorSetDefaultParams( pCorPars );
    pCorPars->fLatchCorr = 1;
    pCorPars->fUseCSat   = fUseCSat;
    pCorPars->nBTLimit   = nConfs;
    pGia = Gia_ManFromAigSimple( pAig );
    Cec_ManLSCorrespondenceClasses( pGia, pCorPars );
    Gia_ManReprToAigRepr( pAig, pGia );
    Gia_ManStop( pGia );
    return Aig_ManDupSimple( pAig );
}

/**Function*************************************************************

  Synopsis    [Implementation of new signal correspodence.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
Alan Mishchenko committed
538 539 540 541 542 543 544 545 546 547 548 549 550 551
Aig_Man_t * Cec_SignalCorrespondence( Aig_Man_t * pAig, int nConfs, int fUseCSat )
{
    Gia_Man_t * pGia;
    Cec_ParCor_t CorPars, * pCorPars = &CorPars;
    Cec_ManCorSetDefaultParams( pCorPars );
    pCorPars->fUseCSat  = fUseCSat;
    pCorPars->nBTLimit  = nConfs;
    pGia = Gia_ManFromAigSimple( pAig );
    Cec_ManLSCorrespondenceClasses( pGia, pCorPars );
    Gia_ManReprToAigRepr( pAig, pGia );
    Gia_ManStop( pGia );
    return Aig_ManDupSimple( pAig );
}

Alan Mishchenko committed
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
/**Function*************************************************************

  Synopsis    [Implementation of fraiging.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
Aig_Man_t * Cec_FraigCombinational( Aig_Man_t * pAig, int nConfs, int fVerbose )
{
    Gia_Man_t * pGia;
    Cec_ParFra_t FraPars, * pFraPars = &FraPars;
    Cec_ManFraSetDefaultParams( pFraPars );
568
    pFraPars->fSatSweeping = 1;
Alan Mishchenko committed
569 570 571 572
    pFraPars->nBTLimit  = nConfs;
    pFraPars->nItersMax = 20;
    pFraPars->fVerbose  = fVerbose;
    pGia = Gia_ManFromAigSimple( pAig );
573
    Cec_ManSatSweeping( pGia, pFraPars, 0 );
Alan Mishchenko committed
574 575 576 577
    Gia_ManReprToAigRepr( pAig, pGia );
    Gia_ManStop( pGia );
    return Aig_ManDupSimple( pAig );
}
Alan Mishchenko committed
578

Alan Mishchenko committed
579 580 581 582 583
////////////////////////////////////////////////////////////////////////
///                       END OF FILE                                ///
////////////////////////////////////////////////////////////////////////


584 585
ABC_NAMESPACE_IMPL_END