Fixing a linker problem.

This commit is contained in:
Alan Mishchenko 2025-08-06 07:38:27 -07:00
parent c738ed6e86
commit 260fa85161
2 changed files with 12 additions and 1 deletions

View File

@ -56710,6 +56710,16 @@ usage:
return 1;
}
#ifdef __cplusplus
extern "C" {
#endif
int* adder_return_array(int width, int mfo, int* pnObjs, int* pnIns, int* pnLatches, int* pnOuts, int* pnAnds, int fDumpVer, int fDumpMiter, int fVerbose);
#ifdef __cplusplus
}
#endif
/**Function*************************************************************
@ -56724,7 +56734,6 @@ usage:
***********************************************************************/
int Abc_CommandAbc9GenPrefix( Abc_Frame_t * pAbc, int argc, char ** argv )
{
extern int* adder_return_array(int width, int mfo, int* pnObjs, int* pnIns, int* pnLatches, int* pnOuts, int* pnAnds, int fDumpVer, int fDumpMiter, int fVerbose);
extern Gia_Man_t * Gia_ManDupFromArray( int * pObjs, int nObjs, int nIns, int nLatches, int nOuts, int nAnds );
int c, nBits = 8, nFans = 4, fDumpVer = 0, fDumpMiter = 0, fVerbose = 0;
Extra_UtilGetoptReset();

View File

@ -777,6 +777,8 @@ extern "C" int* adder_return_array(int width, int mfo, int* pnObjs, int* pnIns,
// generate prefix adder with miter
if ( fDumpVer )
generate_prefix_adder_verilog(graph, width, mfo, fDumpMiter);
if ( fVerbose )
graph.print();
// Count components
int num_inputs = 2 * width; // a[0..width-1], b[0..width-1]