nmarshall commited on
Commit
26e2130
·
1 Parent(s): eb82d5d

qvm: recover decimal formatter edge cases

Browse files
docs/FINDINGS.md CHANGED
@@ -1439,3 +1439,6 @@ RE-802–811 adds opt-in coherent memory, original string/scoreboard control flo
1439
 
1440
 
1441
  **RE-813:** 37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. [Evidence](research/QVM_FORMAT_STRING.md).
 
 
 
 
1439
 
1440
 
1441
  **RE-813:** 37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. [Evidence](research/QVM_FORMAT_STRING.md).
1442
+
1443
+
1444
+ **RE-814:** 37279 pads zeroes before a negative sign and renders wrapping INT_MIN remainder bytes noncanonically; narrow left-padding domains fail bounded execution. [Evidence](research/QVM_FORMAT_INTEGER.md).
docs/PROVISIONAL_TODO.md CHANGED
@@ -1449,3 +1449,6 @@ RE-802–811 validation: 1,587 Python and109 Rust tests pass;320 affected produc
1449
 
1450
 
1451
  RE-813: 37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. Full runtime completion remains open. [Evidence](research/QVM_FORMAT_STRING.md).
 
 
 
 
1449
 
1450
 
1451
  RE-813: 37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. Full runtime completion remains open. [Evidence](research/QVM_FORMAT_STRING.md).
1452
+
1453
+
1454
+ RE-814: 37279 pads zeroes before a negative sign and renders wrapping INT_MIN remainder bytes noncanonically; narrow left-padding domains fail bounded execution. Full runtime completion remains open. [Evidence](research/QVM_FORMAT_INTEGER.md).
docs/RESEARCH_LEDGER.md CHANGED
@@ -1733,3 +1733,8 @@ After exactly ten task commits from `744c236f`, the single `cargo xtask test-ful
1733
  ## 2026-10-27 — RE-813 Actual string formatter precision padding and null-pointer policy
1734
 
1735
  37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. Focused `cargo xtask test-group format-string` passes (5 Python tests); selected reports regenerate twice deterministically, with storage, documentation links and whitespace guards. Full suite deferred to task ten. Original assets unchanged; source fixtures do not establish complete native/runtime parity.
 
 
 
 
 
 
1733
  ## 2026-10-27 — RE-813 Actual string formatter precision padding and null-pointer policy
1734
 
1735
  37768 truncates non-null strings by precision, always pads on the right, and ignores supplied precision for null strings by using its source fallback literal. Focused `cargo xtask test-group format-string` passes (5 Python tests); selected reports regenerate twice deterministically, with storage, documentation links and whitespace guards. Full suite deferred to task ten. Original assets unchanged; source fixtures do not establish complete native/runtime parity.
1736
+
1737
+
1738
+ ## 2026-10-27 — RE-814 Actual decimal formatter padding and signed-minimum quirks
1739
+
1740
+ 37279 pads zeroes before a negative sign and renders wrapping INT_MIN remainder bytes noncanonically; narrow left-padding domains fail bounded execution. Focused `cargo xtask test-group format-integer` passes (6 Python tests); selected reports regenerate twice deterministically, with storage, documentation links and whitespace guards. Full suite deferred to task ten. Original assets unchanged; source fixtures do not establish complete native/runtime parity.
docs/REVERSE_ENGINEERING_TODO.md CHANGED
@@ -1489,3 +1489,6 @@ Purpose: turn the supplied installation into an evidence-backed specification of
1489
 
1490
 
1491
  - [x] RE-813 Actual string formatter precision padding and null-pointer policy ([evidence](research/QVM_FORMAT_STRING.md)).
 
 
 
 
1489
 
1490
 
1491
  - [x] RE-813 Actual string formatter precision padding and null-pointer policy ([evidence](research/QVM_FORMAT_STRING.md)).
1492
+
1493
+
1494
+ - [x] RE-814 Actual decimal formatter padding and signed-minimum quirks ([evidence](research/QVM_FORMAT_INTEGER.md)).
docs/research/QVM_FORMAT_INTEGER.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Actual decimal formatter padding and signed-minimum quirks
2
+
3
+ RE-814. Reproduce with `python3 scripts/analyze_qvm_format_integer.py`; focused validation: `cargo xtask test-group format-integer`. [Machine report](qvm-format-integer.json).
4
+
5
+ Original-instruction fixtures cover signed limits, decimal lengths, both padding flags and sufficient-width left justification. Independent signed-remainder arithmetic verifies exact bytes rather than assuming host decimal formatting. A bounded failure witness records too-narrow left justification. These findings constrain replacement of the earlier standard-decimal scoreboard model.
6
+
7
+ Original executable/native runtime and complete Linux/macOS Rust/Bevy/Solari acceptance remain unverified.
docs/research/README.md CHANGED
@@ -1029,3 +1029,6 @@ The extension collector adds five focused tests for native tail calls, command-r
1029
 
1030
 
1031
  [RE-813: Actual string formatter precision padding and null-pointer policy](QVM_FORMAT_STRING.md).
 
 
 
 
1029
 
1030
 
1031
  [RE-813: Actual string formatter precision padding and null-pointer policy](QVM_FORMAT_STRING.md).
1032
+
1033
+
1034
+ [RE-814: Actual decimal formatter padding and signed-minimum quirks](QVM_FORMAT_INTEGER.md).
docs/research/qvm-format-integer.json ADDED
@@ -0,0 +1,1499 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "limits": "Actual37279 decimal emitter. Source zero padding precedes a negative sign; wrapping negation of INT_MIN leaves negative remainder digits, producing punctuation rather than ordinary decimal. Left justification narrower than digits fails bounded execution; no unbounded/native undefined-behavior claim.",
3
+ "probes": [
4
+ {
5
+ "child_memory_bytes": {
6
+ "2072846336": 45,
7
+ "2072846337": 46,
8
+ "2072846338": 47,
9
+ "2072846339": 44,
10
+ "2072846340": 41,
11
+ "2072846341": 44,
12
+ "2072846342": 40,
13
+ "2072846343": 45,
14
+ "2072846344": 42,
15
+ "2072846345": 44,
16
+ "2072846346": 40
17
+ },
18
+ "cursor": 2072846347,
19
+ "flags": 0,
20
+ "output_hex": "2d2e2f2c292c282d2a2c28",
21
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
22
+ "value": -2147483648,
23
+ "width": 0
24
+ },
25
+ {
26
+ "child_memory_bytes": {
27
+ "2072846336": 45,
28
+ "2072846337": 46,
29
+ "2072846338": 47,
30
+ "2072846339": 44,
31
+ "2072846340": 41,
32
+ "2072846341": 44,
33
+ "2072846342": 40,
34
+ "2072846343": 45,
35
+ "2072846344": 42,
36
+ "2072846345": 44,
37
+ "2072846346": 40
38
+ },
39
+ "cursor": 2072846347,
40
+ "flags": 128,
41
+ "output_hex": "2d2e2f2c292c282d2a2c28",
42
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
43
+ "value": -2147483648,
44
+ "width": 0
45
+ },
46
+ {
47
+ "child_memory_bytes": {
48
+ "2072846336": 45,
49
+ "2072846337": 46,
50
+ "2072846338": 47,
51
+ "2072846339": 44,
52
+ "2072846340": 41,
53
+ "2072846341": 44,
54
+ "2072846342": 40,
55
+ "2072846343": 45,
56
+ "2072846344": 42,
57
+ "2072846345": 44,
58
+ "2072846346": 40
59
+ },
60
+ "cursor": 2072846347,
61
+ "flags": 0,
62
+ "output_hex": "2d2e2f2c292c282d2a2c28",
63
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
64
+ "value": -2147483648,
65
+ "width": 1
66
+ },
67
+ {
68
+ "child_memory_bytes": {
69
+ "2072846336": 45,
70
+ "2072846337": 46,
71
+ "2072846338": 47,
72
+ "2072846339": 44,
73
+ "2072846340": 41,
74
+ "2072846341": 44,
75
+ "2072846342": 40,
76
+ "2072846343": 45,
77
+ "2072846344": 42,
78
+ "2072846345": 44,
79
+ "2072846346": 40
80
+ },
81
+ "cursor": 2072846347,
82
+ "flags": 128,
83
+ "output_hex": "2d2e2f2c292c282d2a2c28",
84
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
85
+ "value": -2147483648,
86
+ "width": 1
87
+ },
88
+ {
89
+ "child_memory_bytes": {
90
+ "2072846336": 45,
91
+ "2072846337": 46,
92
+ "2072846338": 47,
93
+ "2072846339": 44,
94
+ "2072846340": 41,
95
+ "2072846341": 44,
96
+ "2072846342": 40,
97
+ "2072846343": 45,
98
+ "2072846344": 42,
99
+ "2072846345": 44,
100
+ "2072846346": 40
101
+ },
102
+ "cursor": 2072846347,
103
+ "flags": 0,
104
+ "output_hex": "2d2e2f2c292c282d2a2c28",
105
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
106
+ "value": -2147483648,
107
+ "width": 5
108
+ },
109
+ {
110
+ "child_memory_bytes": {
111
+ "2072846336": 45,
112
+ "2072846337": 46,
113
+ "2072846338": 47,
114
+ "2072846339": 44,
115
+ "2072846340": 41,
116
+ "2072846341": 44,
117
+ "2072846342": 40,
118
+ "2072846343": 45,
119
+ "2072846344": 42,
120
+ "2072846345": 44,
121
+ "2072846346": 40
122
+ },
123
+ "cursor": 2072846347,
124
+ "flags": 128,
125
+ "output_hex": "2d2e2f2c292c282d2a2c28",
126
+ "trace_sha256": "675b4813bbac4993396fd2b44594a2d2d13e561ef155cca8820471d988707e4a",
127
+ "value": -2147483648,
128
+ "width": 5
129
+ },
130
+ {
131
+ "child_memory_bytes": {
132
+ "2072846336": 32,
133
+ "2072846337": 45,
134
+ "2072846338": 46,
135
+ "2072846339": 47,
136
+ "2072846340": 44,
137
+ "2072846341": 41,
138
+ "2072846342": 44,
139
+ "2072846343": 40,
140
+ "2072846344": 45,
141
+ "2072846345": 42,
142
+ "2072846346": 44,
143
+ "2072846347": 40
144
+ },
145
+ "cursor": 2072846348,
146
+ "flags": 0,
147
+ "output_hex": "202d2e2f2c292c282d2a2c28",
148
+ "trace_sha256": "e296ac21eaef8a9bd42750a8d8ab399cb6c1746616a03be3ea4b5b5121e62821",
149
+ "value": -2147483648,
150
+ "width": 12
151
+ },
152
+ {
153
+ "child_memory_bytes": {
154
+ "2072846336": 48,
155
+ "2072846337": 45,
156
+ "2072846338": 46,
157
+ "2072846339": 47,
158
+ "2072846340": 44,
159
+ "2072846341": 41,
160
+ "2072846342": 44,
161
+ "2072846343": 40,
162
+ "2072846344": 45,
163
+ "2072846345": 42,
164
+ "2072846346": 44,
165
+ "2072846347": 40
166
+ },
167
+ "cursor": 2072846348,
168
+ "flags": 128,
169
+ "output_hex": "302d2e2f2c292c282d2a2c28",
170
+ "trace_sha256": "b97d4d5c762071de53e4d48c6bedc2bddba18821b7114df184c2ff1dd298f51f",
171
+ "value": -2147483648,
172
+ "width": 12
173
+ },
174
+ {
175
+ "child_memory_bytes": {
176
+ "2072846336": 45,
177
+ "2072846337": 46,
178
+ "2072846338": 47,
179
+ "2072846339": 44,
180
+ "2072846340": 41,
181
+ "2072846341": 44,
182
+ "2072846342": 40,
183
+ "2072846343": 45,
184
+ "2072846344": 42,
185
+ "2072846345": 44,
186
+ "2072846346": 40,
187
+ "2072846347": 32
188
+ },
189
+ "cursor": 2072846348,
190
+ "flags": 4,
191
+ "output_hex": "2d2e2f2c292c282d2a2c2820",
192
+ "trace_sha256": "210ea73b7023184482c19f808f441273687b1e87edf15ca544b0fb1aeaa6fead",
193
+ "value": -2147483648,
194
+ "width": 12
195
+ },
196
+ {
197
+ "child_memory_bytes": {
198
+ "2072846336": 45,
199
+ "2072846337": 46,
200
+ "2072846338": 47,
201
+ "2072846339": 44,
202
+ "2072846340": 41,
203
+ "2072846341": 44,
204
+ "2072846342": 40,
205
+ "2072846343": 45,
206
+ "2072846344": 42,
207
+ "2072846345": 44,
208
+ "2072846346": 40,
209
+ "2072846347": 48
210
+ },
211
+ "cursor": 2072846348,
212
+ "flags": 132,
213
+ "output_hex": "2d2e2f2c292c282d2a2c2830",
214
+ "trace_sha256": "a5dc80dfb19a21abcc4d6feb6d914b8f06c7c6e7c3d46acf9406658763ae1ed2",
215
+ "value": -2147483648,
216
+ "width": 12
217
+ },
218
+ {
219
+ "child_memory_bytes": {
220
+ "2072846336": 45,
221
+ "2072846337": 49,
222
+ "2072846338": 50,
223
+ "2072846339": 51
224
+ },
225
+ "cursor": 2072846340,
226
+ "flags": 0,
227
+ "output_hex": "2d313233",
228
+ "trace_sha256": "eb6a36f8e7dc0250d421d9f59eb9704469d93195b74bffc11097805478aabdef",
229
+ "value": -123,
230
+ "width": 0
231
+ },
232
+ {
233
+ "child_memory_bytes": {
234
+ "2072846336": 45,
235
+ "2072846337": 49,
236
+ "2072846338": 50,
237
+ "2072846339": 51
238
+ },
239
+ "cursor": 2072846340,
240
+ "flags": 128,
241
+ "output_hex": "2d313233",
242
+ "trace_sha256": "eb6a36f8e7dc0250d421d9f59eb9704469d93195b74bffc11097805478aabdef",
243
+ "value": -123,
244
+ "width": 0
245
+ },
246
+ {
247
+ "child_memory_bytes": {
248
+ "2072846336": 45,
249
+ "2072846337": 49,
250
+ "2072846338": 50,
251
+ "2072846339": 51
252
+ },
253
+ "cursor": 2072846340,
254
+ "flags": 0,
255
+ "output_hex": "2d313233",
256
+ "trace_sha256": "eb6a36f8e7dc0250d421d9f59eb9704469d93195b74bffc11097805478aabdef",
257
+ "value": -123,
258
+ "width": 1
259
+ },
260
+ {
261
+ "child_memory_bytes": {
262
+ "2072846336": 45,
263
+ "2072846337": 49,
264
+ "2072846338": 50,
265
+ "2072846339": 51
266
+ },
267
+ "cursor": 2072846340,
268
+ "flags": 128,
269
+ "output_hex": "2d313233",
270
+ "trace_sha256": "eb6a36f8e7dc0250d421d9f59eb9704469d93195b74bffc11097805478aabdef",
271
+ "value": -123,
272
+ "width": 1
273
+ },
274
+ {
275
+ "child_memory_bytes": {
276
+ "2072846336": 32,
277
+ "2072846337": 45,
278
+ "2072846338": 49,
279
+ "2072846339": 50,
280
+ "2072846340": 51
281
+ },
282
+ "cursor": 2072846341,
283
+ "flags": 0,
284
+ "output_hex": "202d313233",
285
+ "trace_sha256": "768597a3277dfa3c4a2b829082adfdf48189485c9ae6eed88f8ffa0c32d902df",
286
+ "value": -123,
287
+ "width": 5
288
+ },
289
+ {
290
+ "child_memory_bytes": {
291
+ "2072846336": 48,
292
+ "2072846337": 45,
293
+ "2072846338": 49,
294
+ "2072846339": 50,
295
+ "2072846340": 51
296
+ },
297
+ "cursor": 2072846341,
298
+ "flags": 128,
299
+ "output_hex": "302d313233",
300
+ "trace_sha256": "0d5fa0f1324838b703026fe0bbf5d142dfac3ccaebfe9bf1c21468262742fecc",
301
+ "value": -123,
302
+ "width": 5
303
+ },
304
+ {
305
+ "child_memory_bytes": {
306
+ "2072846336": 45,
307
+ "2072846337": 49,
308
+ "2072846338": 50,
309
+ "2072846339": 51,
310
+ "2072846340": 32
311
+ },
312
+ "cursor": 2072846341,
313
+ "flags": 4,
314
+ "output_hex": "2d31323320",
315
+ "trace_sha256": "ef807864416d6dbe0c5f8557c46749884a5c68604a0f11c907f3078d95aae479",
316
+ "value": -123,
317
+ "width": 5
318
+ },
319
+ {
320
+ "child_memory_bytes": {
321
+ "2072846336": 45,
322
+ "2072846337": 49,
323
+ "2072846338": 50,
324
+ "2072846339": 51,
325
+ "2072846340": 48
326
+ },
327
+ "cursor": 2072846341,
328
+ "flags": 132,
329
+ "output_hex": "2d31323330",
330
+ "trace_sha256": "9de47905ae6d49a5309dda61ea75c2b575fe65df61f6a23e66646641d8b35912",
331
+ "value": -123,
332
+ "width": 5
333
+ },
334
+ {
335
+ "child_memory_bytes": {
336
+ "2072846336": 32,
337
+ "2072846337": 32,
338
+ "2072846338": 32,
339
+ "2072846339": 32,
340
+ "2072846340": 32,
341
+ "2072846341": 32,
342
+ "2072846342": 32,
343
+ "2072846343": 32,
344
+ "2072846344": 45,
345
+ "2072846345": 49,
346
+ "2072846346": 50,
347
+ "2072846347": 51
348
+ },
349
+ "cursor": 2072846348,
350
+ "flags": 0,
351
+ "output_hex": "20202020202020202d313233",
352
+ "trace_sha256": "481b45d9846e1c19e6daad37cc5c8e2424ec964eff8924404b129d8d920c398d",
353
+ "value": -123,
354
+ "width": 12
355
+ },
356
+ {
357
+ "child_memory_bytes": {
358
+ "2072846336": 48,
359
+ "2072846337": 48,
360
+ "2072846338": 48,
361
+ "2072846339": 48,
362
+ "2072846340": 48,
363
+ "2072846341": 48,
364
+ "2072846342": 48,
365
+ "2072846343": 48,
366
+ "2072846344": 45,
367
+ "2072846345": 49,
368
+ "2072846346": 50,
369
+ "2072846347": 51
370
+ },
371
+ "cursor": 2072846348,
372
+ "flags": 128,
373
+ "output_hex": "30303030303030302d313233",
374
+ "trace_sha256": "5abb74681859e663b10c6c29ffb149065bf0dc99f20c1901fd606932ce10042c",
375
+ "value": -123,
376
+ "width": 12
377
+ },
378
+ {
379
+ "child_memory_bytes": {
380
+ "2072846336": 45,
381
+ "2072846337": 49,
382
+ "2072846338": 50,
383
+ "2072846339": 51,
384
+ "2072846340": 32,
385
+ "2072846341": 32,
386
+ "2072846342": 32,
387
+ "2072846343": 32,
388
+ "2072846344": 32,
389
+ "2072846345": 32,
390
+ "2072846346": 32,
391
+ "2072846347": 32
392
+ },
393
+ "cursor": 2072846348,
394
+ "flags": 4,
395
+ "output_hex": "2d3132332020202020202020",
396
+ "trace_sha256": "a32895f8d0e2ac6e269e20d527e47026069e246e3fcb4a311dca43f78ab04335",
397
+ "value": -123,
398
+ "width": 12
399
+ },
400
+ {
401
+ "child_memory_bytes": {
402
+ "2072846336": 45,
403
+ "2072846337": 49,
404
+ "2072846338": 50,
405
+ "2072846339": 51,
406
+ "2072846340": 48,
407
+ "2072846341": 48,
408
+ "2072846342": 48,
409
+ "2072846343": 48,
410
+ "2072846344": 48,
411
+ "2072846345": 48,
412
+ "2072846346": 48,
413
+ "2072846347": 48
414
+ },
415
+ "cursor": 2072846348,
416
+ "flags": 132,
417
+ "output_hex": "2d3132333030303030303030",
418
+ "trace_sha256": "83e32a71fcf448a64c0f72fcc2e06c38371819ca8b9aeecec0593cfa29dce7b3",
419
+ "value": -123,
420
+ "width": 12
421
+ },
422
+ {
423
+ "child_memory_bytes": {
424
+ "2072846336": 45,
425
+ "2072846337": 49
426
+ },
427
+ "cursor": 2072846338,
428
+ "flags": 0,
429
+ "output_hex": "2d31",
430
+ "trace_sha256": "ae1a318aed0590ea85703f943f2140ddcda18959be5e6e84a6c8821dc5525f7b",
431
+ "value": -1,
432
+ "width": 0
433
+ },
434
+ {
435
+ "child_memory_bytes": {
436
+ "2072846336": 45,
437
+ "2072846337": 49
438
+ },
439
+ "cursor": 2072846338,
440
+ "flags": 128,
441
+ "output_hex": "2d31",
442
+ "trace_sha256": "ae1a318aed0590ea85703f943f2140ddcda18959be5e6e84a6c8821dc5525f7b",
443
+ "value": -1,
444
+ "width": 0
445
+ },
446
+ {
447
+ "child_memory_bytes": {
448
+ "2072846336": 45,
449
+ "2072846337": 49
450
+ },
451
+ "cursor": 2072846338,
452
+ "flags": 0,
453
+ "output_hex": "2d31",
454
+ "trace_sha256": "ae1a318aed0590ea85703f943f2140ddcda18959be5e6e84a6c8821dc5525f7b",
455
+ "value": -1,
456
+ "width": 1
457
+ },
458
+ {
459
+ "child_memory_bytes": {
460
+ "2072846336": 45,
461
+ "2072846337": 49
462
+ },
463
+ "cursor": 2072846338,
464
+ "flags": 128,
465
+ "output_hex": "2d31",
466
+ "trace_sha256": "ae1a318aed0590ea85703f943f2140ddcda18959be5e6e84a6c8821dc5525f7b",
467
+ "value": -1,
468
+ "width": 1
469
+ },
470
+ {
471
+ "child_memory_bytes": {
472
+ "2072846336": 32,
473
+ "2072846337": 32,
474
+ "2072846338": 32,
475
+ "2072846339": 45,
476
+ "2072846340": 49
477
+ },
478
+ "cursor": 2072846341,
479
+ "flags": 0,
480
+ "output_hex": "2020202d31",
481
+ "trace_sha256": "2d4e56d3541e3efd019071d2301a36b9f0e2a201a45ad9f638ddb42a08ddae7c",
482
+ "value": -1,
483
+ "width": 5
484
+ },
485
+ {
486
+ "child_memory_bytes": {
487
+ "2072846336": 48,
488
+ "2072846337": 48,
489
+ "2072846338": 48,
490
+ "2072846339": 45,
491
+ "2072846340": 49
492
+ },
493
+ "cursor": 2072846341,
494
+ "flags": 128,
495
+ "output_hex": "3030302d31",
496
+ "trace_sha256": "4fbfa882939365be1612da31f9f86580248e4576be6d8564495e3ba50cfc89f4",
497
+ "value": -1,
498
+ "width": 5
499
+ },
500
+ {
501
+ "child_memory_bytes": {
502
+ "2072846336": 45,
503
+ "2072846337": 49,
504
+ "2072846338": 32,
505
+ "2072846339": 32,
506
+ "2072846340": 32
507
+ },
508
+ "cursor": 2072846341,
509
+ "flags": 4,
510
+ "output_hex": "2d31202020",
511
+ "trace_sha256": "925ae26630cd4cdbcda18a2114bf31a99e21b2d46281a3f51d8f14575e6c2466",
512
+ "value": -1,
513
+ "width": 5
514
+ },
515
+ {
516
+ "child_memory_bytes": {
517
+ "2072846336": 45,
518
+ "2072846337": 49,
519
+ "2072846338": 48,
520
+ "2072846339": 48,
521
+ "2072846340": 48
522
+ },
523
+ "cursor": 2072846341,
524
+ "flags": 132,
525
+ "output_hex": "2d31303030",
526
+ "trace_sha256": "ea4c09e77fbe9feb9e306f41522837d95cb03a74243a1a7b4eb346fe22367fa5",
527
+ "value": -1,
528
+ "width": 5
529
+ },
530
+ {
531
+ "child_memory_bytes": {
532
+ "2072846336": 32,
533
+ "2072846337": 32,
534
+ "2072846338": 32,
535
+ "2072846339": 32,
536
+ "2072846340": 32,
537
+ "2072846341": 32,
538
+ "2072846342": 32,
539
+ "2072846343": 32,
540
+ "2072846344": 32,
541
+ "2072846345": 32,
542
+ "2072846346": 45,
543
+ "2072846347": 49
544
+ },
545
+ "cursor": 2072846348,
546
+ "flags": 0,
547
+ "output_hex": "202020202020202020202d31",
548
+ "trace_sha256": "ce0892179ef6384e391669bc2874ae7a36ba649b7a53c7a694344620b0090c1d",
549
+ "value": -1,
550
+ "width": 12
551
+ },
552
+ {
553
+ "child_memory_bytes": {
554
+ "2072846336": 48,
555
+ "2072846337": 48,
556
+ "2072846338": 48,
557
+ "2072846339": 48,
558
+ "2072846340": 48,
559
+ "2072846341": 48,
560
+ "2072846342": 48,
561
+ "2072846343": 48,
562
+ "2072846344": 48,
563
+ "2072846345": 48,
564
+ "2072846346": 45,
565
+ "2072846347": 49
566
+ },
567
+ "cursor": 2072846348,
568
+ "flags": 128,
569
+ "output_hex": "303030303030303030302d31",
570
+ "trace_sha256": "c452aee2fa8c9aba9ae68cbd52dc954aeeafc7f66e612210336df1ec9597e9b8",
571
+ "value": -1,
572
+ "width": 12
573
+ },
574
+ {
575
+ "child_memory_bytes": {
576
+ "2072846336": 45,
577
+ "2072846337": 49,
578
+ "2072846338": 32,
579
+ "2072846339": 32,
580
+ "2072846340": 32,
581
+ "2072846341": 32,
582
+ "2072846342": 32,
583
+ "2072846343": 32,
584
+ "2072846344": 32,
585
+ "2072846345": 32,
586
+ "2072846346": 32,
587
+ "2072846347": 32
588
+ },
589
+ "cursor": 2072846348,
590
+ "flags": 4,
591
+ "output_hex": "2d3120202020202020202020",
592
+ "trace_sha256": "18049208da44c21b67df2c2cbc463bae92680e5787fd45ed6cca4e8284f7f0fe",
593
+ "value": -1,
594
+ "width": 12
595
+ },
596
+ {
597
+ "child_memory_bytes": {
598
+ "2072846336": 45,
599
+ "2072846337": 49,
600
+ "2072846338": 48,
601
+ "2072846339": 48,
602
+ "2072846340": 48,
603
+ "2072846341": 48,
604
+ "2072846342": 48,
605
+ "2072846343": 48,
606
+ "2072846344": 48,
607
+ "2072846345": 48,
608
+ "2072846346": 48,
609
+ "2072846347": 48
610
+ },
611
+ "cursor": 2072846348,
612
+ "flags": 132,
613
+ "output_hex": "2d3130303030303030303030",
614
+ "trace_sha256": "9e9058b5be0bc63706c633e77e5c59473b94e625999c7c7fe4f0ca50ec7bc10c",
615
+ "value": -1,
616
+ "width": 12
617
+ },
618
+ {
619
+ "child_memory_bytes": {
620
+ "2072846336": 48
621
+ },
622
+ "cursor": 2072846337,
623
+ "flags": 0,
624
+ "output_hex": "30",
625
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
626
+ "value": 0,
627
+ "width": 0
628
+ },
629
+ {
630
+ "child_memory_bytes": {
631
+ "2072846336": 48
632
+ },
633
+ "cursor": 2072846337,
634
+ "flags": 128,
635
+ "output_hex": "30",
636
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
637
+ "value": 0,
638
+ "width": 0
639
+ },
640
+ {
641
+ "child_memory_bytes": {
642
+ "2072846336": 48
643
+ },
644
+ "cursor": 2072846337,
645
+ "flags": 0,
646
+ "output_hex": "30",
647
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
648
+ "value": 0,
649
+ "width": 1
650
+ },
651
+ {
652
+ "child_memory_bytes": {
653
+ "2072846336": 48
654
+ },
655
+ "cursor": 2072846337,
656
+ "flags": 128,
657
+ "output_hex": "30",
658
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
659
+ "value": 0,
660
+ "width": 1
661
+ },
662
+ {
663
+ "child_memory_bytes": {
664
+ "2072846336": 48
665
+ },
666
+ "cursor": 2072846337,
667
+ "flags": 4,
668
+ "output_hex": "30",
669
+ "trace_sha256": "6b8bcb9cb139f1be90742993501971322b869d3699066cebfbe26fdde3ebc1a4",
670
+ "value": 0,
671
+ "width": 1
672
+ },
673
+ {
674
+ "child_memory_bytes": {
675
+ "2072846336": 48
676
+ },
677
+ "cursor": 2072846337,
678
+ "flags": 132,
679
+ "output_hex": "30",
680
+ "trace_sha256": "6b8bcb9cb139f1be90742993501971322b869d3699066cebfbe26fdde3ebc1a4",
681
+ "value": 0,
682
+ "width": 1
683
+ },
684
+ {
685
+ "child_memory_bytes": {
686
+ "2072846336": 32,
687
+ "2072846337": 32,
688
+ "2072846338": 32,
689
+ "2072846339": 32,
690
+ "2072846340": 48
691
+ },
692
+ "cursor": 2072846341,
693
+ "flags": 0,
694
+ "output_hex": "2020202030",
695
+ "trace_sha256": "7b1885e77243a66912031f70bcf9c1f4cfa51ac84474c401f08fe6c5650f7c7f",
696
+ "value": 0,
697
+ "width": 5
698
+ },
699
+ {
700
+ "child_memory_bytes": {
701
+ "2072846336": 48,
702
+ "2072846337": 48,
703
+ "2072846338": 48,
704
+ "2072846339": 48,
705
+ "2072846340": 48
706
+ },
707
+ "cursor": 2072846341,
708
+ "flags": 128,
709
+ "output_hex": "3030303030",
710
+ "trace_sha256": "0b2d038433c37f8dad1f13f833c76f6490912fa2a9ed25660499b127d1e0ca78",
711
+ "value": 0,
712
+ "width": 5
713
+ },
714
+ {
715
+ "child_memory_bytes": {
716
+ "2072846336": 48,
717
+ "2072846337": 32,
718
+ "2072846338": 32,
719
+ "2072846339": 32,
720
+ "2072846340": 32
721
+ },
722
+ "cursor": 2072846341,
723
+ "flags": 4,
724
+ "output_hex": "3020202020",
725
+ "trace_sha256": "eed7aedacbe94bf846f9831f26aefbd4ead17db0667d8d9114465aaf59b11e96",
726
+ "value": 0,
727
+ "width": 5
728
+ },
729
+ {
730
+ "child_memory_bytes": {
731
+ "2072846336": 48,
732
+ "2072846337": 48,
733
+ "2072846338": 48,
734
+ "2072846339": 48,
735
+ "2072846340": 48
736
+ },
737
+ "cursor": 2072846341,
738
+ "flags": 132,
739
+ "output_hex": "3030303030",
740
+ "trace_sha256": "2681de0ce986edfe0d662bde387ed95fa7e444cd73dd0762dc7b5cf93ad5c698",
741
+ "value": 0,
742
+ "width": 5
743
+ },
744
+ {
745
+ "child_memory_bytes": {
746
+ "2072846336": 32,
747
+ "2072846337": 32,
748
+ "2072846338": 32,
749
+ "2072846339": 32,
750
+ "2072846340": 32,
751
+ "2072846341": 32,
752
+ "2072846342": 32,
753
+ "2072846343": 32,
754
+ "2072846344": 32,
755
+ "2072846345": 32,
756
+ "2072846346": 32,
757
+ "2072846347": 48
758
+ },
759
+ "cursor": 2072846348,
760
+ "flags": 0,
761
+ "output_hex": "202020202020202020202030",
762
+ "trace_sha256": "38f090b9fdc8227077d60f2ee3328cf74c568c6d455bddec4116c41270f0a194",
763
+ "value": 0,
764
+ "width": 12
765
+ },
766
+ {
767
+ "child_memory_bytes": {
768
+ "2072846336": 48,
769
+ "2072846337": 48,
770
+ "2072846338": 48,
771
+ "2072846339": 48,
772
+ "2072846340": 48,
773
+ "2072846341": 48,
774
+ "2072846342": 48,
775
+ "2072846343": 48,
776
+ "2072846344": 48,
777
+ "2072846345": 48,
778
+ "2072846346": 48,
779
+ "2072846347": 48
780
+ },
781
+ "cursor": 2072846348,
782
+ "flags": 128,
783
+ "output_hex": "303030303030303030303030",
784
+ "trace_sha256": "7bb3c8be3e3a8cc52a0c0df820243e42c22073116b9b66077caaed8268344614",
785
+ "value": 0,
786
+ "width": 12
787
+ },
788
+ {
789
+ "child_memory_bytes": {
790
+ "2072846336": 48,
791
+ "2072846337": 32,
792
+ "2072846338": 32,
793
+ "2072846339": 32,
794
+ "2072846340": 32,
795
+ "2072846341": 32,
796
+ "2072846342": 32,
797
+ "2072846343": 32,
798
+ "2072846344": 32,
799
+ "2072846345": 32,
800
+ "2072846346": 32,
801
+ "2072846347": 32
802
+ },
803
+ "cursor": 2072846348,
804
+ "flags": 4,
805
+ "output_hex": "302020202020202020202020",
806
+ "trace_sha256": "95b5035ca0da8360836257d7fd60d80bf67c9676abbe17cd34555b0dc41e0092",
807
+ "value": 0,
808
+ "width": 12
809
+ },
810
+ {
811
+ "child_memory_bytes": {
812
+ "2072846336": 48,
813
+ "2072846337": 48,
814
+ "2072846338": 48,
815
+ "2072846339": 48,
816
+ "2072846340": 48,
817
+ "2072846341": 48,
818
+ "2072846342": 48,
819
+ "2072846343": 48,
820
+ "2072846344": 48,
821
+ "2072846345": 48,
822
+ "2072846346": 48,
823
+ "2072846347": 48
824
+ },
825
+ "cursor": 2072846348,
826
+ "flags": 132,
827
+ "output_hex": "303030303030303030303030",
828
+ "trace_sha256": "5f51f0fa5138c9084d5e0f5c9ed087d246eed23e252e3b1f6320545cd772ecb9",
829
+ "value": 0,
830
+ "width": 12
831
+ },
832
+ {
833
+ "child_memory_bytes": {
834
+ "2072846336": 49
835
+ },
836
+ "cursor": 2072846337,
837
+ "flags": 0,
838
+ "output_hex": "31",
839
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
840
+ "value": 1,
841
+ "width": 0
842
+ },
843
+ {
844
+ "child_memory_bytes": {
845
+ "2072846336": 49
846
+ },
847
+ "cursor": 2072846337,
848
+ "flags": 128,
849
+ "output_hex": "31",
850
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
851
+ "value": 1,
852
+ "width": 0
853
+ },
854
+ {
855
+ "child_memory_bytes": {
856
+ "2072846336": 49
857
+ },
858
+ "cursor": 2072846337,
859
+ "flags": 0,
860
+ "output_hex": "31",
861
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
862
+ "value": 1,
863
+ "width": 1
864
+ },
865
+ {
866
+ "child_memory_bytes": {
867
+ "2072846336": 49
868
+ },
869
+ "cursor": 2072846337,
870
+ "flags": 128,
871
+ "output_hex": "31",
872
+ "trace_sha256": "85bca31bfbe4d4169bc158cddfcfa4cab54c2b3adef7fe67e6db696ede03dc20",
873
+ "value": 1,
874
+ "width": 1
875
+ },
876
+ {
877
+ "child_memory_bytes": {
878
+ "2072846336": 49
879
+ },
880
+ "cursor": 2072846337,
881
+ "flags": 4,
882
+ "output_hex": "31",
883
+ "trace_sha256": "6b8bcb9cb139f1be90742993501971322b869d3699066cebfbe26fdde3ebc1a4",
884
+ "value": 1,
885
+ "width": 1
886
+ },
887
+ {
888
+ "child_memory_bytes": {
889
+ "2072846336": 49
890
+ },
891
+ "cursor": 2072846337,
892
+ "flags": 132,
893
+ "output_hex": "31",
894
+ "trace_sha256": "6b8bcb9cb139f1be90742993501971322b869d3699066cebfbe26fdde3ebc1a4",
895
+ "value": 1,
896
+ "width": 1
897
+ },
898
+ {
899
+ "child_memory_bytes": {
900
+ "2072846336": 32,
901
+ "2072846337": 32,
902
+ "2072846338": 32,
903
+ "2072846339": 32,
904
+ "2072846340": 49
905
+ },
906
+ "cursor": 2072846341,
907
+ "flags": 0,
908
+ "output_hex": "2020202031",
909
+ "trace_sha256": "7b1885e77243a66912031f70bcf9c1f4cfa51ac84474c401f08fe6c5650f7c7f",
910
+ "value": 1,
911
+ "width": 5
912
+ },
913
+ {
914
+ "child_memory_bytes": {
915
+ "2072846336": 48,
916
+ "2072846337": 48,
917
+ "2072846338": 48,
918
+ "2072846339": 48,
919
+ "2072846340": 49
920
+ },
921
+ "cursor": 2072846341,
922
+ "flags": 128,
923
+ "output_hex": "3030303031",
924
+ "trace_sha256": "0b2d038433c37f8dad1f13f833c76f6490912fa2a9ed25660499b127d1e0ca78",
925
+ "value": 1,
926
+ "width": 5
927
+ },
928
+ {
929
+ "child_memory_bytes": {
930
+ "2072846336": 49,
931
+ "2072846337": 32,
932
+ "2072846338": 32,
933
+ "2072846339": 32,
934
+ "2072846340": 32
935
+ },
936
+ "cursor": 2072846341,
937
+ "flags": 4,
938
+ "output_hex": "3120202020",
939
+ "trace_sha256": "eed7aedacbe94bf846f9831f26aefbd4ead17db0667d8d9114465aaf59b11e96",
940
+ "value": 1,
941
+ "width": 5
942
+ },
943
+ {
944
+ "child_memory_bytes": {
945
+ "2072846336": 49,
946
+ "2072846337": 48,
947
+ "2072846338": 48,
948
+ "2072846339": 48,
949
+ "2072846340": 48
950
+ },
951
+ "cursor": 2072846341,
952
+ "flags": 132,
953
+ "output_hex": "3130303030",
954
+ "trace_sha256": "2681de0ce986edfe0d662bde387ed95fa7e444cd73dd0762dc7b5cf93ad5c698",
955
+ "value": 1,
956
+ "width": 5
957
+ },
958
+ {
959
+ "child_memory_bytes": {
960
+ "2072846336": 32,
961
+ "2072846337": 32,
962
+ "2072846338": 32,
963
+ "2072846339": 32,
964
+ "2072846340": 32,
965
+ "2072846341": 32,
966
+ "2072846342": 32,
967
+ "2072846343": 32,
968
+ "2072846344": 32,
969
+ "2072846345": 32,
970
+ "2072846346": 32,
971
+ "2072846347": 49
972
+ },
973
+ "cursor": 2072846348,
974
+ "flags": 0,
975
+ "output_hex": "202020202020202020202031",
976
+ "trace_sha256": "38f090b9fdc8227077d60f2ee3328cf74c568c6d455bddec4116c41270f0a194",
977
+ "value": 1,
978
+ "width": 12
979
+ },
980
+ {
981
+ "child_memory_bytes": {
982
+ "2072846336": 48,
983
+ "2072846337": 48,
984
+ "2072846338": 48,
985
+ "2072846339": 48,
986
+ "2072846340": 48,
987
+ "2072846341": 48,
988
+ "2072846342": 48,
989
+ "2072846343": 48,
990
+ "2072846344": 48,
991
+ "2072846345": 48,
992
+ "2072846346": 48,
993
+ "2072846347": 49
994
+ },
995
+ "cursor": 2072846348,
996
+ "flags": 128,
997
+ "output_hex": "303030303030303030303031",
998
+ "trace_sha256": "7bb3c8be3e3a8cc52a0c0df820243e42c22073116b9b66077caaed8268344614",
999
+ "value": 1,
1000
+ "width": 12
1001
+ },
1002
+ {
1003
+ "child_memory_bytes": {
1004
+ "2072846336": 49,
1005
+ "2072846337": 32,
1006
+ "2072846338": 32,
1007
+ "2072846339": 32,
1008
+ "2072846340": 32,
1009
+ "2072846341": 32,
1010
+ "2072846342": 32,
1011
+ "2072846343": 32,
1012
+ "2072846344": 32,
1013
+ "2072846345": 32,
1014
+ "2072846346": 32,
1015
+ "2072846347": 32
1016
+ },
1017
+ "cursor": 2072846348,
1018
+ "flags": 4,
1019
+ "output_hex": "312020202020202020202020",
1020
+ "trace_sha256": "95b5035ca0da8360836257d7fd60d80bf67c9676abbe17cd34555b0dc41e0092",
1021
+ "value": 1,
1022
+ "width": 12
1023
+ },
1024
+ {
1025
+ "child_memory_bytes": {
1026
+ "2072846336": 49,
1027
+ "2072846337": 48,
1028
+ "2072846338": 48,
1029
+ "2072846339": 48,
1030
+ "2072846340": 48,
1031
+ "2072846341": 48,
1032
+ "2072846342": 48,
1033
+ "2072846343": 48,
1034
+ "2072846344": 48,
1035
+ "2072846345": 48,
1036
+ "2072846346": 48,
1037
+ "2072846347": 48
1038
+ },
1039
+ "cursor": 2072846348,
1040
+ "flags": 132,
1041
+ "output_hex": "313030303030303030303030",
1042
+ "trace_sha256": "5f51f0fa5138c9084d5e0f5c9ed087d246eed23e252e3b1f6320545cd772ecb9",
1043
+ "value": 1,
1044
+ "width": 12
1045
+ },
1046
+ {
1047
+ "child_memory_bytes": {
1048
+ "2072846336": 49,
1049
+ "2072846337": 50,
1050
+ "2072846338": 51
1051
+ },
1052
+ "cursor": 2072846339,
1053
+ "flags": 0,
1054
+ "output_hex": "313233",
1055
+ "trace_sha256": "5ea315d3adb2a7aeb162bc7b9b680fe26e93555522dd0c1973df1b8827b84646",
1056
+ "value": 123,
1057
+ "width": 0
1058
+ },
1059
+ {
1060
+ "child_memory_bytes": {
1061
+ "2072846336": 49,
1062
+ "2072846337": 50,
1063
+ "2072846338": 51
1064
+ },
1065
+ "cursor": 2072846339,
1066
+ "flags": 128,
1067
+ "output_hex": "313233",
1068
+ "trace_sha256": "5ea315d3adb2a7aeb162bc7b9b680fe26e93555522dd0c1973df1b8827b84646",
1069
+ "value": 123,
1070
+ "width": 0
1071
+ },
1072
+ {
1073
+ "child_memory_bytes": {
1074
+ "2072846336": 49,
1075
+ "2072846337": 50,
1076
+ "2072846338": 51
1077
+ },
1078
+ "cursor": 2072846339,
1079
+ "flags": 0,
1080
+ "output_hex": "313233",
1081
+ "trace_sha256": "5ea315d3adb2a7aeb162bc7b9b680fe26e93555522dd0c1973df1b8827b84646",
1082
+ "value": 123,
1083
+ "width": 1
1084
+ },
1085
+ {
1086
+ "child_memory_bytes": {
1087
+ "2072846336": 49,
1088
+ "2072846337": 50,
1089
+ "2072846338": 51
1090
+ },
1091
+ "cursor": 2072846339,
1092
+ "flags": 128,
1093
+ "output_hex": "313233",
1094
+ "trace_sha256": "5ea315d3adb2a7aeb162bc7b9b680fe26e93555522dd0c1973df1b8827b84646",
1095
+ "value": 123,
1096
+ "width": 1
1097
+ },
1098
+ {
1099
+ "child_memory_bytes": {
1100
+ "2072846336": 32,
1101
+ "2072846337": 32,
1102
+ "2072846338": 49,
1103
+ "2072846339": 50,
1104
+ "2072846340": 51
1105
+ },
1106
+ "cursor": 2072846341,
1107
+ "flags": 0,
1108
+ "output_hex": "2020313233",
1109
+ "trace_sha256": "c2c33fbc1d63cb66c39941c3964d670248ddfb25ecd91f53df1bf9d0d7099295",
1110
+ "value": 123,
1111
+ "width": 5
1112
+ },
1113
+ {
1114
+ "child_memory_bytes": {
1115
+ "2072846336": 48,
1116
+ "2072846337": 48,
1117
+ "2072846338": 49,
1118
+ "2072846339": 50,
1119
+ "2072846340": 51
1120
+ },
1121
+ "cursor": 2072846341,
1122
+ "flags": 128,
1123
+ "output_hex": "3030313233",
1124
+ "trace_sha256": "3c34d588f7e5d560c057ff9abe1dda3e0eb09d15e5604c0ae399ee312e16f371",
1125
+ "value": 123,
1126
+ "width": 5
1127
+ },
1128
+ {
1129
+ "child_memory_bytes": {
1130
+ "2072846336": 49,
1131
+ "2072846337": 50,
1132
+ "2072846338": 51,
1133
+ "2072846339": 32,
1134
+ "2072846340": 32
1135
+ },
1136
+ "cursor": 2072846341,
1137
+ "flags": 4,
1138
+ "output_hex": "3132332020",
1139
+ "trace_sha256": "e92d227a770abe2cf1f94708414fe101fc8e0f7f5917511a8bf651a4319a9eed",
1140
+ "value": 123,
1141
+ "width": 5
1142
+ },
1143
+ {
1144
+ "child_memory_bytes": {
1145
+ "2072846336": 49,
1146
+ "2072846337": 50,
1147
+ "2072846338": 51,
1148
+ "2072846339": 48,
1149
+ "2072846340": 48
1150
+ },
1151
+ "cursor": 2072846341,
1152
+ "flags": 132,
1153
+ "output_hex": "3132333030",
1154
+ "trace_sha256": "cfc7b6b398c45f17387ffaf5e143a976b87efe41b119d91943c20a299dd6ac79",
1155
+ "value": 123,
1156
+ "width": 5
1157
+ },
1158
+ {
1159
+ "child_memory_bytes": {
1160
+ "2072846336": 32,
1161
+ "2072846337": 32,
1162
+ "2072846338": 32,
1163
+ "2072846339": 32,
1164
+ "2072846340": 32,
1165
+ "2072846341": 32,
1166
+ "2072846342": 32,
1167
+ "2072846343": 32,
1168
+ "2072846344": 32,
1169
+ "2072846345": 49,
1170
+ "2072846346": 50,
1171
+ "2072846347": 51
1172
+ },
1173
+ "cursor": 2072846348,
1174
+ "flags": 0,
1175
+ "output_hex": "202020202020202020313233",
1176
+ "trace_sha256": "e9d81699c0cb2c01ce742bfda937305f027b0312acbecc92875a425a604d1a27",
1177
+ "value": 123,
1178
+ "width": 12
1179
+ },
1180
+ {
1181
+ "child_memory_bytes": {
1182
+ "2072846336": 48,
1183
+ "2072846337": 48,
1184
+ "2072846338": 48,
1185
+ "2072846339": 48,
1186
+ "2072846340": 48,
1187
+ "2072846341": 48,
1188
+ "2072846342": 48,
1189
+ "2072846343": 48,
1190
+ "2072846344": 48,
1191
+ "2072846345": 49,
1192
+ "2072846346": 50,
1193
+ "2072846347": 51
1194
+ },
1195
+ "cursor": 2072846348,
1196
+ "flags": 128,
1197
+ "output_hex": "303030303030303030313233",
1198
+ "trace_sha256": "26d8a3732c946dd3dc61dc9646561eef37965368994d7e9f583aa069086aef47",
1199
+ "value": 123,
1200
+ "width": 12
1201
+ },
1202
+ {
1203
+ "child_memory_bytes": {
1204
+ "2072846336": 49,
1205
+ "2072846337": 50,
1206
+ "2072846338": 51,
1207
+ "2072846339": 32,
1208
+ "2072846340": 32,
1209
+ "2072846341": 32,
1210
+ "2072846342": 32,
1211
+ "2072846343": 32,
1212
+ "2072846344": 32,
1213
+ "2072846345": 32,
1214
+ "2072846346": 32,
1215
+ "2072846347": 32
1216
+ },
1217
+ "cursor": 2072846348,
1218
+ "flags": 4,
1219
+ "output_hex": "313233202020202020202020",
1220
+ "trace_sha256": "2d01f2e91788aa21fd0f1e74b3fb524497717eccb72a123041bc08b37384cdf4",
1221
+ "value": 123,
1222
+ "width": 12
1223
+ },
1224
+ {
1225
+ "child_memory_bytes": {
1226
+ "2072846336": 49,
1227
+ "2072846337": 50,
1228
+ "2072846338": 51,
1229
+ "2072846339": 48,
1230
+ "2072846340": 48,
1231
+ "2072846341": 48,
1232
+ "2072846342": 48,
1233
+ "2072846343": 48,
1234
+ "2072846344": 48,
1235
+ "2072846345": 48,
1236
+ "2072846346": 48,
1237
+ "2072846347": 48
1238
+ },
1239
+ "cursor": 2072846348,
1240
+ "flags": 132,
1241
+ "output_hex": "313233303030303030303030",
1242
+ "trace_sha256": "8054ba7ae331d4fb58df0a0fb32ce83b100f454fa2cc222d4a47827a1d095766",
1243
+ "value": 123,
1244
+ "width": 12
1245
+ },
1246
+ {
1247
+ "child_memory_bytes": {
1248
+ "2072846336": 50,
1249
+ "2072846337": 49,
1250
+ "2072846338": 52,
1251
+ "2072846339": 55,
1252
+ "2072846340": 52,
1253
+ "2072846341": 56,
1254
+ "2072846342": 51,
1255
+ "2072846343": 54,
1256
+ "2072846344": 52,
1257
+ "2072846345": 55
1258
+ },
1259
+ "cursor": 2072846346,
1260
+ "flags": 0,
1261
+ "output_hex": "32313437343833363437",
1262
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1263
+ "value": 2147483647,
1264
+ "width": 0
1265
+ },
1266
+ {
1267
+ "child_memory_bytes": {
1268
+ "2072846336": 50,
1269
+ "2072846337": 49,
1270
+ "2072846338": 52,
1271
+ "2072846339": 55,
1272
+ "2072846340": 52,
1273
+ "2072846341": 56,
1274
+ "2072846342": 51,
1275
+ "2072846343": 54,
1276
+ "2072846344": 52,
1277
+ "2072846345": 55
1278
+ },
1279
+ "cursor": 2072846346,
1280
+ "flags": 128,
1281
+ "output_hex": "32313437343833363437",
1282
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1283
+ "value": 2147483647,
1284
+ "width": 0
1285
+ },
1286
+ {
1287
+ "child_memory_bytes": {
1288
+ "2072846336": 50,
1289
+ "2072846337": 49,
1290
+ "2072846338": 52,
1291
+ "2072846339": 55,
1292
+ "2072846340": 52,
1293
+ "2072846341": 56,
1294
+ "2072846342": 51,
1295
+ "2072846343": 54,
1296
+ "2072846344": 52,
1297
+ "2072846345": 55
1298
+ },
1299
+ "cursor": 2072846346,
1300
+ "flags": 0,
1301
+ "output_hex": "32313437343833363437",
1302
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1303
+ "value": 2147483647,
1304
+ "width": 1
1305
+ },
1306
+ {
1307
+ "child_memory_bytes": {
1308
+ "2072846336": 50,
1309
+ "2072846337": 49,
1310
+ "2072846338": 52,
1311
+ "2072846339": 55,
1312
+ "2072846340": 52,
1313
+ "2072846341": 56,
1314
+ "2072846342": 51,
1315
+ "2072846343": 54,
1316
+ "2072846344": 52,
1317
+ "2072846345": 55
1318
+ },
1319
+ "cursor": 2072846346,
1320
+ "flags": 128,
1321
+ "output_hex": "32313437343833363437",
1322
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1323
+ "value": 2147483647,
1324
+ "width": 1
1325
+ },
1326
+ {
1327
+ "child_memory_bytes": {
1328
+ "2072846336": 50,
1329
+ "2072846337": 49,
1330
+ "2072846338": 52,
1331
+ "2072846339": 55,
1332
+ "2072846340": 52,
1333
+ "2072846341": 56,
1334
+ "2072846342": 51,
1335
+ "2072846343": 54,
1336
+ "2072846344": 52,
1337
+ "2072846345": 55
1338
+ },
1339
+ "cursor": 2072846346,
1340
+ "flags": 0,
1341
+ "output_hex": "32313437343833363437",
1342
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1343
+ "value": 2147483647,
1344
+ "width": 5
1345
+ },
1346
+ {
1347
+ "child_memory_bytes": {
1348
+ "2072846336": 50,
1349
+ "2072846337": 49,
1350
+ "2072846338": 52,
1351
+ "2072846339": 55,
1352
+ "2072846340": 52,
1353
+ "2072846341": 56,
1354
+ "2072846342": 51,
1355
+ "2072846343": 54,
1356
+ "2072846344": 52,
1357
+ "2072846345": 55
1358
+ },
1359
+ "cursor": 2072846346,
1360
+ "flags": 128,
1361
+ "output_hex": "32313437343833363437",
1362
+ "trace_sha256": "f4e60cd59f3752b096798d97306af456018743f7b8799315301af327478f421d",
1363
+ "value": 2147483647,
1364
+ "width": 5
1365
+ },
1366
+ {
1367
+ "child_memory_bytes": {
1368
+ "2072846336": 32,
1369
+ "2072846337": 32,
1370
+ "2072846338": 50,
1371
+ "2072846339": 49,
1372
+ "2072846340": 52,
1373
+ "2072846341": 55,
1374
+ "2072846342": 52,
1375
+ "2072846343": 56,
1376
+ "2072846344": 51,
1377
+ "2072846345": 54,
1378
+ "2072846346": 52,
1379
+ "2072846347": 55
1380
+ },
1381
+ "cursor": 2072846348,
1382
+ "flags": 0,
1383
+ "output_hex": "202032313437343833363437",
1384
+ "trace_sha256": "411332df43bcc40c484e0c8b0f64a862f12f4e5a54314aa52172320c832c5d1b",
1385
+ "value": 2147483647,
1386
+ "width": 12
1387
+ },
1388
+ {
1389
+ "child_memory_bytes": {
1390
+ "2072846336": 48,
1391
+ "2072846337": 48,
1392
+ "2072846338": 50,
1393
+ "2072846339": 49,
1394
+ "2072846340": 52,
1395
+ "2072846341": 55,
1396
+ "2072846342": 52,
1397
+ "2072846343": 56,
1398
+ "2072846344": 51,
1399
+ "2072846345": 54,
1400
+ "2072846346": 52,
1401
+ "2072846347": 55
1402
+ },
1403
+ "cursor": 2072846348,
1404
+ "flags": 128,
1405
+ "output_hex": "303032313437343833363437",
1406
+ "trace_sha256": "fcbd2f36893db47c662ee1ca1044f0f2ecaaf1e9b9a8d230c6190fbf83e9c5b5",
1407
+ "value": 2147483647,
1408
+ "width": 12
1409
+ },
1410
+ {
1411
+ "child_memory_bytes": {
1412
+ "2072846336": 50,
1413
+ "2072846337": 49,
1414
+ "2072846338": 52,
1415
+ "2072846339": 55,
1416
+ "2072846340": 52,
1417
+ "2072846341": 56,
1418
+ "2072846342": 51,
1419
+ "2072846343": 54,
1420
+ "2072846344": 52,
1421
+ "2072846345": 55,
1422
+ "2072846346": 32,
1423
+ "2072846347": 32
1424
+ },
1425
+ "cursor": 2072846348,
1426
+ "flags": 4,
1427
+ "output_hex": "323134373438333634372020",
1428
+ "trace_sha256": "d685b59b02ca39a6053a469d729c6c28dfdbe205fe1f799209dd5e6f6c68b4d6",
1429
+ "value": 2147483647,
1430
+ "width": 12
1431
+ },
1432
+ {
1433
+ "child_memory_bytes": {
1434
+ "2072846336": 50,
1435
+ "2072846337": 49,
1436
+ "2072846338": 52,
1437
+ "2072846339": 55,
1438
+ "2072846340": 52,
1439
+ "2072846341": 56,
1440
+ "2072846342": 51,
1441
+ "2072846343": 54,
1442
+ "2072846344": 52,
1443
+ "2072846345": 55,
1444
+ "2072846346": 48,
1445
+ "2072846347": 48
1446
+ },
1447
+ "cursor": 2072846348,
1448
+ "flags": 132,
1449
+ "output_hex": "323134373438333634373030",
1450
+ "trace_sha256": "707cf447aef47eb9a37f6cbfad94b2a1d2864b5231925d87c074e94f40ae582c",
1451
+ "value": 2147483647,
1452
+ "width": 12
1453
+ }
1454
+ ],
1455
+ "rejections": [
1456
+ {
1457
+ "error": "slice control flow escaped bound",
1458
+ "flags": 4,
1459
+ "value": 123,
1460
+ "width": 1
1461
+ }
1462
+ ],
1463
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1464
+ "source": {
1465
+ "archive": "zUrT43_qvm.pk3",
1466
+ "archive_sha256": "b59bf0c5bedf11d50e0edd220da7eade96de40601e98ae14c54c819047df0796",
1467
+ "member": {
1468
+ "bytes": 983300,
1469
+ "comment_hex": "",
1470
+ "compressed_bytes": 246560,
1471
+ "compression": 8,
1472
+ "crc32": "98ea1768",
1473
+ "create_system": 0,
1474
+ "create_version": 63,
1475
+ "date_time": [
1476
+ 2018,
1477
+ 6,
1478
+ 18,
1479
+ 22,
1480
+ 11,
1481
+ 50
1482
+ ],
1483
+ "directory": false,
1484
+ "entry_index": 2,
1485
+ "external_attr": 32,
1486
+ "extra_hex": "0a0020000000000001001800d1e24e974007d40116dcbf962f1fd20116dcbf962f1fd201",
1487
+ "extract_version": 20,
1488
+ "flags": 0,
1489
+ "header_offset": 221309,
1490
+ "internal_attr": 0,
1491
+ "occurrence": 0,
1492
+ "output": "assets/extracted/zUrT43_qvm.pk3/members/000002/vm/qagame.qvm",
1493
+ "path": "vm/qagame.qvm",
1494
+ "sha256": "a589351dfe517470a1b121dd2164714987d9e4577bf00c6486e1540035d7a79d",
1495
+ "type": "member",
1496
+ "volume": 0
1497
+ }
1498
+ }
1499
+ }
docs/research/qvm-resumer-audit.json CHANGED
@@ -8510,6 +8510,25 @@
8510
  "repeated_calls_opt_in": true,
8511
  "repeated_calls_setting": "literal_true"
8512
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8513
  {
8514
  "backward_conditional_branches": [],
8515
  "calls": [],
@@ -9705,7 +9724,7 @@
9705
  }
9706
  },
9707
  "summary": {
9708
- "call_expressions": 194,
9709
  "files": 150,
9710
  "legacy_expressions": 158,
9711
  "nonliteral_ranges": 24,
 
8510
  "repeated_calls_opt_in": true,
8511
  "repeated_calls_setting": "literal_true"
8512
  },
8513
+ {
8514
+ "backward_conditional_branches": [
8515
+ 37326,
8516
+ 37399,
8517
+ 37439,
8518
+ 37490
8519
+ ],
8520
+ "calls": [],
8521
+ "explicit_result_offsets": null,
8522
+ "helper": "qvm_trace_support.resume",
8523
+ "line": 21,
8524
+ "literal_range": [
8525
+ 37280,
8526
+ 37496
8527
+ ],
8528
+ "path": "scripts/qvm_formatter_support.py",
8529
+ "repeated_calls_opt_in": true,
8530
+ "repeated_calls_setting": "literal_true"
8531
+ },
8532
  {
8533
  "backward_conditional_branches": [],
8534
  "calls": [],
 
9724
  }
9725
  },
9726
  "summary": {
9727
+ "call_expressions": 195,
9728
  "files": 150,
9729
  "legacy_expressions": 158,
9730
  "nonliteral_ranges": 24,
scripts/analyze_qvm_format_integer.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ import itertools
3
+ from pathlib import Path
4
+ from qvm_research_support import source
5
+ from qvm_formatter_support import I,integer_field
6
+ from analyze_qvm import write_json
7
+ P=I+0x1000;OUT=P+0x1000
8
+
9
+ def main():
10
+ q,raw,h,ins=source();rows=[];errors=[]
11
+ for value,width,flags in itertools.product([-2147483648,-123,-1,0,1,123,2147483647],[0,1,5,12],[0,128,4,132]):
12
+ if flags&4 and width<len(str(value)):continue
13
+ m,_,e=integer_field(ins,{P:OUT},{8:P,12:value,16:width,20:flags},{});rows.append({'value':value,'width':width,'flags':flags,**e})
14
+ try:integer_field(ins,{P:OUT},{8:P,12:123,16:1,20:4},{})
15
+ except ValueError as e:errors.append({'value':123,'width':1,'flags':4,'error':str(e)})
16
+ write_json(Path('docs/research/qvm-format-integer.json'),{'source':q['source'],'sha256':q['sha256'],'probes':rows,'rejections':errors,'limits':'Actual37279 decimal emitter. Source zero padding precedes a negative sign; wrapping negation of INT_MIN leaves negative remainder digits, producing punctuation rather than ordinary decimal. Left justification narrower than digits fails bounded execution; no unbounded/native undefined-behavior claim.'})
17
+ if __name__=='__main__':main()
scripts/qvm_formatter_support.py CHANGED
@@ -13,3 +13,11 @@ def string_field(ins,m,args,b):
13
  m,e=resume(ins,37769,37912,m,T,handlers={36038:strlen},byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,byte_handlers=True,capture_byte_memory=True,limit=32768)
14
  after=int.from_bytes(read_bytes(m,e['byte_memory'],args[8],4),'little');data=read_bytes(m,e['byte_memory'],before,after-before)
15
  return m,0,{'child_memory_bytes':{before+j:v for j,v in enumerate(data)},'output_hex':data.hex(),'cursor':after,'trace_sha256':e['trace_sha256']}
 
 
 
 
 
 
 
 
 
13
  m,e=resume(ins,37769,37912,m,T,handlers={36038:strlen},byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,byte_handlers=True,capture_byte_memory=True,limit=32768)
14
  after=int.from_bytes(read_bytes(m,e['byte_memory'],args[8],4),'little');data=read_bytes(m,e['byte_memory'],before,after-before)
15
  return m,0,{'child_memory_bytes':{before+j:v for j,v in enumerate(data)},'output_hex':data.hex(),'cursor':after,'trace_sha256':e['trace_sha256']}
16
+
17
+ I=T+0x10000
18
+
19
+ def integer_field(ins,m,args,b):
20
+ before=int.from_bytes(read_bytes(m,b,args[8],4),'little');m,b=frame_args(m,b,{I+64+o:v for o,v in args.items()})
21
+ m,e=resume(ins,37280,37496,m,I,byte_inputs=b,repeated_calls=True,sync_child_words=True,coherent_memory=True,capture_byte_memory=True,limit=32768)
22
+ after=int.from_bytes(read_bytes(m,e['byte_memory'],args[8],4),'little');data=read_bytes(m,e['byte_memory'],before,after-before)
23
+ return m,0,{'child_memory_bytes':{before+j:v for j,v in enumerate(data)},'output_hex':data.hex(),'cursor':after,'trace_sha256':e['trace_sha256']}
scripts/test_qvm_format_integer.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json,unittest
2
+ from pathlib import Path
3
+
4
+ def decimal(value):
5
+ x=abs(value) if value!=-2147483648 else value;digits=[]
6
+ while True:
7
+ q=abs(x)//10*(-1 if x<0 else 1);digits.append((48+x-q*10)&255);x=q
8
+ if x==0:break
9
+ return (b'-' if value<0 else b'')+bytes(reversed(digits))
10
+
11
+ def rendered(value,width,flags):
12
+ digits=decimal(value);padding=(b'0' if flags&128 else b' ')*max(0,width-len(digits));return digits+padding if flags&4 else padding+digits
13
+ class FormatIntegerTests(unittest.TestCase):
14
+ def test_independent_wrapping_remainders_and_padding(self):
15
+ r=json.loads(Path('docs/research/qvm-format-integer.json').read_text());self.assertGreater(len(r['probes']),70)
16
+ for p in r['probes']:self.assertEqual(p['output_hex'],rendered(p['value'],p['width'],p['flags']).hex())
17
+ def test_nonstandard_negative_zero_padding_and_minimum_witnesses(self):
18
+ ps=json.loads(Path('docs/research/qvm-format-integer.json').read_text())['probes'];p=next(p for p in ps if p['value']==-123 and p['width']==5 and p['flags']==128);self.assertEqual(bytes.fromhex(p['output_hex']),b'0-123');self.assertTrue(all(bytes.fromhex(p['output_hex']).strip()!=b'-2147483648' for p in ps if p['value']==-2147483648))
19
+ def test_narrow_left_padding_rejects_at_budget(self):
20
+ r=json.loads(Path('docs/research/qvm-format-integer.json').read_text());self.assertEqual(len(r['rejections']),1);self.assertIn('bound',r['rejections'][0]['error'])
21
+ if __name__=='__main__':unittest.main()
xtask/checks.tsv CHANGED
@@ -1975,3 +1975,7 @@ edge docs/research/qvm-format-string.json scripts/test_qvm_format_string.py
1975
  group format-string scripts/analyze_qvm_format_string.py
1976
  edge scripts/analyze_qvm_format_string.py scripts/analyze_qvm_resumer_audit.py
1977
  edge scripts/qvm_formatter_support.py scripts/analyze_qvm_resumer_audit.py
 
 
 
 
 
1975
  group format-string scripts/analyze_qvm_format_string.py
1976
  edge scripts/analyze_qvm_format_string.py scripts/analyze_qvm_resumer_audit.py
1977
  edge scripts/qvm_formatter_support.py scripts/analyze_qvm_resumer_audit.py
1978
+ report scripts/analyze_qvm_format_integer.py docs/research/qvm-format-integer.json
1979
+ edge docs/research/qvm-format-integer.json scripts/test_qvm_format_integer.py
1980
+ group format-integer scripts/analyze_qvm_format_integer.py
1981
+ edge scripts/analyze_qvm_format_integer.py scripts/analyze_qvm_resumer_audit.py