René's URL Explorer Experiment


Title: Shared: Improve range analysis for phis at loop exits by MathiasVP · Pull Request #21135 · github/codeql · GitHub

Open Graph Title: Shared: Improve range analysis for phis at loop exits by MathiasVP · Pull Request #21135 · github/codeql

X Title: Shared: Improve range analysis for phis at loop exits by MathiasVP · Pull Request #21135 · github/codeql

Description: This adds support for inferring that i <= size once the loop exits in situations such as: unsigned i = 0; while(i < size) { i++; } use(i); As @aschackmull noted this conclusion is only valid when we know that size >= 0 so for now it's restricted to the case where we can infer this constraint through the type of size. Ideally, this should be generalized later.

Open Graph Description: This adds support for inferring that i <= size once the loop exits in situations such as: unsigned i = 0; while(i < size) { i++; } use(i); As @aschackmull noted this conclusion is only vali...

X Description: This adds support for inferring that i &lt;= size once the loop exits in situations such as: unsigned i = 0; while(i &lt; size) { i++; } use(i); As @aschackmull noted this conclusion is o...

Opengraph URL: https://github.com/github/codeql/pull/21135

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:febc8924-6e27-70a9-76e0-22d288a6a412
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA110:3654CA:858E24F:B12D6F1:696E008D
html-safe-noncef3587a5c4a20010ebdccc457bb0f36cbe07eea2a1d6274e447233755be508dbb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTEwOjM2NTRDQTo4NThFMjRGOkIxMkQ2RjE6Njk2RTAwOEQiLCJ2aXNpdG9yX2lkIjoiNjIzNTgzMzI3MTg4NzcyNDY4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac06492bcf50e747736edb25e9b9d4fc9be46499f9a2597ea457fb68f408325c1b
hovercard-subject-tagpull_request:3159525699
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/21135/files
twitter:imagehttps://avatars.githubusercontent.com/u/4527323?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4527323?s=400&v=4
og:image:altThis adds support for inferring that i <= size once the loop exits in situations such as: unsigned i = 0; while(i < size) { i++; } use(i); As @aschackmull noted this conclusion is only vali...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7e5ae23c70136152637ceee8d6faceb35596ec46
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F21135%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F21135%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Reloadhttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Reloadhttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
github https://patch-diff.githubusercontent.com/github
codeqlhttps://patch-diff.githubusercontent.com/github/codeql
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql
Fork 1.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql
Code https://patch-diff.githubusercontent.com/github/codeql
Issues 918 https://patch-diff.githubusercontent.com/github/codeql/issues
Pull requests 367 https://patch-diff.githubusercontent.com/github/codeql/pulls
Discussions https://patch-diff.githubusercontent.com/github/codeql/discussions
Actions https://patch-diff.githubusercontent.com/github/codeql/actions
Projects 0 https://patch-diff.githubusercontent.com/github/codeql/projects
Models https://patch-diff.githubusercontent.com/github/codeql/models
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/github/codeql/security
Please reload this pagehttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Insights https://patch-diff.githubusercontent.com/github/codeql/pulse
Code https://patch-diff.githubusercontent.com/github/codeql
Issues https://patch-diff.githubusercontent.com/github/codeql/issues
Pull requests https://patch-diff.githubusercontent.com/github/codeql/pulls
Discussions https://patch-diff.githubusercontent.com/github/codeql/discussions
Actions https://patch-diff.githubusercontent.com/github/codeql/actions
Projects https://patch-diff.githubusercontent.com/github/codeql/projects
Models https://patch-diff.githubusercontent.com/github/codeql/models
Security https://patch-diff.githubusercontent.com/github/codeql/security
Insights https://patch-diff.githubusercontent.com/github/codeql/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
MathiasVPhttps://patch-diff.githubusercontent.com/MathiasVP
github:mainhttps://patch-diff.githubusercontent.com/github/codeql/tree/main
MathiasVP:better-range-analysis-for-phishttps://patch-diff.githubusercontent.com/MathiasVP/ql/tree/better-range-analysis-for-phis
Conversation 0 https://patch-diff.githubusercontent.com/github/codeql/pull/21135
Commits 3 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/commits
Checks 22 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/checks
Files changed 4 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Shared: Improve range analysis for phis at loop exits https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#top
Show all changes 3 commits https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
582d21d Java: Add range analysis testcase. MathiasVP Jan 9, 2026 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/commits/582d21d93419d49bfd3aada2addc2247aafbef41
915fcf9 Shared/Java: Improve range analysis for phi exits out of loops and ac… MathiasVP Jan 9, 2026 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/commits/915fcf99aad1fbde144d5b1f6f612aa36c118ccb
0bcfaba C++: Accept test changes. MathiasVP Jan 9, 2026 https://patch-diff.githubusercontent.com/github/codeql/pull/21135/commits/0bcfabac2c0e2872983592eb0ab488b458c34ee7
Clear filters https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Please reload this pagehttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
Please reload this pagehttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
SimpleRangeAnalysis_tests.cpp https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-29f77b6c545a693fa25208a7798dee396eef94f46e8f5c8259fbb2cf589d8892
A.java https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-36f2f3bfc2fab593014d62505ad3a94a16e27effa61eb23f8cb059aa77ba9d46
RangeAnalysis.expected https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-8437edd858fa3b95192241d4bca59148363bab090d21ac33f1c0b403e441aaad
RangeAnalysis.qll https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-918534c74fb32196e5f7b7dd6041782734a4d7f14be0e5f79fd3dafaddeee04e
https://patch-diff.githubusercontent.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpphttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-29f77b6c545a693fa25208a7798dee396eef94f46e8f5c8259fbb2cf589d8892
View file https://patch-diff.githubusercontent.com/github/codeql/blob/0bcfabac2c0e2872983592eb0ab488b458c34ee7/cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-29f77b6c545a693fa25208a7798dee396eef94f46e8f5c8259fbb2cf589d8892
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-29f77b6c545a693fa25208a7798dee396eef94f46e8f5c8259fbb2cf589d8892
https://patch-diff.githubusercontent.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/library-tests/dataflow/range-analysis/A.javahttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-36f2f3bfc2fab593014d62505ad3a94a16e27effa61eb23f8cb059aa77ba9d46
View file https://patch-diff.githubusercontent.com/github/codeql/blob/0bcfabac2c0e2872983592eb0ab488b458c34ee7/java/ql/test/library-tests/dataflow/range-analysis/A.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-36f2f3bfc2fab593014d62505ad3a94a16e27effa61eb23f8cb059aa77ba9d46
https://patch-diff.githubusercontent.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/library-tests/dataflow/range-analysis/RangeAnalysis.expectedhttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-8437edd858fa3b95192241d4bca59148363bab090d21ac33f1c0b403e441aaad
View file https://patch-diff.githubusercontent.com/github/codeql/blob/0bcfabac2c0e2872983592eb0ab488b458c34ee7/java/ql/test/library-tests/dataflow/range-analysis/RangeAnalysis.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-8437edd858fa3b95192241d4bca59148363bab090d21ac33f1c0b403e441aaad
https://patch-diff.githubusercontent.com/github/codeql/blob/main/CODEOWNERS#L26
shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qllhttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-918534c74fb32196e5f7b7dd6041782734a4d7f14be0e5f79fd3dafaddeee04e
View file https://patch-diff.githubusercontent.com/github/codeql/blob/0bcfabac2c0e2872983592eb0ab488b458c34ee7/shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-918534c74fb32196e5f7b7dd6041782734a4d7f14be0e5f79fd3dafaddeee04e
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-918534c74fb32196e5f7b7dd6041782734a4d7f14be0e5f79fd3dafaddeee04e
https://patch-diff.githubusercontent.com/github/codeql/pull/21135/files#diff-918534c74fb32196e5f7b7dd6041782734a4d7f14be0e5f79fd3dafaddeee04e
Please reload this pagehttps://patch-diff.githubusercontent.com/github/codeql/pull/21135/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.