Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
3e649922
Commit
3e649922
authored
7 years ago
by
mc2zk
Browse files
Options
Downloads
Patches
Plain Diff
Corrected ratio calculation for fixed_calls
Former-commit-id: e44c33441f0bb6e3edbc737a674c272c4e05d198
parent
27c3ae5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libIRDB/test/fix_calls.cpp
+3
-2
3 additions, 2 deletions
libIRDB/test/fix_calls.cpp
with
3 additions
and
2 deletions
libIRDB/test/fix_calls.cpp
+
3
−
2
View file @
3e649922
...
...
@@ -852,8 +852,9 @@ void fix_all_calls(FileIR_t* firp, bool print_stats, bool fix_all)
cout
<<
"# ATTRIBUTE fix_calls::fixed_calls="
<<
std
::
dec
<<
fixed_calls
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::no_fix_needed_calls="
<<
std
::
dec
<<
not_fixed_calls
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::other_instructions="
<<
std
::
dec
<<
not_calls
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::fixed_ratio="
<<
std
::
fixed
<<
(
fixed_calls
/
((
float
)(
not_fixed_calls
+
fixed_calls
)))
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::remaining_ratio="
<<
std
::
fixed
<<
(
not_fixed_calls
/
((
float
)(
not_fixed_calls
+
fixed_calls
+
not_calls
)))
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::fixed_ratio="
<<
std
::
fixed
<<
(((
float
)
fixed_calls
)
/
((
float
)(
not_fixed_calls
+
fixed_calls
+
not_calls
)))
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::remaining_ratio="
<<
std
::
fixed
<<
((
float
)
not_fixed_calls
/
((
float
)(
not_fixed_calls
+
fixed_calls
+
not_calls
)))
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::other_insts_ratio="
<<
std
::
fixed
<<
((
float
)
not_calls
/
((
float
)(
not_fixed_calls
+
fixed_calls
+
not_calls
)))
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::no_target_insn="
<<
std
::
dec
<<
no_target_insn
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::no_fallthrough_insn="
<<
std
::
dec
<<
no_fallthrough_insn
<<
endl
;
cout
<<
"# ATTRIBUTE fix_calls::target_not_in_function="
<<
std
::
dec
<<
target_not_in_function
<<
endl
;
...
...
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