Skip to content

Fix transitive dependency resolution for --use modules#5

Merged
smintz merged 1 commit intomainfrom
fix-transitive-deps
Mar 7, 2026
Merged

Fix transitive dependency resolution for --use modules#5
smintz merged 1 commit intomainfrom
fix-transitive-deps

Conversation

@smintz
Copy link
Copy Markdown
Contributor

@smintz smintz commented Mar 7, 2026

Summary

  • When --use MODULE is specified, _smlt_resolve_modules now scans each seed module's .ll file for declare statements and seeds them into the fixpoint symbol set
  • Transitive dependencies of --use modules are now auto-resolved (e.g. --use test where test depends on buf and str will auto-resolve both)
  • Removes dead _smlt_extract_declares call that was immediately overwritten by the correct temp-buffer extraction
  • No behavioral change when seed_count = 0 or --no-auto is used

Test plan

  • smlt run app.ll --use test --auto resolves buf and str as transitive deps of test
  • smlt build app.ll out --use test --no-auto only includes test (no transitive resolution)
  • smlt run app.ll --auto (no --use) still works as before
  • smlt install apps/smlt/smlt.ll self-build succeeds with no regression

🤖 Generated with Claude Code

When --use MODULE is specified, smlt now scans the module's .ll file for
declare statements and seeds them into the fixpoint resolver. This enables
automatic discovery of transitive dependencies (e.g. --use test auto-resolves
buf and str if test declares their symbols).

Also removes a stale _smlt_extract_declares call that was immediately
overwritten by the correct extraction into a temp buffer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@smintz smintz force-pushed the fix-transitive-deps branch from fc022eb to f816da6 Compare March 7, 2026 09:37
@smintz smintz merged commit 4921c04 into main Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant