Conversation
… if there is no 'if' between the variable and its use
Static analysis reportLizard reportListing only functions with cyclomatic complexity >= 15 or NLOC >= 100 or parameters >= 6.
Report about files you didn't modify in this PR
CppCheck report
Report files about files you didn't modify in this PR
|
Super Instructions reportSome Super Instructions are under the usage threshold (16).
Super Instructions over the threshold
|
Merging this PR will improve performance by 1.74%
Performance Changes
Comparing |
Coverage Report for CI Build 25389358327Warning No base build found for commit Coverage: 94.077%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Fuzzing report/usr/local/bin/afl-whatsup status check tool for afl-fuzz by Michal Zalewski Summary statsCycles without finds : 0 [+] Captured 47341 tuples (map size 305942, highest value 255, total values 496321994) in '/dev/null'. |
Description
This small snippet would use the wrong variable:
It's because we generate
LOAD_FAST_BY_INDEXwithout too many checks, and in the(print i b),iis loaded usingLOAD_FAST_BY_INDEX 0which is the last variable created in the current scope.This PR marks variables before conditions that create new variables as unreachable to avoid this problem, so that a safer
LOAD_FAST symbolis used instead.Checklist