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
51be0f4c
Commit
51be0f4c
authored
Oct 22, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One bug fix and two small changes.
parent
51bf1210
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletions
+21
-1
src/base/abci/abc.c
+7
-1
src/base/abci/module.make
+0
-0
src/misc/extra/extra.h
+1
-0
src/misc/extra/extraUtilFile.c
+13
-0
No files found.
src/base/abci/abc.c
View file @
51be0f4c
...
...
@@ -13247,6 +13247,8 @@ int Abc_CommandRestore( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
Abc_NtkDup
(
pAbc
->
pNtkBackup
)
);
pAbc
->
nFrames
=
-
1
;
pAbc
->
Status
=
-
1
;
return
0
;
usage:
...
...
@@ -25327,7 +25329,8 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9Read
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
Gia_Man_t
*
pAig
;
extern
void
Abc3_ReadShowHie
(
char
*
pFileName
,
int
fFlat
);
Gia_Man_t
*
pAig
=
NULL
;
FILE
*
pFile
;
char
**
pArgvNew
;
char
*
FileName
,
*
pTemp
;
...
...
@@ -25379,8 +25382,11 @@ int Abc_CommandAbc9Read( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
fUseMini
)
pAig
=
Gia_ManReadMiniAig
(
FileName
);
else
if
(
Extra_FileIsType
(
FileName
,
".v"
,
NULL
,
NULL
)
)
Abc3_ReadShowHie
(
FileName
,
fSkipStrash
);
else
pAig
=
Gia_AigerRead
(
FileName
,
fSkipStrash
,
0
);
if
(
pAig
)
Abc_FrameUpdateGia
(
pAbc
,
pAig
);
return
0
;
src/base/abci/module.make
View file @
51be0f4c
src/misc/extra/extra.h
View file @
51be0f4c
...
...
@@ -104,6 +104,7 @@ extern char * Extra_FileNameAppend( char * pBase, char * pSuffix );
extern
char
*
Extra_FileNameGeneric
(
char
*
FileName
);
extern
char
*
Extra_FileNameGenericAppend
(
char
*
pBase
,
char
*
pSuffix
);
extern
char
*
Extra_FileNameWithoutPath
(
char
*
FileName
);
extern
char
*
Extra_FilePathWithoutName
(
char
*
FileName
);
extern
int
Extra_FileCheck
(
char
*
pFileName
);
extern
int
Extra_FileSize
(
char
*
pFileName
);
extern
char
*
Extra_FileRead
(
FILE
*
pFile
);
...
...
src/misc/extra/extraUtilFile.c
View file @
51be0f4c
...
...
@@ -213,6 +213,19 @@ char * Extra_FileNameWithoutPath( char * FileName )
return
pRes
+
1
;
return
FileName
;
}
char
*
Extra_FilePathWithoutName
(
char
*
FileName
)
{
char
*
pRes
;
FileName
=
Abc_UtilStrsav
(
FileName
);
for
(
pRes
=
FileName
+
strlen
(
FileName
)
-
1
;
pRes
>=
FileName
;
pRes
--
)
if
(
*
pRes
==
'\\'
||
*
pRes
==
'/'
)
{
*
pRes
=
0
;
return
FileName
;
}
ABC_FREE
(
FileName
);
return
NULL
;
}
/**Function*************************************************************
...
...
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