abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mvcOpBool.c File Reference
#include "mvc.h"

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START
Mvc_Cover_t
Mvc_CoverBooleanOr (Mvc_Cover_t *pCover1, Mvc_Cover_t *pCover2)
 DECLARATIONS ///. More...
 

Function Documentation

ABC_NAMESPACE_IMPL_START Mvc_Cover_t* Mvc_CoverBooleanOr ( Mvc_Cover_t pCover1,
Mvc_Cover_t pCover2 
)

DECLARATIONS ///.

CFile****************************************************************

FileName [mvcProc.c]

PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]

Synopsis [Various boolean procedures working with covers.]

Author [MVSIS Group]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - February 1, 2003.]

Revision [

Id:
mvcOpBool.c,v 1.4 2003/04/16 01:55:37 alanmi Exp

]FUNCTION DEFINITIONS /// Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 43 of file mvcOpBool.c.

44 {
45  Mvc_Cover_t * pCover;
46  Mvc_Cube_t * pCube, * pCubeCopy;
47  // make sure the covers are compatible
48  assert( pCover1->nBits == pCover2->nBits );
49  // clone the cover
50  pCover = Mvc_CoverClone( pCover1 );
51  // create the cubes by making pair-wise products
52  // of cubes in pCover1 and pCover2
53  Mvc_CoverForEachCube( pCover1, pCube )
54  {
55  pCubeCopy = Mvc_CubeDup( pCover, pCube );
56  Mvc_CoverAddCubeTail( pCover, pCubeCopy );
57  }
58  Mvc_CoverForEachCube( pCover2, pCube )
59  {
60  pCubeCopy = Mvc_CubeDup( pCover, pCube );
61  Mvc_CoverAddCubeTail( pCover, pCubeCopy );
62  }
63  return pCover;
64 }
#define Mvc_CoverAddCubeTail(pCover, pCube)
Definition: mvc.h:501
Mvc_Cube_t * Mvc_CubeDup(Mvc_Cover_t *pCover, Mvc_Cube_t *pCube)
Definition: mvcCube.c:94
Mvc_Cover_t * Mvc_CoverClone(Mvc_Cover_t *pCover)
Definition: mvcCover.c:79
#define Mvc_CoverForEachCube(Cover, Cube)
Definition: mvc.h:528
int nBits
Definition: mvc.h:87
#define assert(ex)
Definition: util_old.h:213