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
4cc32031
Commit
4cc32031
authored
Sep 27, 2013
by
Niklas Een
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in Bridge mode
parent
f704aa43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/misc/util/utilBridge.c
+15
-2
No files found.
src/misc/util/utilBridge.c
View file @
4cc32031
...
...
@@ -180,6 +180,19 @@ int Gia_ManToBridgeBadAbs( FILE * pFile )
return
1
;
}
static
int
aigerNumSize
(
unsigned
x
)
{
int
sz
=
1
;
while
(
x
&
~
0x7f
)
{
sz
++
;
x
>>=
7
;
}
return
sz
;
}
/**Function*************************************************************
Synopsis []
...
...
@@ -195,7 +208,7 @@ void Gia_ManFromBridgeHolds( FILE * pFile, int iPoProved )
{
fprintf
(
pFile
,
"%.6d"
,
101
/*message type = Result*/
);
fprintf
(
pFile
,
" "
);
fprintf
(
pFile
,
"%.16d"
,
4
/*size in bytes*/
);
fprintf
(
pFile
,
"%.16d"
,
3
+
aigerNumSize
(
iPoProved
)
/*size in bytes*/
);
fprintf
(
pFile
,
" "
);
fputc
(
(
char
)
BRIDGE_VALUE_1
,
pFile
);
// true
...
...
@@ -208,7 +221,7 @@ void Gia_ManFromBridgeUnknown( FILE * pFile, int iPoUnknown )
{
fprintf
(
pFile
,
"%.6d"
,
101
/*message type = Result*/
);
fprintf
(
pFile
,
" "
);
fprintf
(
pFile
,
"%.16d"
,
3
/*size in bytes*/
);
fprintf
(
pFile
,
"%.16d"
,
2
+
aigerNumSize
(
iPoUnknown
)
/*size in bytes*/
);
fprintf
(
pFile
,
" "
);
fputc
(
(
char
)
BRIDGE_VALUE_X
,
pFile
);
// undef
...
...
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