abc-master
|
#include "base/abc/abc.h"
#include "proof/fraig/fraig.h"
#include "csat_apis.h"
#include "misc/st/stmm.h"
#include "base/main/main.h"
Go to the source code of this file.
Data Structures | |
struct | ABC_ManagerStruct_t |
Macros | |
#define | ABC_DEFAULT_CONF_LIMIT 0 |
DECLARATIONS ///. More... | |
#define | ABC_DEFAULT_IMP_LIMIT 0 |
#define ABC_DEFAULT_CONF_LIMIT 0 |
DECLARATIONS ///.
CFile****************************************************************
FileName [csat_apis.h]
PackageName [Interface to CSAT.]
Synopsis [APIs, enums, and data structures expected from the use of CSAT.]
Author [Alan Mishchenko alanm] i@ee cs.be rkel ey.ed u
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - August 28, 2005]
Revision [
]
Definition at line 32 of file csat_apis.c.
#define ABC_DEFAULT_IMP_LIMIT 0 |
Definition at line 33 of file csat_apis.c.
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.
|
static |
Function*************************************************************
Synopsis [Dumps the target AIG into the BENCH file.]
Description []
SideEffects []
SeeAlso []
Definition at line 761 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_SetSolveImplicationLimit | ( | ABC_Manager | mng, |
int | num | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 434 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_Start | ( | ) |
DECLARATIONS ///.
PARAMETERS ///.
INCLUDES ///.
CFile****************************************************************
FileName [main.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [The main package.]
Synopsis [Here everything starts.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Initialization procedure for the library project.]
Description [Note that when Abc_Start() is run in a static library project, it does not load the resource file by default. As a result, ABC is not set up the same way, as when it is run on a command line. For example, some error messages while parsing files will not be produced, and intermediate networks will not be checked for consistancy. One possibility is to load the resource file after Abc_Start() as follows: Abc_UtilsSource( Abc_FrameGetGlobalFrame() );]
SideEffects []
SeeAlso []
Definition at line 52 of file mainLib.c.
void Abc_Stop | ( | ) |
Function*************************************************************
Synopsis [Deallocation procedure for the library project.]
Description []
SideEffects []
SeeAlso []
Definition at line 76 of file mainLib.c.
|
static |
Function*************************************************************
Synopsis [Allocates the target result.]
Description []
SideEffects []
SeeAlso []
Definition at line 709 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.
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the network in BENCH format.]
Description []
SideEffects []
SeeAlso []
Definition at line 53 of file ioWriteBench.c.