Demo#2757
Draft
oxisto wants to merge 8 commits into
Draft
Conversation
- IntegerValue.kt: MemberAccess now joins the per-field declaration-state interval with field-name-filtered prevDFG sources, so `p.x` reads see inter-procedural writes (e.g. `set_point_x(&p, 99)`) without leaking values across `p.x` / `p.y`. - DeclarationState.lub: re-fold by value-equality after MapLattice's IdentityHashMap lub, so two autoboxed Integer keys with the same hash (e.g. branch1 `buf=malloc(16)`, branch2 `buf=malloc(64)`) merge into one entry with the LUB'd interval `[16, 64]`. - AbstractIntervalEvaluator.evaluate: three-way lookup — prefer state per-AST-node, fall back to declaration state, finally retain TOP for unbounded params so `couldExceed` keeps flagging unsafe strcpy. - intervalAtOrBottom helper to distinguish "no info" (BOTTOM) from "could be anything" (TOP) when joining with DFG-derived intervals. - KotlinReplHighlighter: light syntax highlighting for the codyze REPL (keywords, strings, numbers, comments, meta-commands). - README: trim the PointsToPass slot — drop redundant intra-procedural variants now subsumed by the inter-procedural example, and show the IntegerIntervalEvaluator side-by-side with MultiValueEvaluator. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
peckto
reviewed
May 21, 2026
| // Both are out of our control. We pin the flags here so the generated start | ||
| // scripts (codyze, codyze.bat) inherit them. | ||
| applicationDefaultJvmArgs = | ||
| listOf("--sun-misc-unsafe-memory-access=allow", "--enable-native-access=ALL-UNNAMED") |
Collaborator
There was a problem hiding this comment.
The option --sun-misc-unsafe-memory-access=allow fails on my java openjdk with "unknown option".
Can we move this to gradle.properties if needed?
Member
Author
There was a problem hiding this comment.
Its not needed anymore actually, that sentence can be removed
peckto
reviewed
May 21, 2026
| .optionalLanguage("de.fraunhofer.aisec.cpg.frontends.ini.IniFileLanguage") | ||
| .codeInNodes(true) | ||
|
|
||
| if (request.includeDir != null) { |
Collaborator
There was a problem hiding this comment.
It would be nice to also have support for json compilation database and unity-build option.
Not sure how we can do this in a usable/smart way when loading code via the codyze console.
No sure if unity-build mode is a no-op for languages other than CXX.
peckto
reviewed
May 21, 2026
peckto
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the console improvements and the documented Demo!
Two things I came along when playing with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Might be split into smaller PRs