#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include "misc/vec/vec.h"#include "aig/aig/aig.h"#include "opt/dar/darInt.h"
Go to the source code of this file.
Classes | |
| struct | Cnf_Dat_t_ |
| struct | Cnf_Cut_t_ |
| struct | Cnf_Man_t_ |
Macros | |
| #define | Cnf_CnfForClause(p, pBeg, pEnd, i) |
| MACRO DEFINITIONS ///. | |
| #define | Cnf_CutForEachLeaf(p, pCut, pLeaf, i) |
Typedefs | |
| typedef typedefABC_NAMESPACE_HEADER_START struct Cnf_Man_t_ | Cnf_Man_t |
| INCLUDES ///. | |
| typedef struct Cnf_Dat_t_ | Cnf_Dat_t |
| typedef struct Cnf_Cut_t_ | Cnf_Cut_t |
| #define Cnf_CnfForClause | ( | p, | |
| pBeg, | |||
| pEnd, | |||
| i ) |
| #define Cnf_CutForEachLeaf | ( | p, | |
| pCut, | |||
| pLeaf, | |||
| i ) |
| typedef struct Cnf_Cut_t_ Cnf_Cut_t |
| typedef struct Cnf_Dat_t_ Cnf_Dat_t |
| typedef typedefABC_NAMESPACE_HEADER_START struct Cnf_Man_t_ Cnf_Man_t |
INCLUDES ///.
CFile****************************************************************
FileName [cnf.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [DAG-aware AIG rewriting.]
Synopsis [External declarations.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
] PARAMETERS /// BASIC TYPES ///
Function*************************************************************
Synopsis [Computes area, references, and nodes used in the mapping.]
Description [Collects the nodes in reverse topological order.]
SideEffects []
SeeAlso []
Definition at line 297 of file cnfUtil.c.

Function*************************************************************
Synopsis [Detects multi-input gate rooted at this node.]
Description []
SideEffects []
SeeAlso []
Definition at line 76 of file cnfFast.c.


|
extern |
Function*************************************************************
Synopsis [Collects nodes inside the cone.]
Description []
SideEffects []
SeeAlso []
Definition at line 198 of file cnfFast.c.


|
extern |
Function*************************************************************
Synopsis [Merges two cuts.]
Description [Returns NULL of the cuts cannot be merged.]
SideEffects []
SeeAlso []
Definition at line 294 of file cnfCut.c.


Function*************************************************************
Synopsis [Creates cut for the given node.]
Description []
SideEffects []
SeeAlso []
Definition at line 87 of file cnfCut.c.


|
extern |
|
extern |
Function*************************************************************
Synopsis [Deallocates cut.]
Description []
SideEffects []
SeeAlso []
|
extern |
|
extern |
Function*************************************************************
Synopsis [Adds constraints for the two-input AND-gate.]
Description []
SideEffects []
SeeAlso []
Definition at line 804 of file cnfMan.c.

Function*************************************************************
Synopsis [Allocates the new CNF.]
Description []
SideEffects []
SeeAlso []
Definition at line 124 of file cnfMan.c.

Function*************************************************************
Synopsis [Returns the array of CI IDs.]
Description []
SideEffects []
SeeAlso []
Definition at line 407 of file cnfUtil.c.

Function*************************************************************
Synopsis [Returns the array of CI IDs.]
Description []
SideEffects []
SeeAlso []
Definition at line 429 of file cnfUtil.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 451 of file cnfUtil.c.
Function*************************************************************
Synopsis [Allocates the new CNF.]
Description []
SideEffects []
SeeAlso []
Definition at line 151 of file cnfMan.c.

Definition at line 178 of file cnfMan.c.


|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 232 of file cnfMan.c.

|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 273 of file cnfMan.c.
|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 511 of file cnfUtil.c.


|
extern |
Function*************************************************************
Synopsis [Transforms polarity of the internal veriables.]
Description []
SideEffects []
SeeAlso []
Definition at line 768 of file cnfMan.c.

|
extern |
Function*************************************************************
Synopsis [Adds the OR-clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 743 of file cnfMan.c.

|
extern |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 387 of file cnfMan.c.


|
extern |
Definition at line 427 of file cnfMan.c.


|
extern |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 579 of file cnfMan.c.
|
extern |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 486 of file cnfMan.c.


|
extern |
Function*************************************************************
Synopsis [Adds the OR-clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 687 of file cnfMan.c.

Definition at line 165 of file cnfCore.c.


Function*************************************************************
Synopsis [Fast CNF computation.]
Description []
SideEffects []
SeeAlso []
Definition at line 666 of file cnfFast.c.


|
extern |
Function*************************************************************
Synopsis [Marks AIG for CNF computation.]
Description []
SideEffects []
SeeAlso []
Definition at line 297 of file cnfFast.c.


|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 100 of file cnfMap.c.


FUNCTION DECLARATIONS ///.
Function*************************************************************
Synopsis [Converts AIG into the SAT solver.]
Description []
SideEffects []
SeeAlso []
Definition at line 78 of file cnfCore.c.


Definition at line 219 of file cnfCore.c.


Function*************************************************************
Synopsis [Converts AIG into the SAT solver.]
Description []
SideEffects []
SeeAlso []
Definition at line 182 of file cnfCore.c.


Function*************************************************************
Synopsis [Derives a simple CNF for the AIG.]
Description [The last argument lists the number of last outputs of the manager, which will not be converted into clauses. New variables will be introduced for these outputs.]
SideEffects []
SeeAlso []
Definition at line 587 of file cnfWrite.c.


Function*************************************************************
Synopsis [Derives a simple CNF for backward retiming computation.]
Description [The last argument shows the number of last outputs of the manager, which will not be converted into clauses. New variables will be introduced for these outputs.]
SideEffects []
SeeAlso []
Definition at line 709 of file cnfWrite.c.


Function*************************************************************
Synopsis [Converts AIG into the SAT solver.]
Description []
SideEffects []
SeeAlso []
Definition at line 129 of file cnfCore.c.


|
extern |
|
extern |
Function*************************************************************
Synopsis [Transfers cuts of the mapped nodes into internal representation.]
Description []
SideEffects []
SeeAlso []
Definition at line 142 of file cnfPost.c.

|
extern |
|
extern |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 165 of file cnfPost.c.

|
extern |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 46 of file cnfCore.c.


|
extern |
Function*************************************************************
Synopsis [Computes area, references, and nodes used in the mapping.]
Description [Collects the nodes in reverse topological order.]
SideEffects []
SeeAlso []
Definition at line 377 of file cnfUtil.c.


|
extern |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Starts the fraiging manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 51 of file cnfMan.c.


|
extern |
Function*************************************************************
Synopsis [Stops the fraiging manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 82 of file cnfMan.c.


|
extern |
Function*************************************************************
Synopsis [Transfers cuts of the mapped nodes into internal representation.]
Description []
SideEffects []
SeeAlso []
Definition at line 117 of file cnfPost.c.


Function*************************************************************
Synopsis [Derives CNF for the mapping.]
Description [The last argument shows the number of last outputs of the manager, which will not be converted into clauses but the new variables for which will be introduced.]
SideEffects []
SeeAlso []
Definition at line 199 of file cnfWrite.c.


DECLARATIONS ///.
CFile****************************************************************
FileName [cnfWrite.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [AIG-to-CNF conversion.]
Synopsis []
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
] FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Derives CNF mapping.]
Description []
SideEffects []
SeeAlso []
Definition at line 45 of file cnfWrite.c.

Function*************************************************************
Synopsis [Derives CNF for the mapping.]
Description [Derives CNF with obj IDs as SAT vars and mapping of objects into clauses (pObj2Clause and pObj2Count).]
SideEffects []
SeeAlso []
Definition at line 419 of file cnfWrite.c.


|
extern |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Prepares the data for MSOPs of 4-variable functions.]
Description []
SideEffects []
SeeAlso []
Definition at line 4537 of file cnfData.c.

|
extern |
Function*************************************************************
Synopsis [Writes the cover into the array.]
Description []
SideEffects []
SeeAlso []
Definition at line 82 of file cnfWrite.c.
