Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize/asmmethodsource loop unroll remove necessity to reverse #722

Conversation

swissiety
Copy link
Collaborator

@swissiety swissiety commented Oct 26, 2023

improves readability for humans as well

use array (assign entries from high index to low index) and Arrays.toList to remove the necessity of reversing the ArrayList after creation
unify 2 ternary-ifs with equivalent condition to a single if
invert inverted if condition
…he version with: List<Immediate> args as parameter instead
…ve_necessity_to_reverse

# Conflicts:
#	sootup.java.bytecode/src/main/java/sootup/java/bytecode/frontend/AsmMethodSource.java
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (baa460f) 65.37% compared to head (5e7d922) 65.35%.
Report is 57 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #722      +/-   ##
=============================================
- Coverage      65.37%   65.35%   -0.02%     
+ Complexity      3408     3404       -4     
=============================================
  Files            313      313              
  Lines          14973    14979       +6     
  Branches        2524     2520       -4     
=============================================
+ Hits            9789     9790       +1     
- Misses          4294     4299       +5     
  Partials         890      890              
Files Coverage Δ
....core/src/main/java/sootup/core/jimple/Jimple.java 87.23% <ø> (ø)
...sootup/java/bytecode/frontend/AsmMethodSource.java 71.95% <82.97%> (-0.27%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@swissiety swissiety requested a review from stschott October 26, 2023 11:24
@stschott stschott merged commit 647da14 into develop Oct 27, 2023
8 checks passed
@swissiety swissiety deleted the optimize/asmmethodsource_loop_unroll_remove_necessity_to_reverse branch November 8, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants