Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/om/allen-scene/scene.om # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / om / allen-scene / scene.om` 1116 lines ยท 33687 bytes Raw Blame History 1 note Browser controller for native Allen. See provenance.txt for temporary C-WASM boundary. 2 note Text literals are emitted verbatim; public JS is never edited. 3 global out uchar 16384 4 global used ulong 1 5 fn flush to void 6 off = ulong 0 7 while lt off get used 0 8 n = write int 1 out off sub get used 0 off 9 if le n 0 10 exit 2 11 end 12 off = add off ulong n 13 end 14 put used 0 0 15 end 16 fn byteput c uchar to void 17 if eq get used 0 len out 18 flush 19 end 20 put out get used 0 c 21 put used 0 add get used 0 1 22 end 23 text j0 "/* Generated from om/allen-scene/scene.om by pinned seeded Omega.\n" 24 text j1 " * Controller: Omega-generated JavaScript. Rendering/audio: unchanged native C,\n" 25 text j2 " * aien-dev/aienux@`da55660ea7337f2b6a42095fcd1fb6ddebe1cc7c`, compiled to WASM.\n" 26 text j3 " * This source pin was staged, not hardware-confirmed by the available report.\n" 27 text j4 " * Web opening reuses native dusk; enter('birth') is the original binary merger.\n" 28 text j5 " * Catalogue/licences and native dependency boundary: om/allen-scene/provenance.txt.\n" 29 text j6 " * WolframLanguageEvaluator: 1000/60 -> 50/3 ms; (1000/60)/2 -> 25/3 ms;\n" 30 text j7 " * 48000 (12300-11360)/1000 -> 45120 frames (native chirp non-silent window).\n" 31 text j8 " */\n" 32 text j9 "(() => {\n" 33 text j10 " 'use strict';\n" 34 text j11 " const PIN = '`da55660ea7337f2b6a42095fcd1fb6ddebe1cc7c`';\n" 35 text j12 " const mounted = new WeakMap();\n" 36 text j13 " let compiled;\n" 37 text j14 " function module() {\n" 38 text j15 " if (!compiled) compiled = fetch('/allen/scene.wasm', {credentials:'omit'})\n" 39 text j16 " .then(response => { if (!response.ok) throw new Error('Native scene unavailable'); return response.arrayBuffer(); })\n" 40 text j17 " .then(bytes => WebAssembly.compile(bytes)).catch(error => { compiled = null; throw error; });\n" 41 text j18 " return compiled;\n" 42 text j19 " }\n" 43 text j20 " function mount(canvas, options = {}) {\n" 44 text j21 " if (!(canvas instanceof HTMLCanvasElement)) throw new TypeError('AllenScene requires a canvas');\n" 45 text j22 " if (mounted.has(canvas)) return mounted.get(canvas);\n" 46 text j23 " const compact = Boolean(options.compact), interactive = Boolean(options.interactive) && !compact;\n const opening = options.opening === undefined ? (compact ? 'idle' : 'dusk') : options.opening;\n if(opening !== 'idle' && opening !== 'dusk' && opening !== 'birth') throw new RangeError('Invalid Allen scene opening');\n" 47 text j24 " const ctx = canvas.getContext('2d', {alpha:false});\n" 48 text j25 " if (!ctx) throw new Error('Canvas rendering unavailable');\n" 49 text j26 " const motion = matchMedia('(prefers-reduced-motion: reduce)');\n" 50 text j27 " const cleanup = [], letters = Array.from({length:64}, () => ({char:0,start:0,slot:0}));\n" 51 text j28 " const wordTimes = new Float64Array(256);\n" 52 text j29 " let ex, image, width = 0, height = 0, disposed = false, failed = false;\n" 53 text j30 " let raf = 0, lastWall = 0, clock = 20000, kind = 0, modeValue = 0;\n" 54 text j31 " let visible = true, reduced = motion.matches, dirty = true, resizePending = true;\n const connection = typeof navigator === 'object' ? navigator.connection : null;\n let calm = options.calm === undefined ? Boolean(connection && connection.saveData) : Boolean(options.calm);\n let quality = 0, overBudget = 0, underBudget = 0, qualityHold = 0, samples = 0;\n const renderScales = [1, 3/4, 9/16, 9/16];\n const qualityNames = ['full-60','balanced-60','small-60','small-30'];\n const frameBudget = 1000/60;\n // Wolfram: 1000/60 -> 50/3 ms; budget/2 -> 25/3; 1280*{1,3/4,9/16} -> {1280,960,720}.\n function still() { return reduced || compact || calm; }\n function qualityLabel() { canvas.dataset.sceneQuality = reduced ? 'reduced' : compact ? 'compact' : calm ? 'calm' : qualityNames[quality]; }\n function measureDraw(cost) {\n samples++;\n if(samples % 60 === 0) canvas.dataset.sceneDrawMs=String(cost);\n if(qualityHold) { qualityHold--; return; }\n overBudget=cost>frameBudget?overBudget+1:0;\n underBudget=cost=8?Math.min(3,quality+1):underBudget>=180?Math.max(0,quality-1):quality;\n if(next!==quality) {\n quality=next;qualityHold=60;overBudget=underBudget=0;\n resizePending=dirty=true;canvas.dataset.sceneDrawMs=String(cost);qualityLabel();\n }\n }\n" 55 text j32 " let letterHead = 0, wordRead = 0, wordWrite = 0, lastWord = -1000, speakUntil = 0, keyUntil = 0;\n" 56 text j33 " let ra = `113697000`, dec = -`72757000`, fov = 80000, viewPending = false;\n" 57 text j34 " let dragId = null, dragX = 0, dragY = 0, pinchDistance = 0;\n const touches = [{id:null,x:0,y:0},{id:null,x:0,y:0}];\n" 58 text j35 " let ownsAudio = false, completeSent = false, resolveSize, rejectSize;\n" 59 text j36 " let pendingEnter = compact || opening === 'idle' ? 0 : opening === 'birth' ? 2 : 1, pendingStatic = false;\n" 60 text j37 " canvas.dataset.sceneSource = PIN;\n" 61 text j38 " canvas.dataset.sceneEngine = 'loading';\n qualityLabel();\n" 62 text j39 " function listen(target, name, fn, opts) {\n" 63 text j40 " target.addEventListener(name, fn, opts);\n" 64 text j41 " cleanup.push(() => target.removeEventListener(name, fn, opts));\n" 65 text j42 " }\n" 66 text j43 " function stopAudio() {\n" 67 text j44 " if (ownsAudio && window.AllenAudio) window.AllenAudio.stop();\n" 68 text j45 " ownsAudio=false;\n" 69 text j46 " }\n" 70 text j47 " function awake() { return !disposed && !failed && !document.hidden && visible; }\n" 71 text j48 " function request() {\n" 72 text j49 " if (!raf && ex && awake() && (!still() || dirty)) raf = requestAnimationFrame(tick);\n" 73 text j50 " }\n" 74 text j51 " function size() {\n" 75 text j52 " const box = canvas.getBoundingClientRect();\n" 76 text j53 " if (box.width <= 0 || box.height <= 0) return false;\n" 77 text j54 " // Policy bound, not a physical-resolution claim. Same aspect ratio, native design scaling.\n" 78 text j55 " const scale = Math.min(devicePixelRatio || 1, 1280 / Math.max(box.width,box.height))*renderScales[quality];\n" 79 text j56 " const w = Math.max(64,Math.round(box.width*scale)), h = Math.max(64,Math.round(box.height*scale));\n" 80 text j57 " resizePending = false;\n" 81 text j58 " if (w === width && h === height) return true;\n" 82 text j59 " width=w; height=h; canvas.width=w; canvas.height=h;\n" 83 text j60 " if (!ex.scene_init(w,h,compact?1:0)) throw new Error('Native scene size refused');\n" 84 text j61 " image = new ImageData(new Uint8ClampedArray(ex.memory.buffer,ex.scene_pixels(),w*h*4),w,h);\n" 85 text j62 " ex.scene_enter(kind);\n" 86 text j63 " // Resize keeps phase and mode but does not manufacture the old frame history.\n" 87 text j64 " ex.scene_step(Math.floor(clock),modeValue,0);\n" 88 text j65 " viewPending=true;\n if(resolveSize) {resolveSize();resolveSize=null;rejectSize=null;}\n" 89 text j66 " return true;\n" 90 text j67 " }\n" 91 text j68 " function reset(kindValue) {\n" 92 text j69 " kind=kindValue; clock=kind===0?20000:0; lastWall=0;completeSent=false;\n" 93 text j70 " wordRead=wordWrite=0; lastWord=-1000; speakUntil=keyUntil=0; modeValue=0;\n" 94 text j71 " for (const letter of letters) letter.char=0;\n" 95 text j72 " stopAudio();\n" 96 text j73 " if (ex && width) ex.scene_enter(kind);\n" 97 text j74 " dirty=true; request();\n" 98 text j75 " }\n" 99 text j76 " function render() {\n" 100 text j77 " if (!ex || !awake()) return;\n" 101 text j78 " if (resizePending && !size()) return;\n" 102 text j79 " if (!image) return;\n" 103 text j80 " if (viewPending && !(kind===1 && clock<4200)) {\n" 104 text j81 " if (!ex.scene_view(Math.round(ra),Math.round(dec),Math.round(fov))) throw new Error('Native sky view refused');\n" 105 text j82 " viewPending=false;\n" 106 text j83 " }\n" 107 text j84 " const time=Math.floor(clock);\n" 108 text j85 " while(wordRead!==wordWrite && wordTimes[wordRead]<=clock) {\n" 109 text j86 " lastWord=wordTimes[wordRead];ex.scene_word(Math.floor(lastWord));wordRead=(wordRead+1)%wordTimes.length;\n" 110 text j87 " }\n" 111 text j88 " let currentMode=modeValue;\n" 112 text j89 " if(clock=0?ex.scene_voice(time,Math.floor(lastWord)):0;\n" 117 text j94 " const shimmer=clock=1) {letter.char=0;continue;}\n" 124 text j101 " // Web enhancement: native glyphs lift from input to Allen. No HTML/text injection.\n" 125 text j102 " const ease=1-(1-u)*(1-u)*(1-u);\n" 126 text j103 " const x=width/2+(letter.slot-4)*width/90*(1-ease);\n" 127 text j104 " const y=height*(0.86+(0.4-0.86)*ease);\n" 128 text j105 " ex.scene_glyph(letter.char,Math.round(x),Math.round(y),Math.round(256*(1-u)));\n" 129 text j106 " }\n" 130 text j107 " ctx.putImageData(image,0,0);\n" 131 text j108 " canvas.dataset.scenePhase=kind===1 && clock<4200?'tube':kind===2 && clock<12300?'merger':clock<(kind===1?7200:15300)?'forming':'presence';\n" 132 text j109 " canvas.dataset.sceneTime=String(time);\n" 133 text j110 " canvas.dataset.sceneEngine='native-wasm';\n" 134 text j111 " dirty=false;\n if(!completeSent && (kind===0 || clock>=(kind===1?7200:15300))) {\n completeSent=true;\n canvas.dispatchEvent(new CustomEvent('allen-scene-complete',{bubbles:true,detail:{kind:kind===2?'birth':kind===1?'dusk':'idle',time}}));\n }\n return true;\n" 135 text j112 " }\n" 136 text j113 " function error(err) {\n" 137 text j114 " failed=true;cancelAnimationFrame(raf);raf=0;stopAudio();\n if(rejectSize) {rejectSize(err);resolveSize=null;rejectSize=null;}\n" 138 text j115 " canvas.dataset.sceneEngine='unavailable';\n" 139 text j116 " canvas.dispatchEvent(new CustomEvent('allen-scene-error',{bubbles:true,detail:{message:String(err.message||err)}}));\n" 140 text j117 " }\n" 141 text j118 " function tick(wall) {\n" 142 text j119 " raf=0;\n" 143 text j120 " if(!awake()) {lastWall=0;return;}\n" 144 text j121 " const dt=lastWall?wall-lastWall:0;\n" 145 text j122 " // Lowest level skips alternate 60 Hz callbacks; 25 ms tolerates timestamp jitter around 50/3 and 100/3 ms.\n if(!still() && quality===3 && dt<25 && !dirty) {request();return;}\n" 146 text j123 " lastWall=wall;\n" 147 text j124 " if(!still()) clock+=dt; // source clock advances; native integrators bound their own catch-up\n" 148 text j125 " const sample=!still() && !resizePending && !viewPending;\n const began=sample?performance.now():0;\n let drawn=false;\n try { drawn=render(); } catch(err) { error(err); }\n if(sample && drawn) measureDraw(performance.now()-began);\n" 149 text j126 " if(drawn && !still()) request();\n" 150 text j127 " }\n" 151 text j128 " function motionChanged() {\n" 152 text j129 " reduced=motion.matches;lastWall=0;cancelAnimationFrame(raf);raf=0;stopAudio();\n" 153 text j130 " if(still()) { reset(0); pendingStatic=true; }\n overBudget=underBudget=0;qualityLabel();\n" 154 text j131 " dirty=true;request();\n" 155 text j132 " }\n" 156 text j133 " function visibility() {\n" 157 text j134 " lastWall=0;\n" 158 text j135 " if(!awake()) {cancelAnimationFrame(raf);raf=0;if(ownsAudio && window.AllenAudio) window.AllenAudio.pause();}\n" 159 text j136 " else {if(ownsAudio && !still() && window.AllenAudio) void window.AllenAudio.resume();overBudget=underBudget=0;dirty=true;request();}\n" 160 text j137 " }\n" 161 text j138 " function changeView(dx,dy,zoom) {\n" 162 text j139 " if(!interactive || kind===1 && clock<4200) return;\n" 163 text j140 " ra=((ra+dx)%`360000000`+`360000000`)%`360000000`;\n" 164 text j141 " dec=Math.max(-`89000000`,Math.min(`89000000`,dec+dy));\n" 165 text j142 " fov=Math.max(10000,Math.min(120000,fov*zoom));\n" 166 text j143 " viewPending=dirty=true;request();\n" 167 text j144 " }\n" 168 text j145 " function home() {ra=`113697000`;dec=-`72757000`;fov=80000;viewPending=dirty=true;request();}\n" 169 text j146 " const api = {\n" 170 text j147 " key(text) {\n" 171 text j148 " if(disposed) return;\n" 172 text j149 " text=String(text).slice(-64);keyUntil=clock+4000;\n" 173 text j150 " if(ex) ex.scene_key(Math.floor(clock));\n" 174 text j151 " if(!reduced && !compact) for(let i=0;i126) continue;\n" 176 text j153 " const letter=letters[letterHead];letterHead=(letterHead+1)%letters.length;\n" 177 text j154 " letter.char=c;letter.start=clock+i*35;letter.slot=i%9;\n" 178 text j155 " }\n" 179 text j156 " dirty=true;request();\n" 180 text j157 " },\n" 181 text j158 " speak(text) {\n" 182 text j159 " if(disposed) return;\n" 183 text j160 " text=String(text).slice(0,4096);\n" 184 text j161 " let offset=0;const start=Math.max(clock,speakUntil-300);\n" 185 text j162 " for(let i=0;i`86400000`) throw new RangeError('Scene time outside one day');\n" 213 text j190 " cancelAnimationFrame(raf);raf=0;lastWall=0;\n" 214 text j191 " if(reduced) clock=20000;else clock=ms;\n" 215 text j192 " dirty=true;\n" 216 text j193 " if(ex) {try {render();} catch(err) {error(err);}}\n" 217 text j194 " },\n" 218 text j195 " destroy() {\n" 219 text j196 " if(disposed) return;\n" 220 text j197 " disposed=true;cancelAnimationFrame(raf);raf=0;stopAudio();\n if(rejectSize) {rejectSize(new Error('Scene destroyed before initialization'));resolveSize=null;rejectSize=null;}\n" 221 text j198 " for(const fn of cleanup) fn();\n" 222 text j199 " mounted.delete(canvas);image=null;ex=null;\n" 223 text j200 " canvas.dataset.sceneEngine='destroyed';\n" 224 text j201 " }\n" 225 text j202 " };\n" 226 text j203 " mounted.set(canvas,api);\n" 227 text j204 " listen(document,'visibilitychange',visibility);\n" 228 text j205 " listen(motion,'change',motionChanged);\n" 229 text j206 " if(typeof ResizeObserver==='function') {\n" 230 text j207 " const resize=new ResizeObserver(() => {resizePending=dirty=true;request();});resize.observe(canvas);cleanup.push(() => resize.disconnect());\n" 231 text j208 " } else listen(window,'resize',() => {resizePending=dirty=true;request();});\n" 232 text j209 " if(typeof IntersectionObserver==='function') {\n" 233 text j210 " const observer=new IntersectionObserver(entries => {visible=entries[0].isIntersecting;visibility();});observer.observe(canvas);cleanup.push(() => observer.disconnect());\n" 234 text j211 " }\n" 235 text j212 " if(interactive) {\n" 236 text j213 " const oldTouch=canvas.style.touchAction;canvas.style.touchAction='pinch-zoom';cleanup.push(() => {canvas.style.touchAction=oldTouch;});\n" 237 text j214 " listen(canvas,'pointerdown',event => {\n" 238 text j215 " if(event.button!==0) return;\n if(event.pointerType==='touch') {\n const slot=touches.find(touch => touch.id===null);\n if(!slot) return;\n slot.id=event.pointerId;slot.x=event.clientX;slot.y=event.clientY;\n if(touches[0].id!==null && touches[1].id!==null) pinchDistance=Math.hypot(touches[0].x-touches[1].x,touches[0].y-touches[1].y);\n }\n" 239 text j216 " dragId=event.pointerId;dragX=event.clientX;dragY=event.clientY;\n" 240 text j217 " canvas.setPointerCapture(dragId);canvas.focus({preventScroll:true});\n" 241 text j218 " });\n" 242 text j219 " listen(canvas,'pointermove',event => {\n" 243 text j220 " if(event.pointerType==='touch') {\n const touch=touches.find(touch => touch.id===event.pointerId);\n if(!touch) return;\n touch.x=event.clientX;touch.y=event.clientY;\n if(touches[0].id!==null && touches[1].id!==null) {\n const distance=Math.hypot(touches[0].x-touches[1].x,touches[0].y-touches[1].y);\n if(distance>0 && pinchDistance>0) changeView(0,0,pinchDistance/distance);\n pinchDistance=distance;return;\n }\n }\n if(event.pointerId!==dragId) return;\n" 244 text j221 " const box=canvas.getBoundingClientRect();\n" 245 text j222 " changeView(-(event.clientX-dragX)*fov*1000/Math.max(1,box.width),(event.clientY-dragY)*fov*1000/Math.max(1,box.width),1);\n" 246 text j223 " dragX=event.clientX;dragY=event.clientY;\n" 247 text j224 " });\n" 248 text j225 " const release=event => {\n for(const touch of touches) if(touch.id===event.pointerId) touch.id=null;\n pinchDistance=0;\n if(event.pointerId===dragId) {\n dragId=null;\n if(canvas.hasPointerCapture(event.pointerId)) canvas.releasePointerCapture(event.pointerId);\n const remaining=touches.find(touch => touch.id!==null);\n if(remaining) {dragId=remaining.id;dragX=remaining.x;dragY=remaining.y;}\n }\n };\n" 249 text j226 " listen(canvas,'pointerup',release);listen(canvas,'pointercancel',release);listen(canvas,'lostpointercapture',release);\n" 250 text j227 " listen(canvas,'wheel',event => {if(event.ctrlKey || event.metaKey) return;event.preventDefault();changeView(0,0,Math.pow(2,Math.max(-600,Math.min(600,event.deltaY))/600));},{passive:false});\n" 251 text j228 " listen(canvas,'keydown',event => {\n" 252 text j229 " const step=fov*1000/20;\n" 253 text j230 " switch(event.key) {\n" 254 text j231 " case 'ArrowLeft':changeView(-step,0,1);break;\n" 255 text j232 " case 'ArrowRight':changeView(step,0,1);break;\n" 256 text j233 " case 'ArrowUp':changeView(0,step,1);break;\n" 257 text j234 " case 'ArrowDown':changeView(0,-step,1);break;\n" 258 text j235 " case '+':case '=':changeView(0,0,1/1.1);break;\n" 259 text j236 " case '-':changeView(0,0,1.1);break;\n" 260 text j237 " case 'Home':home();break;\n" 261 text j238 " default:return;\n" 262 text j239 " }\n" 263 text j240 " event.preventDefault();\n" 264 text j241 " });\n" 265 text j242 " }\n" 266 text j243 " api.ready=module().then(module => WebAssembly.instantiate(module,{})).then(async instance => {\n" 267 text j244 " if(disposed) return api;\n" 268 text j245 " ex=instance.exports;\n" 269 text j246 " const initial=still()?0:pendingEnter===null?0:pendingEnter;\n" 270 text j247 " // Preserve an audio gesture made before compilation completes.\n" 271 text j248 " const audioOwner=ownsAudio;ownsAudio=false;reset(initial);ownsAudio=audioOwner;\n" 272 text j249 " pendingEnter=null;\n" 273 text j250 " if(!size()) await new Promise((resolve,reject) => {resolveSize=resolve;rejectSize=reject;});\n if(disposed) return api;\n" 274 text j251 " if(still() || pendingStatic) {clock=20000;ex.scene_step(20000,0,0);pendingStatic=false;}\n" 275 text j252 " render();request();\n canvas.dispatchEvent(new CustomEvent('allen-scene-initialized',{bubbles:true,detail:{source:PIN}}));\n" 276 text j253 " return api;\n" 277 text j254 " }).catch(err => {if(!disposed) error(err);throw err;});\n" 278 text j255 " // Expose the rejection to callers while avoiding an unhandled rejection for decorative mounts.\n" 279 text j256 " api.ready.catch(() => {});\n" 280 text j257 " return api;\n" 281 text j258 " }\n" 282 text j259 " window.AllenScene=Object.freeze({mount,source:PIN});\n" 283 text j260 " document.dispatchEvent(new CustomEvent('allen-scene-ready'));\n" 284 text j261 "})();\n" 285 fn part0 to void 286 for i ulong len j0 287 byteput get j0 i 288 end 289 for i ulong len j1 290 byteput get j1 i 291 end 292 for i ulong len j2 293 byteput get j2 i 294 end 295 for i ulong len j3 296 byteput get j3 i 297 end 298 for i ulong len j4 299 byteput get j4 i 300 end 301 for i ulong len j5 302 byteput get j5 i 303 end 304 for i ulong len j6 305 byteput get j6 i 306 end 307 for i ulong len j7 308 byteput get j7 i 309 end 310 for i ulong len j8 311 byteput get j8 i 312 end 313 for i ulong len j9 314 byteput get j9 i 315 end 316 for i ulong len j10 317 byteput get j10 i 318 end 319 for i ulong len j11 320 byteput get j11 i 321 end 322 for i ulong len j12 323 byteput get j12 i 324 end 325 for i ulong len j13 326 byteput get j13 i 327 end 328 for i ulong len j14 329 byteput get j14 i 330 end 331 for i ulong len j15 332 byteput get j15 i 333 end 334 for i ulong len j16 335 byteput get j16 i 336 end 337 for i ulong len j17 338 byteput get j17 i 339 end 340 for i ulong len j18 341 byteput get j18 i 342 end 343 for i ulong len j19 344 byteput get j19 i 345 end 346 end 347 fn part20 to void 348 for i ulong len j20 349 byteput get j20 i 350 end 351 for i ulong len j21 352 byteput get j21 i 353 end 354 for i ulong len j22 355 byteput get j22 i 356 end 357 for i ulong len j23 358 byteput get j23 i 359 end 360 for i ulong len j24 361 byteput get j24 i 362 end 363 for i ulong len j25 364 byteput get j25 i 365 end 366 for i ulong len j26 367 byteput get j26 i 368 end 369 for i ulong len j27 370 byteput get j27 i 371 end 372 for i ulong len j28 373 byteput get j28 i 374 end 375 for i ulong len j29 376 byteput get j29 i 377 end 378 for i ulong len j30 379 byteput get j30 i 380 end 381 for i ulong len j31 382 byteput get j31 i 383 end 384 for i ulong len j32 385 byteput get j32 i 386 end 387 for i ulong len j33 388 byteput get j33 i 389 end 390 for i ulong len j34 391 byteput get j34 i 392 end 393 for i ulong len j35 394 byteput get j35 i 395 end 396 for i ulong len j36 397 byteput get j36 i 398 end 399 for i ulong len j37 400 byteput get j37 i 401 end 402 for i ulong len j38 403 byteput get j38 i 404 end 405 for i ulong len j39 406 byteput get j39 i 407 end 408 end 409 fn part40 to void 410 for i ulong len j40 411 byteput get j40 i 412 end 413 for i ulong len j41 414 byteput get j41 i 415 end 416 for i ulong len j42 417 byteput get j42 i 418 end 419 for i ulong len j43 420 byteput get j43 i 421 end 422 for i ulong len j44 423 byteput get j44 i 424 end 425 for i ulong len j45 426 byteput get j45 i 427 end 428 for i ulong len j46 429 byteput get j46 i 430 end 431 for i ulong len j47 432 byteput get j47 i 433 end 434 for i ulong len j48 435 byteput get j48 i 436 end 437 for i ulong len j49 438 byteput get j49 i 439 end 440 for i ulong len j50 441 byteput get j50 i 442 end 443 for i ulong len j51 444 byteput get j51 i 445 end 446 for i ulong len j52 447 byteput get j52 i 448 end 449 for i ulong len j53 450 byteput get j53 i 451 end 452 for i ulong len j54 453 byteput get j54 i 454 end 455 for i ulong len j55 456 byteput get j55 i 457 end 458 for i ulong len j56 459 byteput get j56 i 460 end 461 for i ulong len j57 462 byteput get j57 i 463 end 464 for i ulong len j58 465 byteput get j58 i 466 end 467 for i ulong len j59 468 byteput get j59 i 469 end 470 end 471 fn part60 to void 472 for i ulong len j60 473 byteput get j60 i 474 end 475 for i ulong len j61 476 byteput get j61 i 477 end 478 for i ulong len j62 479 byteput get j62 i 480 end 481 for i ulong len j63 482 byteput get j63 i 483 end 484 for i ulong len j64 485 byteput get j64 i 486 end 487 for i ulong len j65 488 byteput get j65 i 489 end 490 for i ulong len j66 491 byteput get j66 i 492 end 493 for i ulong len j67 494 byteput get j67 i 495 end 496 for i ulong len j68 497 byteput get j68 i 498 end 499 for i ulong len j69 500 byteput get j69 i 501 end 502 for i ulong len j70 503 byteput get j70 i 504 end 505 for i ulong len j71 506 byteput get j71 i 507 end 508 for i ulong len j72 509 byteput get j72 i 510 end 511 for i ulong len j73 512 byteput get j73 i 513 end 514 for i ulong len j74 515 byteput get j74 i 516 end 517 for i ulong len j75 518 byteput get j75 i 519 end 520 for i ulong len j76 521 byteput get j76 i 522 end 523 for i ulong len j77 524 byteput get j77 i 525 end 526 for i ulong len j78 527 byteput get j78 i 528 end 529 for i ulong len j79 530 byteput get j79 i 531 end 532 end 533 fn part80 to void 534 for i ulong len j80 535 byteput get j80 i 536 end 537 for i ulong len j81 538 byteput get j81 i 539 end 540 for i ulong len j82 541 byteput get j82 i 542 end 543 for i ulong len j83 544 byteput get j83 i 545 end 546 for i ulong len j84 547 byteput get j84 i 548 end 549 for i ulong len j85 550 byteput get j85 i 551 end 552 for i ulong len j86 553 byteput get j86 i 554 end 555 for i ulong len j87 556 byteput get j87 i 557 end 558 for i ulong len j88 559 byteput get j88 i 560 end 561 for i ulong len j89 562 byteput get j89 i 563 end 564 for i ulong len j90 565 byteput get j90 i 566 end 567 for i ulong len j91 568 byteput get j91 i 569 end 570 for i ulong len j92 571 byteput get j92 i 572 end 573 for i ulong len j93 574 byteput get j93 i 575 end 576 for i ulong len j94 577 byteput get j94 i 578 end 579 for i ulong len j95 580 byteput get j95 i 581 end 582 for i ulong len j96 583 byteput get j96 i 584 end 585 for i ulong len j97 586 byteput get j97 i 587 end 588 for i ulong len j98 589 byteput get j98 i 590 end 591 for i ulong len j99 592 byteput get j99 i 593 end 594 end 595 fn part100 to void 596 for i ulong len j100 597 byteput get j100 i 598 end 599 for i ulong len j101 600 byteput get j101 i 601 end 602 for i ulong len j102 603 byteput get j102 i 604 end 605 for i ulong len j103 606 byteput get j103 i 607 end 608 for i ulong len j104 609 byteput get j104 i 610 end 611 for i ulong len j105 612 byteput get j105 i 613 end 614 for i ulong len j106 615 byteput get j106 i 616 end 617 for i ulong len j107 618 byteput get j107 i 619 end 620 for i ulong len j108 621 byteput get j108 i 622 end 623 for i ulong len j109 624 byteput get j109 i 625 end 626 for i ulong len j110 627 byteput get j110 i 628 end 629 for i ulong len j111 630 byteput get j111 i 631 end 632 for i ulong len j112 633 byteput get j112 i 634 end 635 for i ulong len j113 636 byteput get j113 i 637 end 638 for i ulong len j114 639 byteput get j114 i 640 end 641 for i ulong len j115 642 byteput get j115 i 643 end 644 for i ulong len j116 645 byteput get j116 i 646 end 647 for i ulong len j117 648 byteput get j117 i 649 end 650 for i ulong len j118 651 byteput get j118 i 652 end 653 for i ulong len j119 654 byteput get j119 i 655 end 656 end 657 fn part120 to void 658 for i ulong len j120 659 byteput get j120 i 660 end 661 for i ulong len j121 662 byteput get j121 i 663 end 664 for i ulong len j122 665 byteput get j122 i 666 end 667 for i ulong len j123 668 byteput get j123 i 669 end 670 for i ulong len j124 671 byteput get j124 i 672 end 673 for i ulong len j125 674 byteput get j125 i 675 end 676 for i ulong len j126 677 byteput get j126 i 678 end 679 for i ulong len j127 680 byteput get j127 i 681 end 682 for i ulong len j128 683 byteput get j128 i 684 end 685 for i ulong len j129 686 byteput get j129 i 687 end 688 for i ulong len j130 689 byteput get j130 i 690 end 691 for i ulong len j131 692 byteput get j131 i 693 end 694 for i ulong len j132 695 byteput get j132 i 696 end 697 for i ulong len j133 698 byteput get j133 i 699 end 700 for i ulong len j134 701 byteput get j134 i 702 end 703 for i ulong len j135 704 byteput get j135 i 705 end 706 for i ulong len j136 707 byteput get j136 i 708 end 709 for i ulong len j137 710 byteput get j137 i 711 end 712 for i ulong len j138 713 byteput get j138 i 714 end 715 for i ulong len j139 716 byteput get j139 i 717 end 718 end 719 fn part140 to void 720 for i ulong len j140 721 byteput get j140 i 722 end 723 for i ulong len j141 724 byteput get j141 i 725 end 726 for i ulong len j142 727 byteput get j142 i 728 end 729 for i ulong len j143 730 byteput get j143 i 731 end 732 for i ulong len j144 733 byteput get j144 i 734 end 735 for i ulong len j145 736 byteput get j145 i 737 end 738 for i ulong len j146 739 byteput get j146 i 740 end 741 for i ulong len j147 742 byteput get j147 i 743 end 744 for i ulong len j148 745 byteput get j148 i 746 end 747 for i ulong len j149 748 byteput get j149 i 749 end 750 for i ulong len j150 751 byteput get j150 i 752 end 753 for i ulong len j151 754 byteput get j151 i 755 end 756 for i ulong len j152 757 byteput get j152 i 758 end 759 for i ulong len j153 760 byteput get j153 i 761 end 762 for i ulong len j154 763 byteput get j154 i 764 end 765 for i ulong len j155 766 byteput get j155 i 767 end 768 for i ulong len j156 769 byteput get j156 i 770 end 771 for i ulong len j157 772 byteput get j157 i 773 end 774 for i ulong len j158 775 byteput get j158 i 776 end 777 for i ulong len j159 778 byteput get j159 i 779 end 780 end 781 fn part160 to void 782 for i ulong len j160 783 byteput get j160 i 784 end 785 for i ulong len j161 786 byteput get j161 i 787 end 788 for i ulong len j162 789 byteput get j162 i 790 end 791 for i ulong len j163 792 byteput get j163 i 793 end 794 for i ulong len j164 795 byteput get j164 i 796 end 797 for i ulong len j165 798 byteput get j165 i 799 end 800 for i ulong len j166 801 byteput get j166 i 802 end 803 for i ulong len j167 804 byteput get j167 i 805 end 806 for i ulong len j168 807 byteput get j168 i 808 end 809 for i ulong len j169 810 byteput get j169 i 811 end 812 for i ulong len j170 813 byteput get j170 i 814 end 815 for i ulong len j171 816 byteput get j171 i 817 end 818 for i ulong len j172 819 byteput get j172 i 820 end 821 for i ulong len j173 822 byteput get j173 i 823 end 824 for i ulong len j174 825 byteput get j174 i 826 end 827 for i ulong len j175 828 byteput get j175 i 829 end 830 for i ulong len j176 831 byteput get j176 i 832 end 833 for i ulong len j177 834 byteput get j177 i 835 end 836 for i ulong len j178 837 byteput get j178 i 838 end 839 for i ulong len j179 840 byteput get j179 i 841 end 842 end 843 fn part180 to void 844 for i ulong len j180 845 byteput get j180 i 846 end 847 for i ulong len j181 848 byteput get j181 i 849 end 850 for i ulong len j182 851 byteput get j182 i 852 end 853 for i ulong len j183 854 byteput get j183 i 855 end 856 for i ulong len j184 857 byteput get j184 i 858 end 859 for i ulong len j185 860 byteput get j185 i 861 end 862 for i ulong len j186 863 byteput get j186 i 864 end 865 for i ulong len j187 866 byteput get j187 i 867 end 868 for i ulong len j188 869 byteput get j188 i 870 end 871 for i ulong len j189 872 byteput get j189 i 873 end 874 for i ulong len j190 875 byteput get j190 i 876 end 877 for i ulong len j191 878 byteput get j191 i 879 end 880 for i ulong len j192 881 byteput get j192 i 882 end 883 for i ulong len j193 884 byteput get j193 i 885 end 886 for i ulong len j194 887 byteput get j194 i 888 end 889 for i ulong len j195 890 byteput get j195 i 891 end 892 for i ulong len j196 893 byteput get j196 i 894 end 895 for i ulong len j197 896 byteput get j197 i 897 end 898 for i ulong len j198 899 byteput get j198 i 900 end 901 for i ulong len j199 902 byteput get j199 i 903 end 904 end 905 fn part200 to void 906 for i ulong len j200 907 byteput get j200 i 908 end 909 for i ulong len j201 910 byteput get j201 i 911 end 912 for i ulong len j202 913 byteput get j202 i 914 end 915 for i ulong len j203 916 byteput get j203 i 917 end 918 for i ulong len j204 919 byteput get j204 i 920 end 921 for i ulong len j205 922 byteput get j205 i 923 end 924 for i ulong len j206 925 byteput get j206 i 926 end 927 for i ulong len j207 928 byteput get j207 i 929 end 930 for i ulong len j208 931 byteput get j208 i 932 end 933 for i ulong len j209 934 byteput get j209 i 935 end 936 for i ulong len j210 937 byteput get j210 i 938 end 939 for i ulong len j211 940 byteput get j211 i 941 end 942 for i ulong len j212 943 byteput get j212 i 944 end 945 for i ulong len j213 946 byteput get j213 i 947 end 948 for i ulong len j214 949 byteput get j214 i 950 end 951 for i ulong len j215 952 byteput get j215 i 953 end 954 for i ulong len j216 955 byteput get j216 i 956 end 957 for i ulong len j217 958 byteput get j217 i 959 end 960 for i ulong len j218 961 byteput get j218 i 962 end 963 for i ulong len j219 964 byteput get j219 i 965 end 966 end 967 fn part220 to void 968 for i ulong len j220 969 byteput get j220 i 970 end 971 for i ulong len j221 972 byteput get j221 i 973 end 974 for i ulong len j222 975 byteput get j222 i 976 end 977 for i ulong len j223 978 byteput get j223 i 979 end 980 for i ulong len j224 981 byteput get j224 i 982 end 983 for i ulong len j225 984 byteput get j225 i 985 end 986 for i ulong len j226 987 byteput get j226 i 988 end 989 for i ulong len j227 990 byteput get j227 i 991 end 992 for i ulong len j228 993 byteput get j228 i 994 end 995 for i ulong len j229 996 byteput get j229 i 997 end 998 for i ulong len j230 999 byteput get j230 i 1000 end 1001 for i ulong len j231 1002 byteput get j231 i 1003 end 1004 for i ulong len j232 1005 byteput get j232 i 1006 end 1007 for i ulong len j233 1008 byteput get j233 i 1009 end 1010 for i ulong len j234 1011 byteput get j234 i 1012 end 1013 for i ulong len j235 1014 byteput get j235 i 1015 end 1016 for i ulong len j236 1017 byteput get j236 i 1018 end 1019 for i ulong len j237 1020 byteput get j237 i 1021 end 1022 for i ulong len j238 1023 byteput get j238 i 1024 end 1025 for i ulong len j239 1026 byteput get j239 i 1027 end 1028 end 1029 fn part240 to void 1030 for i ulong len j240 1031 byteput get j240 i 1032 end 1033 for i ulong len j241 1034 byteput get j241 i 1035 end 1036 for i ulong len j242 1037 byteput get j242 i 1038 end 1039 for i ulong len j243 1040 byteput get j243 i 1041 end 1042 for i ulong len j244 1043 byteput get j244 i 1044 end 1045 for i ulong len j245 1046 byteput get j245 i 1047 end 1048 for i ulong len j246 1049 byteput get j246 i 1050 end 1051 for i ulong len j247 1052 byteput get j247 i 1053 end 1054 for i ulong len j248 1055 byteput get j248 i 1056 end 1057 for i ulong len j249 1058 byteput get j249 i 1059 end 1060 for i ulong len j250 1061 byteput get j250 i 1062 end 1063 for i ulong len j251 1064 byteput get j251 i 1065 end 1066 for i ulong len j252 1067 byteput get j252 i 1068 end 1069 for i ulong len j253 1070 byteput get j253 i 1071 end 1072 for i ulong len j254 1073 byteput get j254 i 1074 end 1075 for i ulong len j255 1076 byteput get j255 i 1077 end 1078 for i ulong len j256 1079 byteput get j256 i 1080 end 1081 for i ulong len j257 1082 byteput get j257 i 1083 end 1084 for i ulong len j258 1085 byteput get j258 i 1086 end 1087 for i ulong len j259 1088 byteput get j259 i 1089 end 1090 end 1091 fn part260 to void 1092 for i ulong len j260 1093 byteput get j260 i 1094 end 1095 for i ulong len j261 1096 byteput get j261 i 1097 end 1098 end 1099 fn main to int 1100 part0 1101 part20 1102 part40 1103 part60 1104 part80 1105 part100 1106 part120 1107 part140 1108 part160 1109 part180 1110 part200 1111 part220 1112 part240 1113 part260 1114 flush 1115 ret 0 1116 end