← スキル一覧に戻る
name: midenc-execution-trace
description: |
Use when working on the Miden compiler (
What

midenc-execution-trace
by greenhat
my ~/.config
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: midenc-execution-trace
description: |
Use when working on the Miden compiler (midenc / cargo miden), debugging failing tests or implementing compiler changes, and you need a Miden VM MASM execution trace to understand the stack state after each instruction. Covers MIDENC_TRACE=executor=trace (typically with cargo make test -- --no-capture ...).
MIDENC Trace (MASM execution trace)
Quick start
- Run a single Rust test with MASM execution tracing enabled:
MIDENC_TRACE=executor=trace cargo make test --no-capture <test_name_or_filter>
- If you only care about traces on failures (and want faster parallel execution), omit
--no-capture:MIDENC_TRACE=executor=trace cargo make test <test_name_or_filter>
- If you want parallel execution but still want output on passing tests, prefer
--success-output:MIDENC_TRACE=executor=trace cargo make test --success-output immediate <test_name_or_filter>
What MIDENC_TRACE=executor=trace gives you
- A step-by-step trace of MASM execution from the VM executor.
- For each executed instruction/op, it prints the current stack state (practically: the quickest way to answer “what was on the stack right after this instruction?”).
Recommended workflow for debugging compiler changes
- Reproduce the issue on the smallest possible test (or add a focused test).
- Run with live output so you can see the trace stream as the test executes:
MIDENC_TRACE=executor=trace cargo make test --no-capture <test_name_or_filter>
- Compare the trace against the expected stack discipline for the procedure(s) you’re debugging:
- When you see a mismatch, jump to the corresponding emitted MASM (pair with the
emitskill if you also needMIDENC_EMIT=masm=...).
- When you see a mismatch, jump to the corresponding emitted MASM (pair with the
Practical tips
- Prefer a single test when tracing:
executor=traceis extremely verbose and slows runs down. - If you’re running via
cargo nextestdirectly, the equivalent “live output” flag is--no-capture:MIDENC_TRACE=executor=trace cargo nextest run --no-capture <filter>
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です