From 2136abe8071833fd072c4be13c885525b46f5320 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Tue, 3 Dec 2024 13:51:58 -0800 Subject: Greatly improved JSViewer Handle memory edges. Color-coded edges & nodes to match lattice. Add SB vs StringBuilder. JSViewer needs SB to keep my sanity. Catch successful peeps and `show` them. Drop unused LLVM format, so I don't need to support Yet Another Printer. SimpleWebSocket handles longer packets; more robust close. Bug fix st/new fold. Bug fix Phi pull-down op losing precision. --- chapter18/docs/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'chapter18/docs/index.html') diff --git a/chapter18/docs/index.html b/chapter18/docs/index.html index f2b7e278..3a425f25 100644 --- a/chapter18/docs/index.html +++ b/chapter18/docs/index.html @@ -36,7 +36,7 @@ var graphviz = d3.select("#graph").graphviz() .transition(function () { return d3.transition("main") - .ease(d3.easePolyInOut) + .ease(d3.easeLinear) .delay(0) .duration(500); }); @@ -50,7 +50,15 @@ updateN(0); dots=[]; done=false; - var src = prompt("Simple program:", "return 0;"); + var src = prompt("Simple program:",`struct Vector2D { int x; int y; }; +Vector2D !v = new Vector2D; +v.x = 1; +if (arg) + v.y = 2; +else + v.y = 3; +return v; +`); socket.send(src); // Once the program is sent, timer starts _timer = setTimeout("close()",100000) -- cgit v1.2.3