|
abc-master
|
Go to the source code of this file.
Data Structures | |
| struct | _CSAT_Target_ResultT |
Macros | |
| #define | _ABC_GATE_TYPE_ |
| #define | _ABC_STATUS_ |
| #define | _ABC_CALLER_ |
| #define | _ABC_OPTION_ |
| #define | _ABC_Target_Result |
Typedefs | |
| typedef typedefABC_NAMESPACE_HEADER_START struct ABC_ManagerStruct_t | ABC_Manager_t |
| INCLUDES ///. More... | |
| typedef struct ABC_ManagerStruct_t * | ABC_Manager |
| typedef struct _CSAT_Target_ResultT | CSAT_Target_ResultT |
Enumerations | |
| enum | GateType { CSAT_CONST = 0, CSAT_BPI, CSAT_BPPI, CSAT_BAND, CSAT_BNAND, CSAT_BOR, CSAT_BNOR, CSAT_BXOR, CSAT_BXNOR, CSAT_BINV, CSAT_BBUF, CSAT_BMUX, CSAT_BDFF, CSAT_BSDFF, CSAT_BTRIH, CSAT_BTRIL, CSAT_BBUS, CSAT_BPPO, CSAT_BPO, CSAT_BCNF, CSAT_BDC } |
| enum | CSAT_StatusT { UNDETERMINED = 0, UNSATISFIABLE, SATISFIABLE, TIME_OUT, FRAME_OUT, NO_TARGET, ABORTED, SEQ_SATISFIABLE } |
| enum | CSAT_CallerT { BLS = 0, SATORI, NONE } |
| enum | CSAT_OptionT { BASE_LINE = 0, IMPLICT_LEARNING, EXPLICT_LEARNING } |
| #define _ABC_CALLER_ |
Definition at line 95 of file csat_apis.h.
| #define _ABC_GATE_TYPE_ |
Definition at line 48 of file csat_apis.h.
| #define _ABC_OPTION_ |
Definition at line 108 of file csat_apis.h.
| #define _ABC_STATUS_ |
Definition at line 78 of file csat_apis.h.
| #define _ABC_Target_Result |
Definition at line 119 of file csat_apis.h.
| typedef struct ABC_ManagerStruct_t* ABC_Manager |
Definition at line 42 of file csat_apis.h.
| typedef typedefABC_NAMESPACE_HEADER_START struct ABC_ManagerStruct_t ABC_Manager_t |
INCLUDES ///.
CFile****************************************************************
FileName [csat_apis.h]
PackageName [Interface to CSAT.]
Synopsis [APIs, enums, and data structures expected from the use of CSAT.]
Author [Alan Mishchenko alanmi@eecs.berkeley.edu]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - August 28, 2005]
Revision [
]PARAMETERS ///STRUCTURE DEFINITIONS ///
Definition at line 41 of file csat_apis.h.
| typedef struct _CSAT_Target_ResultT CSAT_Target_ResultT |
Definition at line 120 of file csat_apis.h.
| enum CSAT_CallerT |
| Enumerator | |
|---|---|
| BLS | |
| SATORI | |
| NONE | |
Definition at line 96 of file csat_apis.h.
| enum CSAT_OptionT |
| Enumerator | |
|---|---|
| BASE_LINE | |
| IMPLICT_LEARNING | |
| EXPLICT_LEARNING | |
Definition at line 109 of file csat_apis.h.
| enum CSAT_StatusT |
| Enumerator | |
|---|---|
| UNDETERMINED | |
| UNSATISFIABLE | |
| SATISFIABLE | |
| TIME_OUT | |
| FRAME_OUT | |
| NO_TARGET | |
| ABORTED | |
| SEQ_SATISFIABLE | |
Definition at line 79 of file csat_apis.h.
| enum GateType |
Definition at line 49 of file csat_apis.h.
| int ABC_AddGate | ( | ABC_Manager | mng, |
| enum GateType | type, | ||
| char * | name, | ||
| int | nofi, | ||
| char ** | fanins, | ||
| int | dc_attr | ||
| ) |
Function*************************************************************
Synopsis [Adds a gate to the circuit.]
Description [The meaning of the parameters are: type: the type of the gate to be added name: the name of the gate to be added, name should be unique in a circuit. nofi: number of fanins of the gate to be added; fanins: the name array of fanins of the gate to be added.]
SideEffects []
SeeAlso []
Definition at line 175 of file csat_apis.c.
| int ABC_AddTarget | ( | ABC_Manager | mng, |
| int | nog, | ||
| char ** | names, | ||
| int * | values | ||
| ) |
Function*************************************************************
Synopsis [Adds a new target to the manager.]
Description [The meaning of the parameters are: nog: number of gates that are in the targets, names: name array of gates, values: value array of the corresponding gates given in "names" to be solved. The relation of them is AND.]
SideEffects []
SeeAlso []
Definition at line 534 of file csat_apis.c.
| void ABC_AnalyzeTargets | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Currently not implemented.]
Description []
SideEffects []
SeeAlso []
Definition at line 596 of file csat_apis.c.
| int ABC_Check_Integrity | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Checks integraty of the manager.]
Description [Checks if there are gates that are not used by any primary output. If no such gates exist, return 1 else return 0.]
SideEffects []
SeeAlso []
Definition at line 332 of file csat_apis.c.
| void ABC_Dump_Bench_File | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Dumps the original network into the BENCH file.]
Description [This procedure should be modified to dump the target.]
SideEffects []
SeeAlso []
Definition at line 680 of file csat_apis.c.
| void ABC_EnableDump | ( | ABC_Manager | mng, |
| char * | dump_file | ||
| ) |
Function*************************************************************
Synopsis [Sets the file name to dump the structurally hashed network used for solving.]
Description []
SideEffects []
SeeAlso []
Definition at line 513 of file csat_apis.c.
| CSAT_Target_ResultT* ABC_Get_Target_Result | ( | ABC_Manager | mng, |
| int | TargetID | ||
| ) |
Function*************************************************************
Synopsis [Gets the solve status of a target.]
Description [TargetID: the target id returned by ABC_AddTarget().]
SideEffects []
SeeAlso []
Definition at line 664 of file csat_apis.c.
| ABC_UINT64_T ABC_GetTotalBacktracksMade | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 481 of file csat_apis.c.
| ABC_UINT64_T ABC_GetTotalInspectsMade | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 497 of file csat_apis.c.
| ABC_Manager ABC_InitManager | ( | void | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Creates a new manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 81 of file csat_apis.c.
| void ABC_Network_Finalize | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [This procedure also finalizes construction of the ABC network.]
Description []
SideEffects []
SeeAlso []
Definition at line 308 of file csat_apis.c.
| void ABC_ReleaseManager | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Deletes the manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 113 of file csat_apis.c.
| void ABC_SetLearnBacktrackLimit | ( | ABC_Manager | mng, |
| int | num | ||
| ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 402 of file csat_apis.c.
| void ABC_SetLearnLimit | ( | ABC_Manager | mng, |
| int | num | ||
| ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 386 of file csat_apis.c.
| void ABC_SetSolveBacktrackLimit | ( | ABC_Manager | mng, |
| int | num | ||
| ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 418 of file csat_apis.c.
| void ABC_SetSolveOption | ( | ABC_Manager | mng, |
| enum CSAT_OptionT | option | ||
| ) |
Function*************************************************************
Synopsis [Sets solver options for learning.]
Description []
SideEffects []
SeeAlso []
Definition at line 140 of file csat_apis.c.
| void ABC_SetTimeLimit | ( | ABC_Manager | mng, |
| int | runtime | ||
| ) |
Function*************************************************************
Synopsis [Sets time limit for solving a target.]
Description [Runtime: time limit (in second).]
SideEffects []
SeeAlso []
Definition at line 370 of file csat_apis.c.
| void ABC_SetTotalBacktrackLimit | ( | ABC_Manager | mng, |
| ABC_UINT64_T | num | ||
| ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 450 of file csat_apis.c.
| void ABC_SetTotalInspectLimit | ( | ABC_Manager | mng, |
| ABC_UINT64_T | num | ||
| ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 466 of file csat_apis.c.
| enum CSAT_StatusT ABC_Solve | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Solves the targets added by ABC_AddTarget().]
Description []
SideEffects []
SeeAlso []
Definition at line 611 of file csat_apis.c.
| void ABC_SolveInit | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Initialize the solver internal data structure.]
Description [Prepares the solver to work on one specific target set by calling ABC_AddTarget before.]
SideEffects []
SeeAlso []
Definition at line 570 of file csat_apis.c.
| void ABC_TargetResFree | ( | CSAT_Target_ResultT * | p | ) |
Function*************************************************************
Synopsis [Deallocates the target result.]
Description []
SideEffects []
SeeAlso []
Definition at line 733 of file csat_apis.c.
| void ABC_UseOnlyCoreSatSolver | ( | ABC_Manager | mng | ) |
Function*************************************************************
Synopsis [Sets solving mode by brute-force SAT.]
Description []
SideEffects []
SeeAlso []
Definition at line 155 of file csat_apis.c.
| void CSAT_SetCaller | ( | ABC_Manager | mng, |
| enum CSAT_CallerT | caller | ||
| ) |