about summary refs log tree commit diff stats
path: root/cpp/024compare
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 10:20:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 10:20:47 -0700
commita1d703b3c86c6842899acf0d5c6c0fe3536fa36f (patch)
treefce4a514a1f853efada92264fc2ed7e48e1a4100 /cpp/024compare
parent88be3dbc0c996490dbac97538f4d712a5b4f6f07 (diff)
downloadmu-a1d703b3c86c6842899acf0d5c6c0fe3536fa36f.tar.gz
1163
Diffstat (limited to 'cpp/024compare')
-rw-r--r--cpp/024compare14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/024compare b/cpp/024compare
index c1e961f9..c536b23e 100644
--- a/cpp/024compare
+++ b/cpp/024compare
@@ -93,11 +93,11 @@ recipe main [
 +mem: storing 0 in location 3
 
 :(before "End Primitive Recipe Declarations")
-LESS_THAN,
+LESSER_THAN,
 :(before "End Primitive Recipe Numbers")
-Recipe_number["less-than"] = LESS_THAN;
+Recipe_number["lesser-than"] = LESSER_THAN;
 :(before "End Primitive Recipe Implementations")
-case LESS_THAN: {
+case LESSER_THAN: {
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
   vector<int> arg0 = read_memory(instructions[pc].ingredients[0]);
   assert(arg0.size() == 1);
@@ -111,11 +111,11 @@ case LESS_THAN: {
   break;
 }
 
-:(scenario less_than)
+:(scenario lesser_than)
 recipe main [
   1:integer <- copy 32:literal
   2:integer <- copy 33:literal
-  3:integer <- less-than 1:integer, 2:integer
+  3:integer <- lesser-than 1:integer, 2:integer
 ]
 +run: instruction main/2
 +run: ingredient 0 is 1
@@ -125,11 +125,11 @@ recipe main [
 +run: product 0 is 1
 +mem: storing 1 in location 3
 
-:(scenario less_than2)
+:(scenario lesser_than2)
 recipe main [
   1:integer <- copy 34:literal
   2:integer <- copy 33:literal
-  3:integer <- less-than 1:integer, 2:integer
+  3:integer <- lesser-than 1:integer, 2:integer
 ]
 +run: instruction main/2
 +run: ingredient 0 is 1
a> 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
ref='#n225'>225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382