@vessel-dsp/compiler 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/README.md +314 -2
  2. package/dist/bake.d.ts +38 -0
  3. package/dist/bake.d.ts.map +1 -0
  4. package/dist/bake.js +101 -0
  5. package/dist/bake.js.map +1 -0
  6. package/dist/bbd-clock.d.ts +171 -0
  7. package/dist/bbd-clock.d.ts.map +1 -0
  8. package/dist/bbd-clock.js +1750 -0
  9. package/dist/bbd-clock.js.map +1 -0
  10. package/dist/block-row.d.ts +51 -0
  11. package/dist/block-row.d.ts.map +1 -0
  12. package/dist/block-row.js +17 -0
  13. package/dist/block-row.js.map +1 -0
  14. package/dist/bypass.d.ts +3 -0
  15. package/dist/bypass.d.ts.map +1 -0
  16. package/dist/bypass.js +228 -0
  17. package/dist/bypass.js.map +1 -0
  18. package/dist/compile.d.ts +24 -0
  19. package/dist/compile.d.ts.map +1 -0
  20. package/dist/compile.js +344 -0
  21. package/dist/compile.js.map +1 -0
  22. package/dist/converter-scale.d.ts +14 -0
  23. package/dist/converter-scale.d.ts.map +1 -0
  24. package/dist/converter-scale.js +133 -0
  25. package/dist/converter-scale.js.map +1 -0
  26. package/dist/couple.d.ts +28 -0
  27. package/dist/couple.d.ts.map +1 -0
  28. package/dist/couple.js +567 -0
  29. package/dist/couple.js.map +1 -0
  30. package/dist/dangling-active-terminal.d.ts +47 -0
  31. package/dist/dangling-active-terminal.d.ts.map +1 -0
  32. package/dist/dangling-active-terminal.js +542 -0
  33. package/dist/dangling-active-terminal.js.map +1 -0
  34. package/dist/declared-program.d.ts +23 -0
  35. package/dist/declared-program.d.ts.map +1 -0
  36. package/dist/declared-program.js +387 -0
  37. package/dist/declared-program.js.map +1 -0
  38. package/dist/denomination.d.ts +48 -0
  39. package/dist/denomination.d.ts.map +1 -0
  40. package/dist/denomination.js +27 -0
  41. package/dist/denomination.js.map +1 -0
  42. package/dist/device-laws.d.ts +237 -0
  43. package/dist/device-laws.d.ts.map +1 -0
  44. package/dist/device-laws.js +3497 -0
  45. package/dist/device-laws.js.map +1 -0
  46. package/dist/diagnostics.d.ts +13 -0
  47. package/dist/diagnostics.d.ts.map +1 -0
  48. package/dist/diagnostics.js +19 -0
  49. package/dist/diagnostics.js.map +1 -0
  50. package/dist/emit.d.ts +8 -0
  51. package/dist/emit.d.ts.map +1 -0
  52. package/dist/emit.js +43 -0
  53. package/dist/emit.js.map +1 -0
  54. package/dist/errors.d.ts +22 -0
  55. package/dist/errors.d.ts.map +1 -0
  56. package/dist/errors.js +39 -0
  57. package/dist/errors.js.map +1 -0
  58. package/dist/firmware-class.d.ts +69 -0
  59. package/dist/firmware-class.d.ts.map +1 -0
  60. package/dist/firmware-class.js +20 -0
  61. package/dist/firmware-class.js.map +1 -0
  62. package/dist/fixtures/circuits.d.ts +1721 -0
  63. package/dist/fixtures/circuits.d.ts.map +1 -0
  64. package/dist/fixtures/circuits.js +13404 -0
  65. package/dist/fixtures/circuits.js.map +1 -0
  66. package/dist/fixtures/expected.d.ts +257 -0
  67. package/dist/fixtures/expected.d.ts.map +1 -0
  68. package/dist/fixtures/expected.js +311 -0
  69. package/dist/fixtures/expected.js.map +1 -0
  70. package/dist/fixtures/index.d.ts +4 -0
  71. package/dist/fixtures/index.d.ts.map +1 -0
  72. package/dist/fixtures/index.js +8 -0
  73. package/dist/fixtures/index.js.map +1 -0
  74. package/dist/fixtures/registry.d.ts +52 -0
  75. package/dist/fixtures/registry.d.ts.map +1 -0
  76. package/dist/fixtures/registry.js +341 -0
  77. package/dist/fixtures/registry.js.map +1 -0
  78. package/dist/generic-tube-fit.d.ts +12 -0
  79. package/dist/generic-tube-fit.d.ts.map +1 -0
  80. package/dist/generic-tube-fit.js +45 -0
  81. package/dist/generic-tube-fit.js.map +1 -0
  82. package/dist/grounded-clock-supply.d.ts +13 -0
  83. package/dist/grounded-clock-supply.d.ts.map +1 -0
  84. package/dist/grounded-clock-supply.js +45 -0
  85. package/dist/grounded-clock-supply.js.map +1 -0
  86. package/dist/identify.d.ts +50 -0
  87. package/dist/identify.d.ts.map +1 -0
  88. package/dist/identify.js +319 -0
  89. package/dist/identify.js.map +1 -0
  90. package/dist/index.d.ts +10 -0
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +19 -0
  93. package/dist/index.js.map +1 -0
  94. package/dist/inert-controls.d.ts +15 -0
  95. package/dist/inert-controls.d.ts.map +1 -0
  96. package/dist/inert-controls.js +266 -0
  97. package/dist/inert-controls.js.map +1 -0
  98. package/dist/latch-seed.d.ts +53 -0
  99. package/dist/latch-seed.d.ts.map +1 -0
  100. package/dist/latch-seed.js +257 -0
  101. package/dist/latch-seed.js.map +1 -0
  102. package/dist/link.d.ts +7 -0
  103. package/dist/link.d.ts.map +1 -0
  104. package/dist/link.js +270 -0
  105. package/dist/link.js.map +1 -0
  106. package/dist/lower.d.ts +79 -0
  107. package/dist/lower.d.ts.map +1 -0
  108. package/dist/lower.js +1855 -0
  109. package/dist/lower.js.map +1 -0
  110. package/dist/netlist.d.ts +79 -0
  111. package/dist/netlist.d.ts.map +1 -0
  112. package/dist/netlist.js +4746 -0
  113. package/dist/netlist.js.map +1 -0
  114. package/dist/non-executable-clock-drivers.d.ts +8 -0
  115. package/dist/non-executable-clock-drivers.d.ts.map +1 -0
  116. package/dist/non-executable-clock-drivers.js +33 -0
  117. package/dist/non-executable-clock-drivers.js.map +1 -0
  118. package/dist/open-category.d.ts +98 -0
  119. package/dist/open-category.d.ts.map +1 -0
  120. package/dist/open-category.js +111 -0
  121. package/dist/open-category.js.map +1 -0
  122. package/dist/over-driven-node.d.ts +33 -0
  123. package/dist/over-driven-node.d.ts.map +1 -0
  124. package/dist/over-driven-node.js +188 -0
  125. package/dist/over-driven-node.js.map +1 -0
  126. package/dist/part-catalog.d.ts +7 -0
  127. package/dist/part-catalog.d.ts.map +1 -0
  128. package/dist/part-catalog.js +6639 -0
  129. package/dist/part-catalog.js.map +1 -0
  130. package/dist/part-number.d.ts +32 -0
  131. package/dist/part-number.d.ts.map +1 -0
  132. package/dist/part-number.js +80 -0
  133. package/dist/part-number.js.map +1 -0
  134. package/dist/partition.d.ts +7 -0
  135. package/dist/partition.d.ts.map +1 -0
  136. package/dist/partition.js +242 -0
  137. package/dist/partition.js.map +1 -0
  138. package/dist/port-full-scale.d.ts +70 -0
  139. package/dist/port-full-scale.d.ts.map +1 -0
  140. package/dist/port-full-scale.js +235 -0
  141. package/dist/port-full-scale.js.map +1 -0
  142. package/dist/pot-orientation.d.ts +114 -0
  143. package/dist/pot-orientation.d.ts.map +1 -0
  144. package/dist/pot-orientation.js +551 -0
  145. package/dist/pot-orientation.js.map +1 -0
  146. package/dist/power-domain-control.d.ts +40 -0
  147. package/dist/power-domain-control.d.ts.map +1 -0
  148. package/dist/power-domain-control.js +142 -0
  149. package/dist/power-domain-control.js.map +1 -0
  150. package/dist/proxy-declaration.d.ts +121 -0
  151. package/dist/proxy-declaration.d.ts.map +1 -0
  152. package/dist/proxy-declaration.js +50 -0
  153. package/dist/proxy-declaration.js.map +1 -0
  154. package/dist/registry.d.ts +323 -0
  155. package/dist/registry.d.ts.map +1 -0
  156. package/dist/registry.js +192 -0
  157. package/dist/registry.js.map +1 -0
  158. package/dist/sparse-schedule.d.ts +65 -0
  159. package/dist/sparse-schedule.d.ts.map +1 -0
  160. package/dist/sparse-schedule.js +421 -0
  161. package/dist/sparse-schedule.js.map +1 -0
  162. package/dist/speaker-load.d.ts +38 -0
  163. package/dist/speaker-load.d.ts.map +1 -0
  164. package/dist/speaker-load.js +97 -0
  165. package/dist/speaker-load.js.map +1 -0
  166. package/dist/stage-coverage.d.ts +21 -0
  167. package/dist/stage-coverage.d.ts.map +1 -0
  168. package/dist/stage-coverage.js +124 -0
  169. package/dist/stage-coverage.js.map +1 -0
  170. package/dist/stamp-partition.d.ts +314 -0
  171. package/dist/stamp-partition.d.ts.map +1 -0
  172. package/dist/stamp-partition.js +472 -0
  173. package/dist/stamp-partition.js.map +1 -0
  174. package/dist/supply-reference.d.ts +19 -0
  175. package/dist/supply-reference.d.ts.map +1 -0
  176. package/dist/supply-reference.js +66 -0
  177. package/dist/supply-reference.js.map +1 -0
  178. package/dist/supply-short.d.ts +32 -0
  179. package/dist/supply-short.d.ts.map +1 -0
  180. package/dist/supply-short.js +118 -0
  181. package/dist/supply-short.js.map +1 -0
  182. package/dist/supply-stamps.d.ts +51 -0
  183. package/dist/supply-stamps.d.ts.map +1 -0
  184. package/dist/supply-stamps.js +363 -0
  185. package/dist/supply-stamps.js.map +1 -0
  186. package/dist/terminal-role.d.ts +109 -0
  187. package/dist/terminal-role.d.ts.map +1 -0
  188. package/dist/terminal-role.js +46 -0
  189. package/dist/terminal-role.js.map +1 -0
  190. package/dist/terminal-roles.d.ts +59 -0
  191. package/dist/terminal-roles.d.ts.map +1 -0
  192. package/dist/terminal-roles.js +92 -0
  193. package/dist/terminal-roles.js.map +1 -0
  194. package/dist/transformer.d.ts +181 -0
  195. package/dist/transformer.d.ts.map +1 -0
  196. package/dist/transformer.js +476 -0
  197. package/dist/transformer.js.map +1 -0
  198. package/dist/types.d.ts +3157 -0
  199. package/dist/types.d.ts.map +1 -0
  200. package/dist/types.js +11 -0
  201. package/dist/types.js.map +1 -0
  202. package/dist/unbounded-operating-point.d.ts +35 -0
  203. package/dist/unbounded-operating-point.d.ts.map +1 -0
  204. package/dist/unbounded-operating-point.js +181 -0
  205. package/dist/unbounded-operating-point.js.map +1 -0
  206. package/dist/unexecuted-region.d.ts +3 -0
  207. package/dist/unexecuted-region.d.ts.map +1 -0
  208. package/dist/unexecuted-region.js +122 -0
  209. package/dist/unexecuted-region.js.map +1 -0
  210. package/dist/unimplemented-control-role.d.ts +3 -0
  211. package/dist/unimplemented-control-role.d.ts.map +1 -0
  212. package/dist/unimplemented-control-role.js +61 -0
  213. package/dist/unimplemented-control-role.js.map +1 -0
  214. package/dist/unreachable-output.d.ts +3 -0
  215. package/dist/unreachable-output.d.ts.map +1 -0
  216. package/dist/unreachable-output.js +97 -0
  217. package/dist/unreachable-output.js.map +1 -0
  218. package/dist/unreadable-terminal-role.d.ts +67 -0
  219. package/dist/unreadable-terminal-role.d.ts.map +1 -0
  220. package/dist/unreadable-terminal-role.js +409 -0
  221. package/dist/unreadable-terminal-role.js.map +1 -0
  222. package/dist/unverified-pinout.d.ts +27 -0
  223. package/dist/unverified-pinout.d.ts.map +1 -0
  224. package/dist/unverified-pinout.js +121 -0
  225. package/dist/unverified-pinout.js.map +1 -0
  226. package/package.json +75 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAEF;;;;;;;GAOG;AACH;;;;GAIG;AACH,MAAM,MAA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GAAG,IAAI,GAAG,MAAM,CAEnE;AAED,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAKlE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC7B,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,GACxB,SAAS,GAAG,IAAI,CAclB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,MAAM,GAAG,IAAI,GACvB,MAAM,GAAG,IAAI,CAoBf"}
@@ -0,0 +1,192 @@
1
+ // The part registry is an injected parameter, never an import.
2
+ //
3
+ // This file defines the *shape* of a registry and contains no parts. The compiler
4
+ // therefore has no knowledge of any specific chip, which buys three things:
5
+ //
6
+ // - tests run against a fake registry: no corpus, no real parts, fast;
7
+ // - compiling with an EMPTY registry shows exactly what works with no part
8
+ // knowledge at all, which is the arbitrary-schematic measurement as a compiler
9
+ // input rather than a separate harness;
10
+ // - the catalog can be artifact-owned data, matching the ownership boundary --
11
+ // this repo owns the compiler, vessel-dsp/artifacts owns what an MN3007 is.
12
+ /**
13
+ * The index of the one terminal whose role matches any of `aliases`, or `null`.
14
+ *
15
+ * `null` for no match and for an ambiguous one. Two terminals answering to the same port role is a
16
+ * declaration this entry cannot address — a `SAD1024`'s two cascaded sections both carry an
17
+ * `input` if a document names them that way — and picking the first would be a guess about which
18
+ * half the audio enters.
19
+ */
20
+ export function terminalWithRole(terminalRoles, aliases) {
21
+ const folded = new Set(aliases.map(foldToken));
22
+ const matches = terminalRoles.flatMap((role, index) => role !== null && folded.has(role) ? [index] : []);
23
+ return matches.length === 1 ? matches[0] : null;
24
+ }
25
+ /**
26
+ * Does this device declare the terminal order a `sections` entry's indices were written against?
27
+ *
28
+ * Length must match, and every position the entry names must carry that role token. A position the
29
+ * entry leaves `null` is unchecked, which is what lets a part whose document numbers its pins
30
+ * (`pin1`, `pin2`, ... -- `terminalRoleToken` returns null for those) still be expanded.
31
+ */
32
+ export function pinoutMatches(pinout, terminalRoles) {
33
+ if (pinout.length !== terminalRoles.length) {
34
+ return false;
35
+ }
36
+ return pinout.every((role, index) => role === null || foldToken(role) === terminalRoles[index]);
37
+ }
38
+ export const emptyRegistry = { entries: [] };
39
+ /**
40
+ * **A RECORDED READ SET: which part entries a macro's parameter computation actually consulted.**
41
+ *
42
+ * `subsumes` claims that a macro accounts for another device. The mutant tests that claim by
43
+ * changing the device and watching the parameters move — which can fail vacuously if the mutation
44
+ * breaks the packet, as it did on its first run. **This is the cheaper primary check and it cannot
45
+ * fail that way**: if the packet does not compile there is no read set at all, so the verdict is
46
+ * INVALID rather than HOLD.
47
+ *
48
+ * **It is a recorded read, not source analysis.** Parsing our own code to decide what it consults
49
+ * is brittle and rots; wrapping the accessor is exact. And the read set is reusable — it answers
50
+ * *"what does this macro's behaviour actually depend on"* for every macro, not only those carrying
51
+ * a claim.
52
+ */
53
+ let activeReadSet = null;
54
+ const recordedReadSets = new Map();
55
+ /** Run `fn` with registry reads recorded against `owner`. Nesting is honoured; the outer set wins. */
56
+ export function withRecordedReads(owner, fn) {
57
+ const previous = activeReadSet;
58
+ const mine = recordedReadSets.get(owner) ?? new Set();
59
+ recordedReadSets.set(owner, mine);
60
+ activeReadSet = mine;
61
+ try {
62
+ return fn();
63
+ }
64
+ finally {
65
+ activeReadSet = previous;
66
+ }
67
+ }
68
+ /** What each owner consulted. Keyed by the owner string passed to `withRecordedReads`. */
69
+ export function recordedReads() {
70
+ return recordedReadSets;
71
+ }
72
+ /** Forget everything recorded so far. Callers that measure one packet at a time need this. */
73
+ export function clearRecordedReads() {
74
+ recordedReadSets.clear();
75
+ }
76
+ export function registryEntryFor(registry, identity, terminalCount) {
77
+ if (!identity?.partId) {
78
+ return null;
79
+ }
80
+ // Instrumentation only -- no behaviour change. The returned entry is recorded against
81
+ // whichever owner is currently bracketing this call.
82
+ activeReadSet?.add(foldPartId(identity.partId));
83
+ const entries = registry?.entries ?? [];
84
+ if (terminalCount !== undefined) {
85
+ for (const entry of entries) {
86
+ if ((entry.partIds ?? []).some((id) => foldPartId(id) === foldPartId(identity.partId)) &&
87
+ (entry.model.kind !== "sections" &&
88
+ entry.model.kind !== "sections-core" ||
89
+ entry.model.pinout.length === terminalCount ||
90
+ (entry.terminalRoleGroups?.length > 0 &&
91
+ entry.terminalRoleGroups.length === terminalCount))) {
92
+ return entry;
93
+ }
94
+ if ((entry.declaredTypes ?? []).some((type) => foldToken(type) === foldToken(identity.partId)) &&
95
+ (entry.model.kind !== "sections" &&
96
+ entry.model.kind !== "sections-core" ||
97
+ entry.model.pinout.length === terminalCount ||
98
+ (entry.terminalRoleGroups?.length > 0 &&
99
+ entry.terminalRoleGroups.length === terminalCount))) {
100
+ return entry;
101
+ }
102
+ }
103
+ }
104
+ for (const entry of entries) {
105
+ if ((entry.partIds ?? []).some((id) => foldPartId(id) === foldPartId(identity.partId))) {
106
+ return entry;
107
+ }
108
+ if ((entry.declaredTypes ?? []).some((type) => foldToken(type) === foldToken(identity.partId))) {
109
+ return entry;
110
+ }
111
+ }
112
+ return null;
113
+ }
114
+ export function registryModelFor(registry, identity, terminalCount) {
115
+ const entry = registryEntryFor(registry, identity, terminalCount);
116
+ return entry === null ? null : entry.model;
117
+ }
118
+ /** Part numbers compare ignoring case and separators: `MN-3007` is `mn3007`. */
119
+ export function foldPartId(value) {
120
+ return (value ?? "").toLowerCase().replace(/[^a-z0-9]/gu, "");
121
+ }
122
+ /** Typed vocabulary values compare ignoring case and whitespace, keeping structure. */
123
+ export function foldToken(value) {
124
+ return (value ?? "")
125
+ .trim()
126
+ .toLowerCase()
127
+ .replace(/[\s_-]+/gu, "");
128
+ }
129
+ /**
130
+ * The law a registered part supplies for a device whose class already names its law kind.
131
+ *
132
+ * This is rung 1 of `identify.ts`'s evidence ladder and **only** rung 1: an exact manufacturer
133
+ * part number, compared whole and case-folded. The other two rungs are deliberately unreachable
134
+ * here.
135
+ *
136
+ * - **Declared type is not consulted.** `Circuit.Pentode` is a *class*, and resolving a class to
137
+ * one part's model would claim every pentode in the corpus is an EL84 — the same reason
138
+ * `part-catalog.ts` leaves `declaredTypes` empty for op-amps.
139
+ * - **Pinout signature is not consulted.** Every pentode has the same electrodes, so a pinout
140
+ * match cannot tell an EL84 from a KT66. That is exactly the case where a wrong identity is
141
+ * worse than none.
142
+ *
143
+ * `lawKind` must match the law the device's class already implies, so an entry can only refine
144
+ * the law that class was going to get. A triode cannot be handed a pentode's fit by a catalog
145
+ * typo; it falls back instead.
146
+ *
147
+ * Returns `null` when nothing matches, which is a correct and expected answer — the caller keeps
148
+ * its device-class default. See `findGenericTubeFits`, which reports every such fallback, because
149
+ * a silent one is what let every amp in the corpus run a 6V6 fit.
150
+ */
151
+ export function registryLawFor(registry, partNumber, lawKind) {
152
+ if (partNumber === null) {
153
+ return null;
154
+ }
155
+ const folded = foldPartId(partNumber);
156
+ for (const entry of registry.entries) {
157
+ if (!entry.partIds.some((id) => foldPartId(id) === folded)) {
158
+ continue;
159
+ }
160
+ if (entry.model.kind === "law" && entry.model.law.kind === lawKind) {
161
+ return entry.model.law;
162
+ }
163
+ }
164
+ return null;
165
+ }
166
+ /**
167
+ * How far a part's output stops short of each supply rail, from the registry entry that names
168
+ * it, or `null` when the part is not in the registry or states none (the rails are then used as
169
+ * they are). Read from either an `ideal-opamp` law entry or the first section of a `sections`
170
+ * entry, because a declared `opamp` device never reaches the section lowering.
171
+ */
172
+ export function registryOpampSwingDrop(registry, partNumber) {
173
+ if (partNumber === null) {
174
+ return null;
175
+ }
176
+ const folded = foldPartId(partNumber);
177
+ for (const entry of registry.entries) {
178
+ if (!entry.partIds.some((id) => foldPartId(id) === folded)) {
179
+ continue;
180
+ }
181
+ const law = entry.model.kind === "law"
182
+ ? entry.model.law
183
+ : entry.model.kind === "sections"
184
+ ? entry.model.sections[0]?.law
185
+ : undefined;
186
+ if (law !== undefined && law.kind === "ideal-opamp") {
187
+ return law.outputSwingDropVolts ?? null;
188
+ }
189
+ }
190
+ return null;
191
+ }
192
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,EAAE;AACF,kFAAkF;AAClF,4EAA4E;AAC5E,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,mFAAmF;AACnF,4CAA4C;AAC5C,iFAAiF;AACjF,gFAAgF;AA6JhF;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAC/B,aAAyC,EACzC,OAA0B;IAE1B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACrD,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAChD,CAAC;IACF,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAE,OAAO,CAAC,CAAC,CAAY,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAC5B,MAAkB,EAClB,aAAyC;IAEzC,IAAI,MAAM,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAClB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,aAAa,CAAC,KAAK,CAAC,CAC1E,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AC;IACF,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
@@ -0,0 +1,65 @@
1
+ import type { SparseSchedule, Stamp } from "./types.js";
2
+ /**
3
+ * Every matrix entry a stamp can write, over-approximated as the full square over the stamp's
4
+ * own terminals.
5
+ *
6
+ * Read off the shape table in `stamp-partition.ts` rather than restated here. `terminalNodes`
7
+ * lets a kind narrow the set -- only `vccs` does, to its output pair -- and `terminalsDropGround`
8
+ * lets it drop ground, which `vccs` also does and nothing else may, because `schedulePattern`
9
+ * removes row 0 globally but keeps column 0.
10
+ *
11
+ * Order is not significant: the caller expands these into every (row, column) pair and collects
12
+ * them in a `Set`.
13
+ */
14
+ export declare function stampTerminals(stamp: Stamp, nodeCount: number): readonly number[];
15
+ /**
16
+ * Entries that are provably nonzero at every control position and every Newton iterate,
17
+ * and are therefore the only ones allowed to be pivots.
18
+ *
19
+ * **Two conditions, and both are load-bearing. An entry belongs here only when the stamp
20
+ * writes it (a) in the direction being claimed and (b) on every iterate.** Marking an entry
21
+ * the stamp leaves zero does not produce a wrong answer -- the runtime's pivot guard catches
22
+ * the collapse and re-solves densely -- but it produces a *silently dense* block, which is
23
+ * worse than a slow one because nothing reports it. Measured 2026-09-18 on the shipping
24
+ * console: `boss-ch-1` gave its schedule up inside `prepare()` and ran 100x100 dense for the
25
+ * whole session (12.8x real time), `boss-ce-5` tripped the guard on half its iterations and
26
+ * paid for the schedule *and* the dense solve (6.6x), and `boss-ce-2`, `boss-ce-2b`,
27
+ * `boss-dm-2` and `boss-dd-3b` abandoned within their first 64 audio iterations. Every one of
28
+ * those traced back to an entry marked here that the owning stamp cannot guarantee. See
29
+ * `thoughts/shared/2026-09-18-sparse-schedule-runtime-audit.md`.
30
+ *
31
+ * So `pair()` is for symmetric writes only. A stamp that writes `matrix[row][column]` and not
32
+ * its transpose -- every controlled-source coupling in this file's device set does exactly
33
+ * that -- marks the one entry with `eligible.add`, or marks nothing when the value can vanish.
34
+ *
35
+ * **What this does NOT establish is that an eligible pivot is numerically usable.** Every node
36
+ * diagonal is listed below because the runtime adds `gmin` to it, which is true and nearly
37
+ * useless: a pivot of 1e-12 against entries of order 1e2 is a growth factor of 1e14, and dense
38
+ * partial pivoting would never choose it. That is a separate, open defect (`boss-aw-2` fails to
39
+ * converge on the sparse path and converges in four iterations densely), and it cannot be fixed
40
+ * from the pattern alone -- it needs the pivot search to see magnitudes. Recorded in §6 of the
41
+ * audit above.
42
+ */
43
+ export declare function provablyNonzeroEntries(block: {
44
+ nodeCount: number;
45
+ stamps: readonly Stamp[];
46
+ }, size: number): Set<number>;
47
+ /**
48
+ * The block's structural pattern: every entry any stamp can write, plus the gmin diagonals,
49
+ * with ground-pin overwrite applied.
50
+ */
51
+ export declare function schedulePattern(block: {
52
+ nodeCount: number;
53
+ stamps: readonly Stamp[];
54
+ }, size: number): Set<number>;
55
+ /**
56
+ * Work out the elimination order and emit its opcode stream.
57
+ *
58
+ * Returns null when the pattern cannot be eliminated at all (a structurally singular block).
59
+ */
60
+ export declare function computeSparseSchedule(block: {
61
+ nodeCount: number;
62
+ auxCount: number;
63
+ stamps: readonly Stamp[];
64
+ }): SparseSchedule | null;
65
+ //# sourceMappingURL=sparse-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sparse-schedule.d.ts","sourceRoot":"","sources":["../src/sparse-schedule.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,MAAM,GACf,SAAS,MAAM,EAAE,CAQnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,sBAAsB,CACrC,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAA;CAAE,EACtD,IAAI,EAAE,MAAM,GACV,GAAG,CAAC,MAAM,CAAC,CAiLb;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAA;CAAE,EACtD,IAAI,EAAE,MAAM,GACV,GAAG,CAAC,MAAM,CAAC,CAkBb;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAA;CAAE,GACtE,cAAc,GAAG,IAAI,CAmMvB"}