|
abc-master
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include "misc/util/abc_global.h"#include "pr.h"Go to the source code of this file.
Data Structures | |
| struct | Pr_Cls_t_ |
| struct | Pr_Man_t_ |
Macros | |
| #define | Pr_ManForEachClause(p, pCls) for( pCls = p->pHead; pCls; pCls = pCls->pNext ) |
| #define | Pr_ManForEachClauseRoot(p, pCls) for( pCls = p->pHead; pCls != p->pLearnt; pCls = pCls->pNext ) |
| #define | Pr_ManForEachClauseLearnt(p, pCls) for( pCls = p->pLearnt; pCls; pCls = pCls->pNext ) |
Typedefs | |
| typedef struct Pr_Cls_t_ | Pr_Cls_t |
Functions | |
| static lit | toLit (int v) |
| static lit | toLitCond (int v, int c) |
| static lit | lit_neg (lit l) |
| static int | lit_var (lit l) |
| static int | lit_sign (lit l) |
| static int | lit_print (lit l) |
| static lit | lit_read (int s) |
| static int | lit_check (lit l, int n) |
| static char * | Pr_ManMemoryFetch (Pr_Man_t *p, int nBytes) |
| static void | Pr_ManMemoryStop (Pr_Man_t *p) |
| static void | Pr_ManResize (Pr_Man_t *p, int nVarsNew) |
| Pr_Man_t * | Pr_ManAlloc (int nVarsAlloc) |
| FUNCTION DEFINITIONS ///. More... | |
| void | Pr_ManFree (Pr_Man_t *p) |
| int | Pr_ManAddClause (Pr_Man_t *p, lit *pBeg, lit *pEnd, int fRoot, int fClauseA) |
| int | Pr_ManProofWrite (Pr_Man_t *p) |
| static void | Pr_ManWatchClause (Pr_Man_t *p, Pr_Cls_t *pClause, lit Lit) |
| int | Pr_ManMemoryReport (Pr_Man_t *p) |
| void | Extra_PrintBinary_ (FILE *pFile, unsigned Sign[], int nBits) |
| void | Pr_ManPrintInterOne (Pr_Man_t *p, Pr_Cls_t *pClause) |
| static int | Pr_ManEnqueue (Pr_Man_t *p, lit Lit, Pr_Cls_t *pReason) |
| static void | Pr_ManCancelUntil (Pr_Man_t *p, int Level) |
| static Pr_Cls_t * | Pr_ManPropagateOne (Pr_Man_t *p, lit Lit) |
| Pr_Cls_t * | Pr_ManPropagate (Pr_Man_t *p, int Start) |
| void | Pr_ManPrintClause (Pr_Cls_t *pClause) |
| void | Pr_ManPrintResolvent (lit *pResLits, int nResLits) |
| void | Pr_ManProofWriteOne (Pr_Man_t *p, Pr_Cls_t *pClause) |
| int | Pr_ManProofTraceOne (Pr_Man_t *p, Pr_Cls_t *pConflict, Pr_Cls_t *pFinal) |
| int | Pr_ManProofRecordOne (Pr_Man_t *p, Pr_Cls_t *pClause) |
| int | Pr_ManProcessRoots (Pr_Man_t *p) |
| void | Pr_ManPrepareInter (Pr_Man_t *p) |
| Pr_Man_t * | Pr_ManProofRead (char *pFileName) |
| int | Pr_ManProofTest (char *pFileName) |
Variables | |
| ABC_NAMESPACE_IMPL_START typedef unsigned | lit |
| DECLARATIONS ///. More... | |
| static const lit | LIT_UNDEF = 0xffffffff |
| void Extra_PrintBinary_ | ( | FILE * | pFile, |
| unsigned | Sign[], | ||
| int | nBits | ||
| ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| Pr_Man_t * Pr_ManAlloc | ( | int | nVarsAlloc | ) |
|
inlinestatic |
| void Pr_ManFree | ( | Pr_Man_t * | p | ) |
|
static |
| int Pr_ManMemoryReport | ( | Pr_Man_t * | p | ) |
Function*************************************************************
Synopsis [Reports memory usage in bytes.]
Description []
SideEffects []
SeeAlso []
|
static |
| void Pr_ManPrepareInter | ( | Pr_Man_t * | p | ) |
| void Pr_ManPrintClause | ( | Pr_Cls_t * | pClause | ) |
| void Pr_ManPrintResolvent | ( | lit * | pResLits, |
| int | nResLits | ||
| ) |
Function*************************************************************
Synopsis [Prints the resolvent.]
Description []
SideEffects []
SeeAlso []
| int Pr_ManProcessRoots | ( | Pr_Man_t * | p | ) |
| Pr_Man_t* Pr_ManProofRead | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Reads clauses from file.]
Description []
SideEffects []
SeeAlso []
Definition at line 1108 of file pr.c.
Function*************************************************************
Synopsis [Records the proof for one clause.]
Description []
SideEffects []
SeeAlso []
| int Pr_ManProofTest | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Records the proof.]
Description []
SideEffects []
SeeAlso [] Function*************************************************************
Synopsis [Records the proof.]
Description []
SideEffects []
SeeAlso []
Definition at line 1226 of file pr.c.
Function*************************************************************
Synopsis [Traces the proof for one clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 672 of file pr.c.
| int Pr_ManProofWrite | ( | Pr_Man_t * | p | ) |
|
static |
|
inlinestatic |
| ABC_NAMESPACE_IMPL_START typedef unsigned lit |
DECLARATIONS ///.
CFile****************************************************************
FileName [pr.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Proof recording.]
Synopsis [Core procedures of the package.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]