From 4bbd3ded0b767ae0919551776e4c17189140e735 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 30 May 2015 19:30:33 -0700 Subject: 1517 --- html/032array.cc.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'html/032array.cc.html') diff --git a/html/032array.cc.html b/html/032array.cc.html index cac483a1..ac8d1636 100644 --- a/html/032array.cc.html +++ b/html/032array.cc.html @@ -13,15 +13,15 @@ pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background-color: #080808; } body { font-family: monospace; color: #d0d0d0; background-color: #080808; } * { font-size: 1em; } +.traceContains { color: #008000; } .cSpecial { color: #008000; } -.CommentedCode { color: #6c6c6c; } .Constant { color: #008080; } +.SalientComment { color: #00ffff; } .Comment { color: #8080ff; } .Delimiter { color: #c000c0; } .Special { color: #ff6060; } .Identifier { color: #008080; } -.SalientComment { color: #00ffff; } -.traceContains { color: #008000; } +.CommentedCode { color: #6c6c6c; } --> @@ -40,6 +40,9 @@ body { font-family: monospace; color: #d0d0d0; background-color: #080808; } //: elements of a fixed size, so you can't create containers containing arrays. //: Create containers containing addresses to arrays instead. +//: Tests in this layer often explicitly setup memory before reading it as an +//: array. Don't do this in general. I'm tagging exceptions with /raw to +//: avoid warnings. :(scenario copy_array) # Arrays can be copied around with a single instruction just like numbers, # no matter how large they are. @@ -48,7 +51,7 @@ recipe main [ 2:number <- copy 14:literal 3:number <- copy 15:literal 4:number <- copy 16:literal - 5:array:number <- copy 1:array:number + 5:array:number <- copy 1:array:number/raw # unsafe ] +mem: storing 3 in location 5 +mem: storing 14 in location 6 @@ -87,7 +90,7 @@ recipe main [ 2:number <- copy 14:literal 3:number <- copy 15:literal 4:number <- copy 16:literal - 5:number <- index 1:array:number, 0:literal + 5:number <- index 1:array:number/raw, 0:literal # unsafe ] +mem: storing 14 in location 5 @@ -98,7 +101,7 @@ recipe main [ 3:number <- copy 15:literal 4:number <- copy 16:literal 5:number <- copy 0:literal - 6:number <- index 1:array:number, 5:number + 6:number <- index 1:array:number/raw, 5:number # unsafe ] +mem: storing 14 in location 6 @@ -140,7 +143,7 @@ recipe main [ 2:number <- copy 14:literal 3:number <- copy 15:literal 4:number <- copy 16:literal - 5:number <- index-address 1:array:number, 0:literal + 5:number <- index-address 1:array:number/raw, 0:literal # unsafe ] +mem: storing 2 in location 5 @@ -183,7 +186,7 @@ recipe main [ 2:number <- copy 14:literal 3:number <- copy 15:literal 4:number <- copy 16:literal - 5:number <- length 1:array:number + 5:number <- length 1:array:number/raw # unsafe ] +mem: storing 3 in location 5 -- cgit 1.4.1-2-gfad0