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
a41a9108
Unverified
Commit
a41a9108
authored
Apr 02, 2018
by
sterin
Committed by
GitHub
Apr 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from sterin/master
Travis: build with namespaces enabled
parents
1fc200ff
dc4320d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
+34
-8
.travis.yml
+12
-3
src/demo.c
+22
-5
No files found.
.travis.yml
View file @
a41a9108
...
...
@@ -9,6 +9,15 @@ matrix:
packages
:
-
libreadline-dev
-
os
:
linux
addons
:
apt
:
packages
:
-
libreadline-dev
env
:
MAKE_ARGS
:
ABC_USE_NAMESPACE=xxx
DEMO_ARGS
:
-DABC_NAMESPACE=xxx
-
os
:
osx
osx_image
:
xcode8
before_install
:
...
...
@@ -17,10 +26,10 @@ matrix:
script
:
-
make -j2 abc
-
make
${MAKE_ARGS}
-j2 abc
-
./abc -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"
-
make libabc.a
-
g
cc
-Wall -c src/demo.c -o demo.o
-
make
${MAKE_ARGS}
libabc.a
-
g
++ ${DEMO_ARGS}
-Wall -c src/demo.c -o demo.o
-
g++ -o demo demo.o libabc.a -lm -ldl -lreadline -lpthread
-
./demo i10.aig
src/demo.c
View file @
a41a9108
...
...
@@ -25,14 +25,31 @@
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
#if defined(ABC_NAMESPACE)
namespace
ABC_NAMESPACE
{
#elif defined(__cplusplus)
extern
"C"
{
#endif
// procedures to start and stop the ABC framework
// (should be called before and after the ABC procedures are called)
extern
void
Abc_Start
();
extern
void
Abc_Stop
();
void
Abc_Start
();
void
Abc_Stop
();
// procedures to get the ABC framework and execute commands in it
extern
void
*
Abc_FrameGetGlobalFrame
();
extern
int
Cmd_CommandExecute
(
void
*
pAbc
,
char
*
sCommand
);
typedef
struct
Abc_Frame_t_
Abc_Frame_t
;
Abc_Frame_t
*
Abc_FrameGetGlobalFrame
();
int
Cmd_CommandExecute
(
Abc_Frame_t
*
pAbc
,
const
char
*
sCommand
);
#if defined(ABC_NAMESPACE)
}
using
namespace
ABC_NAMESPACE
;
#elif defined(__cplusplus)
}
#endif
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
...
...
@@ -60,7 +77,7 @@ int main( int argc, char * argv[] )
int
fPrintStats
=
1
;
int
fVerify
=
1
;
// variables
void
*
pAbc
;
Abc_Frame_t
*
pAbc
;
char
*
pFileName
;
char
Command
[
1000
];
clock_t
clkRead
,
clkResyn
,
clkVer
,
clk
;
...
...
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