Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WSymb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTAWA-plugins
WSymb
Commits
175a026f
Commit
175a026f
authored
5 years ago
by
Ballabriga Clément
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash in dumpcft
parent
7a54468f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumpcft.cpp
+9
-1
9 additions, 1 deletion
dumpcft.cpp
with
9 additions
and
1 deletion
dumpcft.cpp
+
9
−
1
View file @
175a026f
...
...
@@ -135,7 +135,15 @@ int main(int argc, char **argv) {
fix_virtualized_loopinfo
(
entry
);
FILE
*
pwf_file
=
fopen
(
argv
[
2
],
"w"
);
long
long
*
loop_bounds
=
(
long
long
*
)
malloc
(
sizeof
(
long
long
)
*
max_loop_id
+
1
);
for
(
CFGCollection
::
Iter
iter
(
*
coll
);
iter
();
iter
++
)
for
(
CFG
::
BlockIter
iter2
((
*
iter
)
->
blocks
());
iter2
();
iter2
++
)
if
(
LOOP_HEADER
(
*
iter2
))
if
((
*
iter2
)
->
id
()
>
max_loop_id
)
max_loop_id
=
(
*
iter2
)
->
id
();
long
long
*
loop_bounds
=
(
long
long
*
)
malloc
(
sizeof
(
long
long
)
*
(
max_loop_id
+
1
));
for
(
int
i
=
0
;
i
<=
max_loop_id
;
i
++
)
loop_bounds
[
i
]
=
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment