| 1 |
========================================== |
| 2 |
reduce in STRING : ascii("A") . |
| 3 |
rewrites: 1 |
| 4 |
result NzNat: 65 |
| 5 |
========================================== |
| 6 |
reduce in STRING : ascii("AB") . |
| 7 |
rewrites: 0 |
| 8 |
result [FindResult]: ascii("AB") |
| 9 |
========================================== |
| 10 |
reduce in STRING : length("AAA") . |
| 11 |
rewrites: 1 |
| 12 |
result NzNat: 3 |
| 13 |
========================================== |
| 14 |
reduce in STRING : length("") . |
| 15 |
rewrites: 1 |
| 16 |
result Zero: 0 |
| 17 |
========================================== |
| 18 |
reduce in STRING : length("abcdefghijklmnopqrstuvwxyz") . |
| 19 |
rewrites: 1 |
| 20 |
result NzNat: 26 |
| 21 |
========================================== |
| 22 |
reduce in STRING : substr("abcdefghijklmnopqrstuvwxyz", 10, 5) . |
| 23 |
rewrites: 1 |
| 24 |
result String: "klmno" |
| 25 |
========================================== |
| 26 |
reduce in STRING : substr("abcdefghijklmnopqrstuvwxyz", 1000000000000000000, 5) |
| 27 |
. |
| 28 |
rewrites: 1 |
| 29 |
result String: "" |
| 30 |
========================================== |
| 31 |
reduce in STRING : substr("abcdefghijklmnopqrstuvwxyz", 10, 500000000000000000) |
| 32 |
. |
| 33 |
rewrites: 1 |
| 34 |
result String: "klmnopqrstuvwxyz" |
| 35 |
========================================== |
| 36 |
reduce in STRING : substr("abcdefghijklmnopqrstuvwxyz", 0, 5) . |
| 37 |
rewrites: 1 |
| 38 |
result String: "abcde" |
| 39 |
========================================== |
| 40 |
reduce in STRING : substr("abcdefghijklmnopqrstuvwxyz", 10, 0) . |
| 41 |
rewrites: 1 |
| 42 |
result String: "" |
| 43 |
========================================== |
| 44 |
reduce in STRING : find("abcdefghijabcdefghij", "cde", 0) . |
| 45 |
rewrites: 1 |
| 46 |
result NzNat: 2 |
| 47 |
========================================== |
| 48 |
reduce in STRING : find("abcdefghijabcdefghij", "cde", 1) . |
| 49 |
rewrites: 1 |
| 50 |
result NzNat: 2 |
| 51 |
========================================== |
| 52 |
reduce in STRING : find("abcdefghijabcdefghij", "cde", 2) . |
| 53 |
rewrites: 1 |
| 54 |
result NzNat: 2 |
| 55 |
========================================== |
| 56 |
reduce in STRING : find("abcdefghijabcdefghij", "cde", 3) . |
| 57 |
rewrites: 1 |
| 58 |
result NzNat: 12 |
| 59 |
========================================== |
| 60 |
reduce in STRING : find("abcdefghijabcdefghij", "cde", 30000000000000000000000) |
| 61 |
. |
| 62 |
rewrites: 1 |
| 63 |
result FindResult: notFound |
| 64 |
========================================== |
| 65 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", 0) . |
| 66 |
rewrites: 1 |
| 67 |
result FindResult: notFound |
| 68 |
========================================== |
| 69 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", 1) . |
| 70 |
rewrites: 1 |
| 71 |
result FindResult: notFound |
| 72 |
========================================== |
| 73 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", 2) . |
| 74 |
rewrites: 1 |
| 75 |
result NzNat: 2 |
| 76 |
========================================== |
| 77 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", 12) . |
| 78 |
rewrites: 1 |
| 79 |
result NzNat: 12 |
| 80 |
========================================== |
| 81 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", 13) . |
| 82 |
rewrites: 1 |
| 83 |
result NzNat: 12 |
| 84 |
========================================== |
| 85 |
reduce in STRING : rfind("abcdefghijabcdefghij", "cde", |
| 86 |
30000000000000000000000) . |
| 87 |
rewrites: 1 |
| 88 |
result NzNat: 12 |
| 89 |
========================================== |
| 90 |
reduce in STRING : char(65) . |
| 91 |
rewrites: 1 |
| 92 |
result Char: "A" |
| 93 |
========================================== |
| 94 |
reduce in STRING : char(2000) . |
| 95 |
rewrites: 0 |
| 96 |
result [String]: char(2000) |
| 97 |
========================================== |
| 98 |
reduce in STRING : char(20000000000000000000000) . |
| 99 |
rewrites: 0 |
| 100 |
result [String]: char(20000000000000000000000) |
| 101 |
========================================== |
| 102 |
reduce in STRING : char(0) . |
| 103 |
rewrites: 1 |
| 104 |
result Char: "\000" |
| 105 |
========================================== |
| 106 |
reduce in STRING : char(255) . |
| 107 |
rewrites: 1 |
| 108 |
result Char: "\377" |
| 109 |
========================================== |
| 110 |
reduce in STRING : "test" . |
| 111 |
rewrites: 0 |
| 112 |
result String: "test" |
| 113 |
========================================== |
| 114 |
reduce in STRING : "test" + "2" . |
| 115 |
rewrites: 1 |
| 116 |
result String: "test2" |
| 117 |
========================================== |
| 118 |
reduce in STRING : substr("cat", 1, 1) . |
| 119 |
rewrites: 1 |
| 120 |
result Char: "a" |
| 121 |
========================================== |
| 122 |
reduce in STRING : substr("\n\r\f", 1, 1) . |
| 123 |
rewrites: 1 |
| 124 |
result Char: "\r" |
| 125 |
========================================== |
| 126 |
reduce in STRING : "\a" . |
| 127 |
rewrites: 0 |
| 128 |
result Char: "\a" |
| 129 |
========================================== |
| 130 |
reduce in STRING : substr("a\"\"b", 0, 0) . |
| 131 |
rewrites: 1 |
| 132 |
result String: "" |
| 133 |
========================================== |
| 134 |
reduce in STRING : substr("a\"\"b", 0, 2) . |
| 135 |
rewrites: 1 |
| 136 |
result String: "a\"" |
| 137 |
========================================== |
| 138 |
reduce in STRING : substr("a\"\"b", 0, 100) . |
| 139 |
rewrites: 1 |
| 140 |
result String: "a\"\"b" |
| 141 |
========================================== |
| 142 |
reduce in STRING : substr("a\"\"b", 3, 1) . |
| 143 |
rewrites: 1 |
| 144 |
result Char: "b" |
| 145 |
========================================== |
| 146 |
reduce in STRING : substr("a\"\"b", 4, 1) . |
| 147 |
rewrites: 1 |
| 148 |
result String: "" |
| 149 |
========================================== |
| 150 |
reduce in STRING : "abracadabra" < "aardvark" . |
| 151 |
rewrites: 1 |
| 152 |
result Bool: false |
| 153 |
========================================== |
| 154 |
reduce in STRING : "AAA" < "aardvark" . |
| 155 |
rewrites: 1 |
| 156 |
result Bool: true |
| 157 |
========================================== |
| 158 |
reduce in STRING : length("aardvark") . |
| 159 |
rewrites: 1 |
| 160 |
result NzNat: 8 |
| 161 |
========================================== |
| 162 |
reduce in STRING : "abc" == "a" + "b" + "c" . |
| 163 |
rewrites: 3 |
| 164 |
result Bool: true |
| 165 |
========================================== |
| 166 |
reduce in STRING : find("catcat", "tc", 0) . |
| 167 |
rewrites: 1 |
| 168 |
result NzNat: 2 |
| 169 |
========================================== |
| 170 |
reduce in STRING : find("catcat", "jr", 0) . |
| 171 |
rewrites: 1 |
| 172 |
result FindResult: notFound |
| 173 |
========================================== |
| 174 |
reduce in STRING : rfind("catcat", "t", 10) . |
| 175 |
rewrites: 1 |
| 176 |
result NzNat: 5 |
| 177 |
========================================== |
| 178 |
reduce in STRING : rfind("catcat", "t", 4) . |
| 179 |
rewrites: 1 |
| 180 |
result NzNat: 2 |
| 181 |
========================================== |
| 182 |
reduce in STRING : "\000" . |
| 183 |
rewrites: 0 |
| 184 |
result Char: "\000" |
| 185 |
========================================== |
| 186 |
reduce in STRING : "\377" . |
| 187 |
rewrites: 0 |
| 188 |
result Char: "\377" |
| 189 |
========================================== |
| 190 |
reduce in STRING : "\00399" . |
| 191 |
rewrites: 0 |
| 192 |
result String: "\00399" |
| 193 |
========================================== |
| 194 |
reduce in STRING : "?" . |
| 195 |
rewrites: 0 |
| 196 |
result Char: "?" |
| 197 |
========================================== |
| 198 |
reduce in STRING : " " . |
| 199 |
rewrites: 0 |
| 200 |
result Char: " " |
| 201 |
========================================== |
| 202 |
reduce in STRING : "A" . |
| 203 |
rewrites: 0 |
| 204 |
result Char: "A" |
| 205 |
Warning: <standard input>, line 80: ambiguous term, two parses are: |
| 206 |
Foo : ("this is not a string").Foo |
| 207 |
-versus- |
| 208 |
String : ("this is not a string").String |
| 209 |
|
| 210 |
Arbitrarily taking the first as correct. |
| 211 |
========================================== |
| 212 |
reduce in FOO : ("this is not a string").Foo . |
| 213 |
rewrites: 0 |
| 214 |
result Foo: ("this is not a string").Foo |
| 215 |
========================================== |
| 216 |
reduce in FOO : ("this is not a string").Foo . |
| 217 |
rewrites: 0 |
| 218 |
result Foo: ("this is not a string").Foo |
| 219 |
========================================== |
| 220 |
reduce in FOO : ("this is not a string").String . |
| 221 |
rewrites: 0 |
| 222 |
result String: ("this is not a string").String |
| 223 |
========================================== |
| 224 |
reduce in FOO : "this is a string" . |
| 225 |
rewrites: 0 |
| 226 |
result String: "this is a string" |
| 227 |
========================================== |
| 228 |
reduce in STRING : "this is a really long string; this is a really long string; this is a really long string; this is a really long string; this is a really long string." . |
| 229 |
rewrites: 0 |
| 230 |
result String: "this is a really long string; this is a really long string; this is a really long string; this is a really long string; this is a really long string." |
| 231 |
========================================== |
| 232 |
reduce in STRING : char(65) . |
| 233 |
rewrites: 1 |
| 234 |
result Char: "A" |
| 235 |
========================================== |
| 236 |
reduce in STRING : ascii(" ") . |
| 237 |
rewrites: 1 |
| 238 |
result NzNat: 32 |
| 239 |
========================================== |
| 240 |
reduce in STRING : ascii("aa") . |
| 241 |
rewrites: 0 |
| 242 |
result [FindResult]: ascii("aa") |
| 243 |
========================================== |
| 244 |
reduce in STRING : char(1000) . |
| 245 |
rewrites: 0 |
| 246 |
result [String]: char(1000) |
| 247 |
========================================== |
| 248 |
reduce in STRING : lowerCase("a") . |
| 249 |
rewrites: 1 |
| 250 |
result Char: "a" |
| 251 |
========================================== |
| 252 |
reduce in STRING : lowerCase("A") . |
| 253 |
rewrites: 1 |
| 254 |
result Char: "a" |
| 255 |
========================================== |
| 256 |
reduce in STRING : lowerCase("123AAAaaa123aaaAAA123") . |
| 257 |
rewrites: 1 |
| 258 |
result String: "123aaaaaa123aaaaaa123" |
| 259 |
========================================== |
| 260 |
reduce in STRING : lowerCase("AAAaaa123AAAaaa123aaaAAA123") . |
| 261 |
rewrites: 1 |
| 262 |
result String: "aaaaaa123aaaaaa123aaaaaa123" |
| 263 |
========================================== |
| 264 |
reduce in STRING : lowerCase("abcdef") . |
| 265 |
rewrites: 1 |
| 266 |
result String: "abcdef" |
| 267 |
========================================== |
| 268 |
reduce in STRING : lowerCase("abcdeF") . |
| 269 |
rewrites: 1 |
| 270 |
result String: "abcdef" |
| 271 |
========================================== |
| 272 |
reduce in STRING : lowerCase("AbCdEf") . |
| 273 |
rewrites: 1 |
| 274 |
result String: "abcdef" |
| 275 |
========================================== |
| 276 |
reduce in STRING : lowerCase("aBcDeF") . |
| 277 |
rewrites: 1 |
| 278 |
result String: "abcdef" |
| 279 |
========================================== |
| 280 |
reduce in STRING : lowerCase("ABCDEF") . |
| 281 |
rewrites: 1 |
| 282 |
result String: "abcdef" |
| 283 |
========================================== |
| 284 |
reduce in STRING : upperCase("a") . |
| 285 |
rewrites: 1 |
| 286 |
result Char: "A" |
| 287 |
========================================== |
| 288 |
reduce in STRING : upperCase("A") . |
| 289 |
rewrites: 1 |
| 290 |
result Char: "A" |
| 291 |
========================================== |
| 292 |
reduce in STRING : upperCase("123AAAaaa123aaaAAA123") . |
| 293 |
rewrites: 1 |
| 294 |
result String: "123AAAAAA123AAAAAA123" |
| 295 |
========================================== |
| 296 |
reduce in STRING : upperCase("AAAaaa123AAAaaa123aaaAAA123") . |
| 297 |
rewrites: 1 |
| 298 |
result String: "AAAAAA123AAAAAA123AAAAAA123" |
| 299 |
========================================== |
| 300 |
reduce in STRING : upperCase("abcdef") . |
| 301 |
rewrites: 1 |
| 302 |
result String: "ABCDEF" |
| 303 |
========================================== |
| 304 |
reduce in STRING : upperCase("abcdeF") . |
| 305 |
rewrites: 1 |
| 306 |
result String: "ABCDEF" |
| 307 |
========================================== |
| 308 |
reduce in STRING : upperCase("AbCdEf") . |
| 309 |
rewrites: 1 |
| 310 |
result String: "ABCDEF" |
| 311 |
========================================== |
| 312 |
reduce in STRING : upperCase("aBcDeF") . |
| 313 |
rewrites: 1 |
| 314 |
result String: "ABCDEF" |
| 315 |
========================================== |
| 316 |
reduce in STRING : upperCase("ABCDEF") . |
| 317 |
rewrites: 1 |
| 318 |
result String: "ABCDEF" |
| 319 |
Bye. |