Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a9317eac
Commit
a9317eac
authored
Oct 21, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing to work with C++ code.
parent
7592aa8a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
6 deletions
+61
-6
.hgignore
+4
-1
abcexe.dsp
+2
-2
abclib.dsp
+10
-2
src/base/abci/abc.c
+36
-0
src/base/cmd/cmdUtils.c
+8
-0
src/misc/vec/vecPtr.h
+1
-1
No files found.
.hgignore
View file @
a9317eac
...
...
@@ -19,10 +19,13 @@ src/xxx/
src/aig/au/
src/aig/ssm/
src/aig/ddb/
src/sat/bsat2/
src/base/abc2/
src/base/abc2d/
src/base/abc3/
src/base/abc4/
src/base/pcm/
src/base/ply/
...
...
abcexe.dsp
View file @
a9317eac
...
...
@@ -42,7 +42,7 @@ RSC=rc.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "src" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "src" /D "WIN32" /D "
WINDOWS" /D "
NDEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
...
...
@@ -67,7 +67,7 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "src" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "src" /D "WIN32" /D "
WINDOWS" /D "
_DEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
...
...
abclib.dsp
View file @
a9317eac
...
...
@@ -41,7 +41,7 @@ RSC=rc.exe
# PROP Intermediate_Dir "ReleaseLib"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "src" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "src" /D "WIN32" /D "
WINDOWS" /D "
NDEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
...
...
@@ -64,7 +64,7 @@ LIB32=link.exe -lib
# PROP Intermediate_Dir "DebugLib"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "src" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "src" /D "WIN32" /D "
WINDOWS" /D "
_DEBUG" /D "_CONSOLE" /D "_MBCS" /D ABC_DLL=ABC_DLLEXPORT /D "_CRT_SECURE_NO_DEPRECATE" /D "ABC_USE_PTHREADS" /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
...
...
@@ -774,6 +774,10 @@ SOURCE=.\src\base\wlc\wlcReadVer.c
SOURCE=.\src\base\wlc\wlcWriteVer.c
# End Source File
# End Group
# Begin Group "abc3"
# PROP Default_Filter ""
# End Group
# End Group
# Begin Group "bdd"
...
...
@@ -1522,6 +1526,10 @@ SOURCE=.\src\sat\bmc\bmcMulti.c
SOURCE=.\src\sat\bmc\bmcUnroll.c
# End Source File
# End Group
# Begin Group "bsat2"
# PROP Default_Filter ""
# End Group
# End Group
# Begin Group "opt"
...
...
src/base/abci/abc.c
View file @
a9317eac
...
...
@@ -66,6 +66,8 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
//#define USE_MINISAT22
static
int
Abc_CommandPrintStats
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintExdc
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintIo
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -190,6 +192,9 @@ static int Abc_CommandSendStatus ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandBackup
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandRestore
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandMinisat
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandMinisimp
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandIStrash
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandICut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandIRewrite
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -791,6 +796,9 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"Various"
,
"backup"
,
Abc_CommandBackup
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Various"
,
"restore"
,
Abc_CommandRestore
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Various"
,
"minisat"
,
Abc_CommandMinisat
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Various"
,
"minisimp"
,
Abc_CommandMinisimp
,
0
);
Cmd_CommandAdd
(
pAbc
,
"New AIG"
,
"istrash"
,
Abc_CommandIStrash
,
1
);
Cmd_CommandAdd
(
pAbc
,
"New AIG"
,
"icut"
,
Abc_CommandICut
,
0
);
Cmd_CommandAdd
(
pAbc
,
"New AIG"
,
"irw"
,
Abc_CommandIRewrite
,
1
);
...
...
@@ -13248,6 +13256,34 @@ usage:
return
1
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandMinisat
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
#ifdef USE_MINISAT22
extern
int
MainSat
(
int
argc
,
char
**
argv
);
MainSat
(
argc
,
argv
);
#endif
return
1
;
}
int
Abc_CommandMinisimp
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
#ifdef USE_MINISAT22
extern
int
MainSimp
(
int
argc
,
char
**
argv
);
MainSimp
(
argc
,
argv
);
#endif
return
1
;
}
/**Function*************************************************************
src/base/cmd/cmdUtils.c
View file @
a9317eac
...
...
@@ -489,6 +489,14 @@ void CmdFreeArgv( int argc, char **argv )
ABC_FREE
(
argv
[
i
]
);
ABC_FREE
(
argv
);
}
char
**
CmdDupArgv
(
int
argc
,
char
**
argv
)
{
char
**
argvNew
=
ABC_ALLOC
(
char
*
,
argc
);
int
i
;
for
(
i
=
0
;
i
<
argc
;
i
++
)
argvNew
[
i
]
=
Abc_UtilStrsav
(
argv
[
i
]
);
return
argvNew
;
}
/**Function*************************************************************
...
...
src/misc/vec/vecPtr.h
View file @
a9317eac
...
...
@@ -891,7 +891,7 @@ static void Vec_PtrUniqify2( Vec_Ptr_t * p, int (*Vec_PtrSortCompare)(void**, vo
Vec_IntFill
(
vCounts
,
1
,
1
);
if
(
p
->
nSize
<
2
)
return
;
Vec_PtrSort
(
p
,
Vec_PtrSortCompare
);
Vec_PtrSort
(
p
,
(
int
(
*
)())
Vec_PtrSortCompare
);
for
(
i
=
k
=
1
;
i
<
p
->
nSize
;
i
++
)
if
(
Vec_PtrSortCompare
(
p
->
pArray
+
i
,
p
->
pArray
+
k
-
1
)
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment