summaryrefslogtreecommitdiffstats
path: root/src/map/amap/amap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/amap/amap.h')
-rw-r--r--src/map/amap/amap.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/map/amap/amap.h b/src/map/amap/amap.h
index 284af309..de7fcc18 100644
--- a/src/map/amap/amap.h
+++ b/src/map/amap/amap.h
@@ -21,6 +21,7 @@
#ifndef __AMAP_H__
#define __AMAP_H__
+
////////////////////////////////////////////////////////////////////////
/// INCLUDES ///
////////////////////////////////////////////////////////////////////////
@@ -29,14 +30,16 @@
/// PARAMETERS ///
////////////////////////////////////////////////////////////////////////
-#ifdef __cplusplus
-extern "C" {
-#endif
+
+
+ABC_NAMESPACE_HEADER_START
+
////////////////////////////////////////////////////////////////////////
/// BASIC TYPES ///
////////////////////////////////////////////////////////////////////////
+typedef struct Amap_Lib_t_ Amap_Lib_t;
typedef struct Amap_Par_t_ Amap_Par_t;
struct Amap_Par_t_
@@ -45,7 +48,7 @@ struct Amap_Par_t_
int nIterArea; // iteratoins of exact area
int fUseMuxes; // enables the use of MUXes
int fUseXors; // enables the use of XORs
- int fFreeInvs; // assume inverters are ABC_FREE (area = 0)
+ int fFreeInvs; // assume inverters are free (area = 0)
float fEpsilon; // used to compare floating point numbers
int fVerbose; // verbosity flag
};
@@ -68,15 +71,19 @@ struct Amap_Out_t_
////////////////////////////////////////////////////////////////////////
/*=== amapCore.c ==========================================================*/
-extern void Amap_ManSetDefaultParams( Amap_Par_t * pPars );
+extern void Amap_ManSetDefaultParams( Amap_Par_t * pPars );
//extern Vec_Ptr_t * Amap_ManTest( Aig_Man_t * pAig, Amap_Par_t * pPars );
+/*=== amapLib.c ==========================================================*/
+extern void Amap_LibFree( Amap_Lib_t * p );
+extern void Amap_LibPrintSelectedGates( Amap_Lib_t * p, int fAllGates );
+extern Amap_Lib_t * Amap_LibReadAndPrepare( char * pFileName, int fVerbose, int fVeryVerbose );
/*=== amapLiberty.c ==========================================================*/
-extern int Amap_LibertyParse( char * pFileName, char * pFileGenlib, int fVerbose );
+extern int Amap_LibertyParse( char * pFileName, char * pFileGenlib, int fVerbose );
+
+
+ABC_NAMESPACE_HEADER_END
-#ifdef __cplusplus
-}
-#endif
#endif