From ae678189f55bff795e538b805e606934e496e793 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 20 Oct 2019 18:11:38 -0400 Subject: started fixing compile time new fixing eval ... --- out.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'out.c') diff --git a/out.c b/out.c index d165db8..31f95d2 100644 --- a/out.c +++ b/out.c @@ -17,7 +17,7 @@ typedef struct { void *data; u64 n; } slice_; /* declarations */ -void puti(i64 x); +i64 foo(void); void main__(void); /* code */ int main() { @@ -25,17 +25,20 @@ int main() { return 0; } -void puti(i64 x) { +i64 foo(void) { { - }} + i64 i; { + i64 expr__; expr__ = 0;i = expr__;} + while ((i<100)) { + i = (i+1);; + }; + }return i; +} void main__(void) { { - i64((* Ar)[5]); { - i64((* expr__)[5]); expr__ = ((i64((*)[5]))calloc(1, sizeof(i64([5]))));Ar = expr__;} - slice_ A; { - slice_ expr__; slice_ a0_; a0_.data = calloc(100, sizeof(i64)); a0_.n = 100;expr__ = a0_;A = expr__;} + i64( Ar[1]) = {0}; }} -- cgit v1.2.3