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
4b5ffde3
Commit
4b5ffde3
authored
Jul 12, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
fba33fbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/map/mpm/mpmPre.c
+7
-8
No files found.
src/map/mpm/mpmPre.c
View file @
4b5ffde3
...
@@ -211,7 +211,7 @@ word Ifd_ObjTruth_rec( Ifd_Man_t * p, int iLit, int * pCounter )
...
@@ -211,7 +211,7 @@ word Ifd_ObjTruth_rec( Ifd_Man_t * p, int iLit, int * pCounter )
ABC_CONST
(
0xFFFFFFFF00000000
)
ABC_CONST
(
0xFFFFFFFF00000000
)
};
};
Ifd_Obj_t
*
pDsd
;
Ifd_Obj_t
*
pDsd
;
word
Fun0
,
Fun1
,
Fun2
;
word
Fun0
,
Fun1
,
Fun2
=
0
;
assert
(
!
Abc_LitIsCompl
(
iLit
)
);
assert
(
!
Abc_LitIsCompl
(
iLit
)
);
if
(
iLit
==
2
)
if
(
iLit
==
2
)
return
s_Truths6
[(
*
pCounter
)
++
];
return
s_Truths6
[(
*
pCounter
)
++
];
...
@@ -281,7 +281,7 @@ int Ifd_ManHashLookup( Ifd_Man_t * p, int iDsd0, int iDsd1, int iDsdC, int Type
...
@@ -281,7 +281,7 @@ int Ifd_ManHashLookup( Ifd_Man_t * p, int iDsd0, int iDsd1, int iDsdC, int Type
pData
[
1
]
=
iDsd1
;
pData
[
1
]
=
iDsd1
;
pData
[
2
]
=
iDsdC
;
pData
[
2
]
=
iDsdC
;
pData
[
3
]
=
Type
;
pData
[
3
]
=
Type
;
return
*
Hsh_IntManLookup
(
p
->
vHash
,
pData
);
return
*
Hsh_IntManLookup
(
p
->
vHash
,
(
unsigned
*
)
pData
);
}
}
void
Ifd_ManHashInsert
(
Ifd_Man_t
*
p
,
int
iDsd0
,
int
iDsd1
,
int
iDsdC
,
int
Type
,
int
Res
)
void
Ifd_ManHashInsert
(
Ifd_Man_t
*
p
,
int
iDsd0
,
int
iDsd1
,
int
iDsdC
,
int
Type
,
int
Res
)
{
{
...
@@ -464,7 +464,6 @@ int Ifd_ManFindDsd_rec( Ifd_Man_t * pMan, char * pStr, char ** p, int * pMatches
...
@@ -464,7 +464,6 @@ int Ifd_ManFindDsd_rec( Ifd_Man_t * pMan, char * pStr, char ** p, int * pMatches
if
(
**
p
==
'<'
)
// mux
if
(
**
p
==
'<'
)
// mux
{
{
int
Temp
[
3
],
*
pTemp
=
Temp
,
Res
;
int
Temp
[
3
],
*
pTemp
=
Temp
,
Res
;
char
*
pOld
=
*
p
;
char
*
q
=
pStr
+
pMatches
[
*
p
-
pStr
];
char
*
q
=
pStr
+
pMatches
[
*
p
-
pStr
];
assert
(
**
p
==
'<'
&&
*
q
==
'>'
);
assert
(
**
p
==
'<'
&&
*
q
==
'>'
);
// derive MAX components
// derive MAX components
...
@@ -527,8 +526,8 @@ int Ifd_ManFindDsd( Ifd_Man_t * pMan, char * p )
...
@@ -527,8 +526,8 @@ int Ifd_ManFindDsd( Ifd_Man_t * pMan, char * p )
void
Ifd_ManDsdTest2
()
void
Ifd_ManDsdTest2
()
{
{
char
*
p
=
"(abc)"
;
char
*
p
=
"(abc)"
;
char
*
q
=
"(a[bc])"
;
//
char * q = "(a[bc])";
char
*
r
=
"[<abc>(def)]"
;
//
char * r = "[<abc>(def)]";
Ifd_Man_t
*
pMan
=
Ifd_ManStart
();
Ifd_Man_t
*
pMan
=
Ifd_ManStart
();
int
iLit
=
Ifd_ManFindDsd
(
pMan
,
p
);
int
iLit
=
Ifd_ManFindDsd
(
pMan
,
p
);
Ifd_ObjPrint
(
pMan
,
iLit
);
Ifd_ObjPrint
(
pMan
,
iLit
);
...
@@ -853,14 +852,14 @@ int Ifd_ManDsdTest()
...
@@ -853,14 +852,14 @@ int Ifd_ManDsdTest()
abctime
clk
=
Abc_Clock
();
abctime
clk
=
Abc_Clock
();
FILE
*
pFile
;
FILE
*
pFile
;
char
*
pFileName
=
"dsdfuncs6.dat"
;
char
*
pFileName
=
"dsdfuncs6.dat"
;
int
size
=
Extra_FileSize
(
pFileName
)
/
12
;
// 3504275
int
RetValue
,
size
=
Extra_FileSize
(
pFileName
)
/
12
;
// 3504275
Vec_Wrd_t
*
vTruthRes
=
Vec_WrdAlloc
(
size
+
1
);
Vec_Wrd_t
*
vTruthRes
=
Vec_WrdAlloc
(
size
+
1
);
Vec_Int_t
*
vConfgRes
=
Vec_IntAlloc
(
size
);
Vec_Int_t
*
vConfgRes
=
Vec_IntAlloc
(
size
);
Hsh_IntMan_t
*
pHash
;
Hsh_IntMan_t
*
pHash
;
pFile
=
fopen
(
pFileName
,
"rb"
);
pFile
=
fopen
(
pFileName
,
"rb"
);
fread
(
Vec_WrdArray
(
vTruthRes
),
sizeof
(
word
),
size
,
pFile
);
RetValue
=
fread
(
Vec_WrdArray
(
vTruthRes
),
sizeof
(
word
),
size
,
pFile
);
fread
(
Vec_IntArray
(
vConfgRes
),
sizeof
(
int
),
size
,
pFile
);
RetValue
=
fread
(
Vec_IntArray
(
vConfgRes
),
sizeof
(
int
),
size
,
pFile
);
vTruthRes
->
nSize
=
size
;
vTruthRes
->
nSize
=
size
;
vConfgRes
->
nSize
=
size
;
vConfgRes
->
nSize
=
size
;
// create hash table
// create hash table
...
...
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