Skip to content

Improve UnionFind Alias Analyses#838

Open
fabianbs96 wants to merge 12 commits into
secure-software-engineering:developmentfrom
fabianbs96:f-ImproveUnionFindAA
Open

Improve UnionFind Alias Analyses#838
fabianbs96 wants to merge 12 commits into
secure-software-engineering:developmentfrom
fabianbs96:f-ImproveUnionFindAA

Conversation

@fabianbs96
Copy link
Copy Markdown
Member

Improve the quality of the pointer-assignment graph constructed by LLVMPAGBuilder by leveraging LLVM's MemorySSA.
This, in turn, also improves the results of the alias analyses that are based on the LLVMPAGBuilder (currently: all union-find alias analyses.

fabianbs96 and others added 9 commits May 8, 2026 15:25
…tGraph

  - Model varargs: route extra pointer args through the callee's va_list
    alloca via StorePOI edges (handleCallTarget).
  - Fix constant GEP in handleOperand: only enqueue the pointer operand,
    not integer index operands, avoiding spurious pointer merges.
  - Remove dead isReturnVariable() branch from addDelayedEdges safety
    fallback (return slots are always erased before that point).
  - Enable field sensitivity for pointer parameters: extract
    isAddressTakenImpl() from isAddressTakenVariable(), add
    isAddressTakenArg() that bypasses the allocation-site guard, and use
    it in handleGep so non-address-taken pointer args get GEP edges
    instead of collapsing to their base.
  - Filter return-slot ValueIds from BackwardView: add an optional
    FilterFn predicate to consumeAAResults() on all UnionFindAA variants
    and inject a !isReturnVariable() filter in computeUnionFindAARaw().
  - Add doc comments clarifying intentional imprecision in
    BasicUnionFindAA::onAddEdge and the K-slot constraint in
    IndirectionSensUnionFindAA::onAddValue.
@fabianbs96 fabianbs96 self-assigned this May 20, 2026
@fabianbs96 fabianbs96 added the enhancement New feature or request label May 20, 2026
@fabianbs96 fabianbs96 marked this pull request as ready for review May 20, 2026 17:03
@fabianbs96 fabianbs96 requested a review from MMory as a code owner May 20, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants