feat(m02-df): 다른 로직 입력 받는 알약 예시값 자리

- CfLogicRef.examples(받는 알약 이름 → 값) · Eval 값 차례 = 이어진 선 > 넘긴 값 > 상자 예시값 > 그 로직 자기 예시값
- CfDesign.example — 변수 = variable.example · 다른 로직 = examples(없으면 null)
- 시험 23개

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VBToTCGk5dqDKeXCEP3vhk
This commit is contained in:
2026-10-01 19:52:55 +09:00
co-authored by Claude Opus 5.5
parent 9848bd01b9
commit dad45e997b
3 changed files with 38 additions and 3 deletions
+2 -1
View File
@@ -347,7 +347,8 @@ function otherLogic(
}
const inner: CfValues = {};
for (const d of designInputs(other)) {
const v = d.port in arrive ? arrive[d.port] : given[d.port];
// 값 차례 = 이어진 선 > 넘긴 값 > 상자에 둔 예시값 > 그 로직 자기 예시값(inner 에 안 넣음)
const v = d.port in arrive ? arrive[d.port] : (given[d.port] ?? ref?.examples?.[d.port]);
if (v !== undefined && v !== null) (inner[d.box] ??= {})[d.port] = v;
}
const ev = evalLogic(other, inner, { logics: opts.logics, depth: (opts.depth ?? 0) + 1 });