• R/O
  • SSH
  • HTTPS

jpl: Commit


Commit MetaInfo

Revision478 (tree)
Time2019-03-09 11:53:16
Authorjakobthomsen

Log Message

use id labels

Change Summary

Incremental Difference

--- trunk/experimental2/compiler.compiled.c (revision 477)
+++ trunk/experimental2/compiler.compiled.c (revision 478)
@@ -366,12 +366,12 @@
366366 mem_init();
367367 uint64_t result = 0; struct stack callstack = stack_alloc();
368368 stack_push(&callstack, 0); // end marker
369- uint64_t state = tuple2_alloc(1/*main*/, 0/*arg*/);
369+ uint64_t state = tuple2_alloc(/*main*/1835100526LLU, 0/*arg*/);
370370 while(memory[tuple2_access0(state)].value)
371371 {
372372 switch(memory[tuple2_access0(state)].value)
373373 {
374- case 2:
374+ case /*intro*/452824691311LLU:
375375 {
376376
377377 /////////////////////////////////////////////////////////////////////////////
@@ -748,7 +748,7 @@
748748 printf(" uint64_t result = 0;");
749749 printf(" struct stack callstack = stack_alloc();\n");
750750 printf(" stack_push(&callstack, 0); // end marker\n");
751- printf(" uint64_t state = tuple2_alloc(1/*main*/, 0/*arg*/);\n");
751+ printf(" uint64_t state = tuple2_alloc(/*main*/1835100526LLU, 0/*arg*/);\n");
752752 printf(" while(memory[tuple2_access0(state)].value)\n");
753753 printf(" {\n");
754754 printf(" switch(memory[tuple2_access0(state)].value)\n");
@@ -759,7 +759,7 @@
759759
760760 break;
761761 }
762- case 3:
762+ case /*outro*/478711935599LLU:
763763 {
764764
765765 printf(" default:\n");
@@ -784,7 +784,7 @@
784784
785785 break;
786786 }
787- case 4:
787+ case /*parseid*/31632341581785444LLU:
788788 {
789789
790790 result = 0;
@@ -799,15 +799,15 @@
799799
800800 break;
801801 }
802- case 1:
802+ case /*main*/1835100526LLU:
803803 {
804-memory[tuple2_access0(state)].value = -1LL;
804+/*intro*/memory[tuple2_access0(state)].value = 18446744073709551615LLU;
805805 stack_push(&callstack, state);
806- state = tuple2_alloc(2, 0);
806+ state = tuple2_alloc(452824691311LLU, 0);
807807 result = 0;
808808 break;
809809 }
810- case -1LL:
810+ case 18446744073709551615LLU:
811811 {
812812 result = stack_pop(&callstack);
813813
@@ -940,13 +940,13 @@
940940 //break;
941941 }
942942 memory[tuple2_access0(state)].value = 0;
943- memory[tuple2_access0(state)].value = -2LL;
943+ /*outro*/memory[tuple2_access0(state)].value = 18446744073709551614LLU;
944944 stack_push(&callstack, state);
945- state = tuple2_alloc(3, 0);
945+ state = tuple2_alloc(478711935599LLU, 0);
946946 result = 0;
947947 break;
948948 }
949- case -2LL:
949+ case 18446744073709551614LLU:
950950 {
951951 result = stack_pop(&callstack);
952952 result = 0;
--- trunk/experimental2/compiler.source.c (revision 477)
+++ trunk/experimental2/compiler.source.c (revision 478)
@@ -1,4 +1,4 @@
1-2
1+intro
22 {
33 `
44 /////////////////////////////////////////////////////////////////////////////
@@ -375,7 +375,7 @@
375375 printf(" uint64_t result = 0;");
376376 printf(" struct stack callstack = stack_alloc();\n");
377377 printf(" stack_push(&callstack, 0); // end marker\n");
378- printf(" uint64_t state = tuple2_alloc(1/*main*/, 0/*arg*/);\n");
378+ printf(" uint64_t state = tuple2_alloc(/*main*/1835100526LLU, 0/*arg*/);\n");
379379 printf(" while(memory[tuple2_access0(state)].value)\n");
380380 printf(" {\n");
381381 printf(" switch(memory[tuple2_access0(state)].value)\n");
@@ -383,7 +383,7 @@
383383 `
384384 }
385385
386-3
386+outro
387387 {
388388 `
389389 printf(" default:\n");
@@ -405,7 +405,7 @@
405405 `
406406 }
407407
408-4
408+parseid
409409 {
410410 `
411411 result = 0;
@@ -417,9 +417,9 @@
417417 `
418418 }
419419
420-1
420+main
421421 {
422- 2
422+ intro
423423 `
424424 while(true)
425425 {
@@ -551,7 +551,7 @@
551551 }
552552 memory[tuple2_access0(state)].value = 0;
553553 `
554- 3
554+ outro
555555
556556 @ 0
557557 }
Show on old repository browser