+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Conversation

leops
Copy link
Contributor

@leops leops commented Jul 26, 2022

Summary

The additional control flow edges created by exception and finalization handlers were not being accounted for in the calculation of the complexity score for a control flow graph instance. This led to functions with a high control flow complexity being mistakenly run through the fine reachability analysis, with very poor performances due its exponential nature.

Test Plan

A new test case has been added to the HighComplexity tests for the noDeadCode rule that exhibits a pathological case of exponential complexity increase

@leops leops requested a review from xunilrj as a code owner July 26, 2022 09:19
@leops leops temporarily deployed to aws July 26, 2022 09:19 Inactive
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6623a9b
Status: ✅  Deploy successful!
Preview URL: https://34636680.tools-8rn.pages.dev
Branch Preview URL: https://fix-cfg-exception-complexity.tools-8rn.pages.dev

View logs

@github-actions
Copy link

@leops leops merged commit d844ad0 into main Jul 26, 2022
@leops leops deleted the fix/cfg-exception-complexity branch July 26, 2022 16:55
IWANABETHATGUY pushed a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载