GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Go L4 interprocedural SDG, VTA dispatch and library stand-ins (#36) · codellm-devkit/codeanalyzer-go@25dc74f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
  • CLAUDE.md
  • README.md
  • cmd/codeanalyzer
    • main.go
    • main_test.go
  • docs/design
    • Neo4j_projection
      • issues
        • child-m1-schema-contract.md
        • parent-neo4j-projection.md
      • roadmap.md
      • specs
        • neo4j-projection.md
    • notes
      • l3-dataflow-metrics.md
      • l3-eval-2026-10.md
    • roadmap.md
    • specs
      • v2-l3-l4-dataflow.md
      • v2-schema-structure.md
  • internal
    • astwalk
      • walk.go
      • walk_test.go
    • core
      • analyzer.go
      • analyzer_test.go
      • dataflow_test.go
      • sdg_test.go
      • testsetup_test.go
      • writeoutput_unix_test.go
    • dataflow
      • accesspath.go
      • bodynodes.go
      • bodynodes_test.go
      • cfg_exits.go
      • cfg_test.go
      • defuse.go
      • defuse_calls.go
      • defuse_entry.go
      • defuse_test.go
      • export_test.go
      • ir.go
      • reachdefs.go
      • reachdefs_test.go
      • run.go
      • run_test.go
    • metamorphic
      • compare.go
      • mr_test.go
      • realapp_test.go
      • run.go
      • transform.go
      • transform_delta.go
    • neo4j
      • bolt.go
      • bolt_integration_test.go
      • bolt_session_test.go
      • bolt_test.go
      • project.go
      • project_test.go
      • schema.go
      • schema_test.go
    • options
      • options.go
    • schema
      • schema.go
      • v2
        • schema.go
    • sdg
      • alias.go
      • alias_test.go
      • cha.go
      • cha_origin.go
      • cha_test.go
      • differential_test.go
      • footprint.go
      • footprint_test.go
      • ir.go
      • join.go
      • join_test.go
      • libflow_test.go
      • memlevers_test.go
      • models.go
      • models_test.go
      • params.go
      • run.go
      • scc.go
      • ssa.go
      • ssa_test.go
      • summary.go
      • summary_test.go
      • testdata
        • wire_sdg_off.golden
      • variant_test.go
      • vertices.go
      • vertices_test.go
      • vta.go
      • vta_test.go
      • wiring.go
      • wiring_test.go
      • wrap_test.go
    • semantic_analysis
      • call_graph.go
      • call_graph_test.go
      • callsite_index.go
      • chi_golden_test.go
    • syntactic_analysis
      • export.go
      • l3units.go
      • signature.go
      • symbol_table.go
      • v2emit
        • determinism_freshbuild_test.go
        • determinism_test.go
        • emit.go
        • emit_l3.go
        • emit_l4.go
        • emit_l4_test.go
        • emit_test.go
        • gate_l2_inits_test.go
        • gate_l2_test.go
        • gate_l3_test.go
        • gate_l4_done_test.go
        • gate_l4_test.go
        • gate_l4_wrap_test.go
        • gate_test.go
        • sigindex.go
  • scripts
    • eval_l3.sh
    • eval_l3_test.sh
    • l3_metrics.py
    • metamorphic.sh
    • metamorphic_args_test.sh
  • testdata
    • cgo
      • c
        • c.go
        • d.go
      • go.mod
    • dataflow
      • asm
        • asm.go
        • asm.s
      • flow
        • flow.go
      • generic
        • b.go
      • httpsql
        • httpsql.go
      • initclosure
        • a.go
        • b.go
      • libflow
        • libflow.go
      • libstore
        • libstore.go
      • linedir
        • linedir.go
      • sdg
        • globals.go
        • sdg.go
        • stdlib.go
      • variant
        • p
          • p.go
          • p_test.go
        • u
          • u.go
      • vendor
        • example.com/vlib/box
          • box.go
        • modules.txt
      • wrap
        • wrap.go
      • xtest
        • a.go
        • a_test.go
        • b_test.go
        • user
          • user.go
    • metamorphic
      • conventions.go
      • doc.go
      • go.mod
      • mr01_04_layout.go
      • mr05_alias.go
      • mr06_extract.go
      • mr08_wrap.go
      • mr09_kill.go
      • mr10_copy.go
      • mr11_swap.go
      • mr12_early_return.go
      • mr13_const_sink.go
      • mr14_route.go
    • rangefuncpkg
      • go.mod
      • pkglevel.go
    • rangefunc
      • go.mod
      • r.go
    • ssapanic
      • a
        • a.go
      • b
        • b.go
      • go.mod
      • g
        • g.go
      • w
        • w.go
    • storedlit
      • go.mod
      • storedlit.go
    • unmapped
      • go.mod
      • u.go

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Test
2525
run: go test ./... -count=1
2626

27+
- name: Metamorphic script arguments
28+
run: scripts/metamorphic_args_test.sh
29+
2730
# The release binary is built with the latest Go (release.yml), so test on
2831
# it too; the job above tests the go.mod minimum.
2932
test-stable:
Collapse file

‎CLAUDE.md‎

Copy file name to clipboardExpand all lines: CLAUDE.md
+51-13Lines changed: 51 additions & 13 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,39 @@ committed spec is the full transcript: `docs/design/specs/v2-l1-emission.md`.
9595
- **`k_limit`** (envelope, L3+ only) = `--graph-field-depth` (default 3), the access-path
9696
bound of the syntactic `ddg` (`x.f.g.h` → `x.f.g.*`); `ddg.prov` is `["ssa"]` (parity).
9797

98-
### Deferred (not this train)
99-
- L4 (SDG param edges) — reuses Group A ids/spans and the L3 vocabulary unchanged. Designed in
100-
`docs/design/specs/v2-l3-l4-dataflow.md`. A Go-specific `select` cfg kind was not added
101-
(`select` is a `switch` with `switch_case` edges).
98+
### L4 SDG (`-a 4`; spec `docs/design/specs/v2-l3-l4-dataflow.md` §4.6–§4.16, §6)
99+
Reuses Group A ids/spans and the L3 vocabulary unchanged; every L4 fact is an addition
100+
(`-a 3` ⊆ `-a 4`, gated). Leaves:
101+
- **Vertices** (body nodes, span-less, no `callee`): `@formal_in:<i>`, `@formal_out[:<i>]`,
102+
`<call-key>/actual_in:<i>`, `<call-key>/actual_out[:<i>]` (Python's `IdentityMap` indexing:
103+
`formal_in`/`actual_in` always indexed; an out is bare iff its group has one vertex). Actuals
104+
carry `parent` = the call key (a non-call capture site: the literal's host). **`of`** (D6,
105+
Python spelling, which the SDK's resolver reads): the param/receiver name; unnamed or `_` param
106+
`_<i>` (declared index, receiver excluded); unnamed or `_` receiver **`_recv`**; results
107+
`<return>` / **`<return>:<i>`** (never user result names; `:<i>` is a Go leaf);
108+
`<capture>:<name>`; `<global>:<pkgpath>::<Name>`. The SDK reads `of`, never
109+
`parameters[]` (`formal_in:0` is a method's receiver).
110+
- **Edges:** application `param_in[]` / `param_out[]` `{src, dst, var}` (global ids, `var` = the
111+
callee formal's `of`); callable `summary[] {src, dst}` (local keys, actual_in → actual_out);
112+
port wiring in `ddg` with `prov: ["reaching-defs"]` (Python precedent; coarse host wiring:
113+
host → every actual_in, every actual_out → host); may-alias `ddg` with `prov: ["points-to"]`.
114+
- **Dispatch:** VTA over the project's functions (library targets in the set); `call_graph`
115+
gains VTA-only edges `prov: ["vta"]`, weight 1 (an L2 edge is never changed). **D7:** an
116+
interface call binds the interface method (pass-through summary) *and* every VTA target.
117+
- **Stand-ins:** `external_symbols[].receiver {name, type}` and `.body` (formal vertices only,
118+
ids `<external-id>@formal_in:<i>`); summary all-to-all unless `--library-models` overrides it
119+
(keys `<import-path>/<sig>`, values `[in, out]` `of` pairs). A model changes summaries, not
120+
statement-level reachability; sanitizer semantics are the SDK's [user, 2026-10-27;
121+
codellm-devkit/.github#103].
122+
- **`degraded[]`** envelope leaf `{code, detail?, packages[]?, callables[]?}`, absent when
123+
nothing degraded; codes `no_ssa | no_vta | no_cha | partial_ssa | partial_types | unmapped_ssa |
124+
l3_skipped | range_func` (open vocabulary). `--strict` exits non-zero on any.
125+
- **Rulings:** global → global summary edges are omitted [user, 2026-10-26; #30]; memory is
126+
measured and reported per app, not gated (D3) [user, 2026-10-26]; range-over-func is not
127+
modelled, degraded `range_func` (D8); `-a 4 -t` is an error and `--emit neo4j -t` projects
128+
at L3 with a warning (D9).
129+
- A Go-specific `select` cfg kind was not added (`select` is a `switch` with `switch_case`
130+
edges).
102131

103132
## Neo4j-projection decisions
104133

@@ -185,11 +214,17 @@ shared neutral vocabulary verbatim; never rename a sibling's shared name). Spec:
185214
It carries `call_node` (JSON `parent` verbatim — the **local** key, see § Flattened
186215
properties) and `var` (JSON `of`; L4 — absent at L3). `GO_HAS_BODY_NODE` may originate at `:GoExternal` (L4 stand-ins).
187216

188-
### Reserved L4 overlay (declared now, emits nothing until L4 lands)
189-
- `schema.go` still declares `GO_PARAM_IN`, `GO_PARAM_OUT`, `GO_SUMMARY` (`Reserved`) with
190-
parity-correct names; the projector emits **zero rows** for them. When L4 lands they fill
191-
with **no schema-contract change**. (`--emit neo4j` is "full-depth = max implemented" —
192-
L3 today; the graph grows additively.)
217+
### L4 overlay (live; `--emit neo4j` runs at L4, D4)
218+
- `GO_PARAM_IN {var}`, `GO_PARAM_OUT {var}` and `GO_SUMMARY` are live (no longer `Reserved`;
219+
same names as declared, no contract change). One row per JSON `param_in[]` / `param_out[]` /
220+
`summary[]` entry; endpoints are `:GoBodyNode` global ids. Port and points-to ddg ride
221+
`GO_DDG {var, prov}` (`_k = var|prov`).
222+
- Vertices are `:GoBodyNode`s with `var` (= JSON `of`) and `call_node` (actuals); stand-in
223+
vertices hang off their `:GoExternal` via `GO_HAS_BODY_NODE`. `:GoApplication.degraded_json`
224+
carries the envelope's `degraded[]`.
225+
- **Lazy push (D5):** every L4 row is upserted on every push (L4 facts are non-local); stale L4
226+
rows need `--eager`. A stored `max_level` below the push's (or unreadable) forces a full
227+
upsert; a lower-level push leaves old L4 rows. `--emit neo4j -t` projects at L3 (D9).
193228

194229
### SDK facade (`GoAnalysisBackend`, on the `python-sdk` fork — frontend rung)
195230
- **Type-centric surface** (Go is the SDK's first class-less facade; no C precedent exists
@@ -202,10 +237,13 @@ shared neutral vocabulary verbatim; never rename a sibling's shared name). Spec:
202237
getters + `get_source`. Slicing / CFG / CDG / DDG / reachability are **omitted** (they
203238
need L3/L4 the analyzer does not produce) per the ABC contract. (2026-10-24: L3 is now
204239
emitted at `-a 3` — per-callable `cfg`/`cdg`/`ddg` and `GO_CFG_NEXT`/`GO_CDG`/`GO_DDG` —
205-
so L3 accessors are supportable now; interprocedural slicing and taint still need L4:
206-
`param_in`/`param_out`/`summary` and the points-to `ddg`.)
240+
so L3 accessors are supportable now. 2026-10-27: L4 is emitted at `-a 4` and by
241+
`--emit neo4j` — `param_in`/`param_out`/`summary` and the points-to `ddg` — so
242+
interprocedural slicing and taint are supportable too.)
207243

208244
### Deferred (not this train)
209-
- SDK consumer slicing/taint surface and L3/L4 facade methods — arrive with the L3/L4
210-
analyzer train, reusing this graph vocabulary unchanged.
245+
- SDK consumer slicing/taint surface and L3/L4 facade methods — the analyzer now emits L4;
246+
the SDK side reuses this graph vocabulary unchanged.
211247
- Struct-tag modeling. (`defer_resume` landed with L3; see § L3 body and edges.)
248+
- `GO_EMBEDS` / `GO_SATISFIES` resolution: `base_types[]` holds raw type strings and
249+
`interfaces[]` is never computed (#31, pre-existing).

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.