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
5b800e05
Commit
5b800e05
authored
Mar 03, 2012
by
Niklas Een
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Counterexamples now work in Bridge
parent
929e5e16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/misc/util/utilBridge.c
+3
-1
No files found.
src/misc/util/utilBridge.c
View file @
5b800e05
...
@@ -209,8 +209,9 @@ void Gia_ManFromBridgeCex( FILE * pFile, Abc_Cex_t * pCex )
...
@@ -209,8 +209,9 @@ void Gia_ManFromBridgeCex( FILE * pFile, Abc_Cex_t * pCex )
Vec_StrPush
(
vStr
,
(
char
)
0
);
// number of the property (Armin's encoding)
Vec_StrPush
(
vStr
,
(
char
)
0
);
// number of the property (Armin's encoding)
Vec_StrPush
(
vStr
,
(
char
)
1
);
// size of vector (Armin's encoding)
Vec_StrPush
(
vStr
,
(
char
)
1
);
// size of vector (Armin's encoding)
Gia_WriteAigerEncodeStr
(
vStr
,
pCex
->
iFrame
);
// depth
Gia_WriteAigerEncodeStr
(
vStr
,
pCex
->
iFrame
);
// depth
Gia_WriteAigerEncodeStr
(
vStr
,
1
);
// concrete
Gia_WriteAigerEncodeStr
(
vStr
,
1
);
// concrete
Gia_WriteAigerEncodeStr
(
vStr
,
pCex
->
iFrame
);
// n frames
Gia_WriteAigerEncodeStr
(
vStr
,
pCex
->
iFrame
+
1
);
// number of frames (1 more than depth)
iBit
=
pCex
->
nRegs
;
iBit
=
pCex
->
nRegs
;
for
(
f
=
0
;
f
<=
pCex
->
iFrame
;
f
++
)
for
(
f
=
0
;
f
<=
pCex
->
iFrame
;
f
++
)
{
{
...
@@ -220,6 +221,7 @@ void Gia_ManFromBridgeCex( FILE * pFile, Abc_Cex_t * pCex )
...
@@ -220,6 +221,7 @@ void Gia_ManFromBridgeCex( FILE * pFile, Abc_Cex_t * pCex )
}
}
assert
(
iBit
==
pCex
->
nBits
);
assert
(
iBit
==
pCex
->
nBits
);
Vec_StrPush
(
vStr
,
(
char
)
1
);
// the number of frames (for a concrete counter-example)
Vec_StrPush
(
vStr
,
(
char
)
1
);
// the number of frames (for a concrete counter-example)
Gia_WriteAigerEncodeStr
(
vStr
,
pCex
->
nRegs
);
// num of flops
for
(
i
=
0
;
i
<
pCex
->
nRegs
;
i
++
)
for
(
i
=
0
;
i
<
pCex
->
nRegs
;
i
++
)
Vec_StrPush
(
vStr
,
(
char
)
BRIDGE_VALUE_0
);
// always zero!!!
Vec_StrPush
(
vStr
,
(
char
)
BRIDGE_VALUE_0
);
// always zero!!!
// RetValue = fwrite( Vec_StrArray(vStr), Vec_StrSize(vStr), 1, pFile );
// RetValue = fwrite( Vec_StrArray(vStr), Vec_StrSize(vStr), 1, pFile );
...
...
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