abc-master
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "misc/vec/vec.h"
#include "aig/aig/aig.h"
#include "dar.h"
Go to the source code of this file.
Data Structures | |
struct | Dar_Cut_t_ |
struct | Dar_Man_t_ |
Macros | |
#define | Dar_ObjForEachCutAll(pObj, pCut, i) for ( (pCut) = Dar_ObjCuts(pObj), i = 0; i < (int)(pObj)->nCuts; i++, pCut++ ) |
MACRO DEFINITIONS ///. More... | |
#define | Dar_ObjForEachCut(pObj, pCut, i) for ( (pCut) = Dar_ObjCuts(pObj), i = 0; i < (int)(pObj)->nCuts; i++, pCut++ ) if ( (pCut)->fUsed==0 ) {} else |
#define | Dar_CutForEachLeaf(p, pCut, pLeaf, i) for ( i = 0; (i < (int)(pCut)->nLeaves) && (((pLeaf) = Aig_ManObj(p, (pCut)->pLeaves[i])), 1); i++ ) |
Typedefs | |
typedef typedefABC_NAMESPACE_HEADER_START struct Dar_Man_t_ | Dar_Man_t |
INCLUDES ///. More... | |
typedef struct Dar_Cut_t_ | Dar_Cut_t |
#define Dar_CutForEachLeaf | ( | p, | |
pCut, | |||
pLeaf, | |||
i | |||
) | for ( i = 0; (i < (int)(pCut)->nLeaves) && (((pLeaf) = Aig_ManObj(p, (pCut)->pLeaves[i])), 1); i++ ) |
#define Dar_ObjForEachCut | ( | pObj, | |
pCut, | |||
i | |||
) | for ( (pCut) = Dar_ObjCuts(pObj), i = 0; i < (int)(pObj)->nCuts; i++, pCut++ ) if ( (pCut)->fUsed==0 ) {} else |
#define Dar_ObjForEachCutAll | ( | pObj, | |
pCut, | |||
i | |||
) | for ( (pCut) = Dar_ObjCuts(pObj), i = 0; i < (int)(pObj)->nCuts; i++, pCut++ ) |
typedef struct Dar_Cut_t_ Dar_Cut_t |
typedef typedefABC_NAMESPACE_HEADER_START struct Dar_Man_t_ Dar_Man_t |
INCLUDES ///.
CFile****************************************************************
FileName [darInt.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [DAG-aware AIG rewriting.]
Synopsis [Internal declarations.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
]PARAMETERS ///BASIC TYPES ///
Function*************************************************************
Synopsis [Reconstructs the best cut.]
Description []
SideEffects []
SeeAlso []
Definition at line 1031 of file darLib.c.
void Dar_LibEval | ( | Dar_Man_t * | p, |
Aig_Obj_t * | pRoot, | ||
Dar_Cut_t * | pCut, | ||
int | Required, | ||
int * | pnMffcSize | ||
) |
Function*************************************************************
Synopsis [Evaluates one cut.]
Description [Returns the best gain.]
SideEffects []
SeeAlso []
Definition at line 920 of file darLib.c.
Vec_Int_t* Dar_LibReadNodes | ( | ) |
Function*************************************************************
Synopsis [Reads library from array.]
Description []
SideEffects []
SeeAlso []
Definition at line 11094 of file darData.c.
Vec_Int_t* Dar_LibReadOuts | ( | ) |
Function*************************************************************
Synopsis [Reads library from array.]
Description []
SideEffects []
SeeAlso []
Definition at line 11115 of file darData.c.
Vec_Int_t* Dar_LibReadPrios | ( | ) |
Function*************************************************************
Synopsis [Reads library from array.]
Description []
SideEffects []
SeeAlso []
Definition at line 11136 of file darData.c.
void Dar_LibReturnCanonicals | ( | unsigned * | pCanons | ) |
void Dar_LibStart | ( | ) |
MACRO DEFINITIONS ///.
Function*************************************************************
Synopsis [Starts the library.]
Description []
SideEffects []
SeeAlso []
void Dar_LibStop | ( | ) |
void Dar_ManCutsFree | ( | Dar_Man_t * | p | ) |
FUNCTION DECLARATIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 714 of file darCut.c.
void Dar_ManPrintStats | ( | Dar_Man_t * | p | ) |
Function*************************************************************
Synopsis [Stops the AIG manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 93 of file darMan.c.
Dar_Man_t* Dar_ManStart | ( | Aig_Man_t * | pAig, |
Dar_RwrPar_t * | pPars | ||
) |
DECLARATIONS ///.
CFile****************************************************************
FileName [darMan.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [DAG-aware AIG rewriting.]
Synopsis [AIG manager.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Starts the rewriting manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 44 of file darMan.c.
void Dar_ManStop | ( | Dar_Man_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 738 of file darCut.c.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 818 of file darCut.c.
Function*************************************************************
Synopsis [Prints one cut.]
Description []
SideEffects []
SeeAlso []
Definition at line 65 of file darCut.c.
Definition at line 107 of file darInt.h.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 668 of file darCut.c.
char** Dar_Permutations | ( | int | n | ) |
Function********************************************************************
Synopsis [Computes the set of all permutations.]
Description [The number of permutations in the array is n!. The number of entries in each permutation is n. Therefore, the resulting array is a two-dimentional array of the size: n! x n. To free the resulting array, call ABC_FREE() on the pointer returned by this procedure.]
SideEffects []
SeeAlso []
Definition at line 144 of file darPrec.c.
void Dar_Truth4VarNPN | ( | unsigned short ** | puCanons, |
char ** | puPhases, | ||
char ** | puPerms, | ||
unsigned char ** | puMap | ||
) |
Function*************************************************************
Synopsis [Computes NPN canonical forms for 4-variable functions.]
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file darPrec.c.