#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct ECALC_TOKEN {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ecalc_free_token(struct ECALC_TOKEN *);
double ecalc_get_tree_value(struct ECALC_TOKEN *, double **, double);
struct ECALC_TOKEN *ecalc_make_token(char *);
struct ECALC_TOKEN *ecalc_make_tree(struct ECALC_TOKEN *);
int /*<<< orphan*/ ecalc_memman_init();
int getc(int /*<<< orphan*/);
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  char data[256];
  int get;
  int i;
  struct ECALC_TOKEN *tok;
  double var[26];
  double *vars[26];
  double ans = 0;
  puts("exit と入力すると終了");
  ecalc_memman_init();
  for (i = 0; i < 26; i++) {
    vars[i] = &var[i];
    var[i] = 24;
  }
  if (argc > 1) {
    strcpy(data, argv[1]);
    goto ECALC_CALC;
  }
ECALC_RECALC:
  printf("式 > ");
  for (i = 0, data[255] = '\0'; i < 255; i++) {
    get = getc(stdin);
    if (get != '\n') {
      data[i] = get;
    } else {
      data[i] = '\0';
      break;
    }
  }
  if (i >= 255) {
    while (getchar() != '\n')
      ;
  }
  if (!strcmp(data, "exit")) {
    goto ECALC_END;
  }
ECALC_CALC:
  tok = ecalc_make_token(data);
  tok = ecalc_make_tree(tok);
  if (tok != NULL) {
    ans = ecalc_get_tree_value(tok, vars, ans);
    printf("\t%lf\n", ans);
    printf("\t0x%X\n", (int)ans);
    printf("\t%e\n", ans);
  } else {
    puts("FAILED!");
  }
  ecalc_free_token(tok);
  goto ECALC_RECALC;
ECALC_END:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2d0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x2c8(%rbp)
ff
lea    0xe2d(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   10a0 <ecalc_memman_init@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x1a,-0x118(%rbp)
jge    124e <main+0x9e>
movslq -0x118(%rbp),%rax
lea    -0x1f0(%rbp),%rcx
shl    $0x3,%rax
add    %rax,%rcx
movslq -0x118(%rbp),%rax
mov    %rcx,-0x2c0(%rbp,%rax,8)
ff
movslq -0x118(%rbp),%rax
movsd  0xdcf(%rip),%xmm0
movsd  %xmm0,-0x1f0(%rbp,%rax,8)
ff ff
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    11f1 <main+0x41>
cmpl   $0x1,-0x8(%rbp)
jle    1271 <main+0xc1>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
jmp    1363 <main+0x1b3>
jmp    1276 <main+0xc6>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x118(%rbp)
movb   $0x0,-0x11(%rbp)
cmpl   $0xff,-0x118(%rbp)
jge    130b <main+0x15b>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
call   10d0 <getc@plt>
mov    %eax,-0x114(%rbp)
cmpl   $0xa,-0x114(%rbp)
je     12de <main+0x12e>
mov    -0x114(%rbp),%eax
mov    %al,%cl
movslq -0x118(%rbp),%rax
mov    %cl,-0x110(%rbp,%rax,1)
jmp    12f2 <main+0x142>
movslq -0x118(%rbp),%rax
movb   $0x0,-0x110(%rbp,%rax,1)
jmp    130b <main+0x15b>
jmp    12f7 <main+0x147>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1292 <main+0xe2>
cmpl   $0xff,-0x118(%rbp)
jl     133d <main+0x18d>
jmp    1320 <main+0x170>
mov    $0x0,%al
call   10c0 <getchar@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     1338 <main+0x188>
jmp    1320 <main+0x170>
jmp    133d <main+0x18d>
lea    -0x110(%rbp),%rdi
lea    0xce2(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    135e <main+0x1ae>
jmp    141e <main+0x26e>
jmp    1363 <main+0x1b3>
lea    -0x110(%rbp),%rdi
call   1050 <ecalc_make_token@plt>
mov    %rax,-0x120(%rbp)
mov    -0x120(%rbp),%rdi
call   1060 <ecalc_make_tree@plt>
mov    %rax,-0x120(%rbp)
cmpq   $0x0,-0x120(%rbp)
je     1401 <main+0x251>
mov    -0x120(%rbp),%rdi
lea    -0x2c0(%rbp),%rsi
movsd  -0x2c8(%rbp),%xmm0
ff
call   1090 <ecalc_get_tree_value@plt>
movsd  %xmm0,-0x2c8(%rbp)
ff
movsd  -0x2c8(%rbp),%xmm0
ff
lea    0xc69(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
cvttsd2si -0x2c8(%rbp),%esi
ff
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movsd  -0x2c8(%rbp),%xmm0
ff
lea    0xc4a(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    140d <main+0x25d>
lea    0xc3c(%rip),%rdi
call   1040 <puts@plt>
mov    -0x120(%rbp),%rdi
call   1080 <ecalc_free_token@plt>
jmp    1276 <main+0xc6>
xor    %eax,%eax
add    $0x2d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x2b8,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe5b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10a0 <ecalc_memman_init@plt>
lea    0x10(%rsp),%rax
mov    %rax,0xe0(%rsp)
lea    0x18(%rsp),%rax
mov    %rax,0xe8(%rsp)
movaps 0xe1e(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x20(%rsp),%rax
mov    %rax,0xf0(%rsp)
lea    0x28(%rsp),%rax
mov    %rax,0xf8(%rsp)
movaps %xmm0,0x20(%rsp)
lea    0x30(%rsp),%rax
mov    %rax,0x100(%rsp)
lea    0x38(%rsp),%rax
mov    %rax,0x108(%rsp)
movaps %xmm0,0x30(%rsp)
lea    0x40(%rsp),%rax
mov    %rax,0x110(%rsp)
lea    0x48(%rsp),%rax
mov    %rax,0x118(%rsp)
movaps %xmm0,0x40(%rsp)
lea    0x50(%rsp),%rax
mov    %rax,0x120(%rsp)
lea    0x58(%rsp),%rax
mov    %rax,0x128(%rsp)
movaps %xmm0,0x50(%rsp)
lea    0x60(%rsp),%rax
mov    %rax,0x130(%rsp)
lea    0x68(%rsp),%rax
mov    %rax,0x138(%rsp)
movaps %xmm0,0x60(%rsp)
lea    0x70(%rsp),%rax
mov    %rax,0x140(%rsp)
lea    0x78(%rsp),%rax
mov    %rax,0x148(%rsp)
movaps %xmm0,0x70(%rsp)
lea    0x80(%rsp),%rax
mov    %rax,0x150(%rsp)
lea    0x88(%rsp),%rax
mov    %rax,0x158(%rsp)
movaps %xmm0,0x80(%rsp)
lea    0x90(%rsp),%rax
mov    %rax,0x160(%rsp)
lea    0x98(%rsp),%rax
mov    %rax,0x168(%rsp)
movaps %xmm0,0x90(%rsp)
lea    0xa0(%rsp),%rax
mov    %rax,0x170(%rsp)
lea    0xa8(%rsp),%rax
mov    %rax,0x178(%rsp)
movaps %xmm0,0xa0(%rsp)
lea    0xb0(%rsp),%rax
mov    %rax,0x180(%rsp)
lea    0xb8(%rsp),%rax
mov    %rax,0x188(%rsp)
movaps %xmm0,0xb0(%rsp)
lea    0xc0(%rsp),%rax
mov    %rax,0x190(%rsp)
lea    0xc8(%rsp),%rax
mov    %rax,0x198(%rsp)
movaps %xmm0,0xc0(%rsp)
lea    0xd0(%rsp),%rax
mov    %rax,0x1a0(%rsp)
lea    0xd8(%rsp),%rax
mov    %rax,0x1a8(%rsp)
movaps %xmm0,0xd0(%rsp)
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
cmp    $0x2,%ebp
jl     13be <main+0x21e>
mov    0x8(%rbx),%rsi
lea    0x1b0(%rsp),%rdi
call   1030 <strcpy@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    1441 <main+0x2a1>
lea    0xc69(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <printf@plt>
movb   $0x0,0x2af(%rsp)
mov    0x2c0b(%rip),%rbp
nopl   (%rax)
mov    0x0(%rbp),%edi
call   10c0 <getc@plt>
cmp    $0xa,%eax
je     141d <main+0x27d>
mov    %al,0x1b0(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0xff,%rbx
jne    13e0 <main+0x240>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10b0 <getchar@plt>
cmp    $0xa,%al
jne    1410 <main+0x270>
jmp    1425 <main+0x285>
movb   $0x0,0x1b0(%rsp,%rbx,1)
mov    $0x74697865,%eax
xor    0x1b0(%rsp),%eax
movzbl 0x1b4(%rsp),%ecx
or     %eax,%ecx
je     14cb <main+0x32b>
lea    0x1b0(%rsp),%rdi
call   1050 <ecalc_make_token@plt>
mov    %rax,%rdi
call   1060 <ecalc_make_tree@plt>
mov    %rax,%rbx
test   %rax,%rax
je     14b2 <main+0x312>
lea    0xe0(%rsp),%rsi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
call   1090 <ecalc_get_tree_value@plt>
movsd  %xmm0,0x8(%rsp)
lea    0xbb9(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
cvttsd2si 0x8(%rsp),%esi
lea    0xbab(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xba4(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1070 <printf@plt>
jmp    14be <main+0x31e>
lea    0xb93(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1080 <ecalc_free_token@plt>
jmp    13be <main+0x21e>
xor    %eax,%eax
add    $0x2b8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.ECALC_TOKEN = type { i32 }
@.str = [30 x i8] c"exit \E3\81\A8\E5\85\A5\E5\8A\9B\E3\81\99\E3\82\8B\E3\81\A8\E7\B5\82\E4\BA\86\00"
@.str.1 = [7 x i8] c"\E5\BC\8F > \00"
@stdin = global i32 0
@.str.2 = [5 x i8] c"exit\00"
@.str.3 = [6 x i8] c"\09%lf\0A\00"
@.str.4 = [7 x i8] c"\090x%X\0A\00"
@.str.5 = [5 x i8] c"\09%e\0A\00"
@.str.6 = [8 x i8] c"FAILED!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [256 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.ECALC_TOKEN*
%10 = alloca [26 x double]
%11 = alloca [26 x double*]
%12 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %12
%13 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (...) @ecalc_memman_init()
store i32 0, i32* %8
br label %15
15: ; preds = %28, %2
%16 = load i32, i32* %8
%17 = icmp slt i32 %16, 26
br i1 %17, label %18, label %31
18: ; preds = %15
%19 = load i32, i32* %8
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [26 x double], [26 x double]* %10, i64 0, i64 %20
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [26 x double*], [26 x double*]* %11, i64 0, i64 %23
store double* %21, double** %24
%25 = load i32, i32* %8
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [26 x double], [26 x double]* %10, i64 0, i64 %26
store double 2.400000e+01, double* %27
br label %28
28: ; preds = %18
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 1
store i32 %30, i32* %8
br label %15
31: ; preds = %15
%32 = load i32, i32* %4
%33 = icmp sgt i32 %32, 1
br i1 %33, label %34, label %40
34: ; preds = %31
%35 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @strcpy(i8* %35, i8* %38)
br label %82
40: ; preds = %31
br label %41
41: ; preds = %103, %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %8
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 255
store i8 0, i8* %43
br label %44
44: ; preds = %63, %41
%45 = load i32, i32* %8
%46 = icmp slt i32 %45, 255
br i1 %46, label %47, label %66
47: ; preds = %44
%48 = load i32, i32* @stdin
%49 = call i32 @getc(i32 %48)
store i32 %49, i32* %7
%50 = load i32, i32* %7
%51 = icmp ne i32 %50, 10
br i1 %51, label %52, label %58
52: ; preds = %47
%53 = load i32, i32* %7
%54 = trunc i32 %53 to i8
%55 = load i32, i32* %8
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %56
store i8 %54, i8* %57
br label %62
58: ; preds = %47
%59 = load i32, i32* %8
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %60
store i8 0, i8* %61
br label %66
62: ; preds = %52
br label %63
63: ; preds = %62
%64 = load i32, i32* %8
%65 = add nsw i32 %64, 1
store i32 %65, i32* %8
br label %44
66: ; preds = %58, %44
%67 = load i32, i32* %8
%68 = icmp sge i32 %67, 255
br i1 %68, label %69, label %76
69: ; preds = %66
br label %70
70: ; preds = %74, %69
%71 = call signext i8 (...) @getchar()
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 10
br i1 %73, label %74, label %75
74: ; preds = %70
br label %70
75: ; preds = %70
br label %76
76: ; preds = %75, %66
%77 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%78 = call i32 @strcmp(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%79 = icmp ne i32 %78, 0
br i1 %79, label %81, label %80
80: ; preds = %76
br label %106
81: ; preds = %76
br label %82
82: ; preds = %81, %34
%83 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%84 = call %struct.ECALC_TOKEN* @ecalc_make_token(i8* %83)
store %struct.ECALC_TOKEN* %84, %struct.ECALC_TOKEN** %9
%85 = load %struct.ECALC_TOKEN*, %struct.ECALC_TOKEN** %9
%86 = call %struct.ECALC_TOKEN* @ecalc_make_tree(%struct.ECALC_TOKEN* %85)
store %struct.ECALC_TOKEN* %86, %struct.ECALC_TOKEN** %9
%87 = load %struct.ECALC_TOKEN*, %struct.ECALC_TOKEN** %9
%88 = icmp ne %struct.ECALC_TOKEN* %87, null
br i1 %88, label %89, label %101
89: ; preds = %82
%90 = load %struct.ECALC_TOKEN*, %struct.ECALC_TOKEN** %9
%91 = getelementptr inbounds [26 x double*], [26 x double*]* %11, i64 0, i64 0
%92 = load double, double* %12
%93 = call double @ecalc_get_tree_value(%struct.ECALC_TOKEN* %90, double** %91, double %92)
store double %93, double* %12
%94 = load double, double* %12
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %94)
%96 = load double, double* %12
%97 = fptosi double %96 to i32
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %97)
%99 = load double, double* %12
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %99)
br label %103
101: ; preds = %82
%102 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %103
103: ; preds = %101, %89
%104 = load %struct.ECALC_TOKEN*, %struct.ECALC_TOKEN** %9
%105 = call i32 @ecalc_free_token(%struct.ECALC_TOKEN* %104)
br label %41
106: ; preds = %80
ret i32 0
}

LLVM IR (-O2):
%struct.ECALC_TOKEN = type { i32 }
@.str = [30 x i8] c"exit \E3\81\A8\E5\85\A5\E5\8A\9B\E3\81\99\E3\82\8B\E3\81\A8\E7\B5\82\E4\BA\86\00"
@.str.1 = [7 x i8] c"\E5\BC\8F > \00"
@stdin = global i32 0
@.str.2 = [5 x i8] c"exit\00"
@.str.3 = [6 x i8] c"\09%lf\0A\00"
@.str.4 = [7 x i8] c"\090x%X\0A\00"
@.str.5 = [5 x i8] c"\09%e\0A\00"
@.str.6 = [8 x i8] c"FAILED!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [26 x double]
%5 = alloca [26 x double*]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = bitcast [26 x double]* %4 to i8*
%8 = bitcast [26 x double*]* %5 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 (...) @ecalc_memman_init()
%11 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 0
%12 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 0
store double* %11, double** %12
%13 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 1
%14 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 1
store double* %13, double** %14
%15 = bitcast [26 x double]* %4 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %15
%16 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 2
%17 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 2
store double* %16, double** %17
%18 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 3
%19 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 3
store double* %18, double** %19
%20 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %20
%21 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 4
%22 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 4
store double* %21, double** %22
%23 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 5
%24 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 5
store double* %23, double** %24
%25 = bitcast double* %21 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %25
%26 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 6
%27 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 6
store double* %26, double** %27
%28 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 7
%29 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 7
store double* %28, double** %29
%30 = bitcast double* %26 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %30
%31 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 8
%32 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 8
store double* %31, double** %32
%33 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 9
%34 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 9
store double* %33, double** %34
%35 = bitcast double* %31 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %35
%36 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 10
%37 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 10
store double* %36, double** %37
%38 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 11
%39 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 11
store double* %38, double** %39
%40 = bitcast double* %36 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %40
%41 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 12
%42 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 12
store double* %41, double** %42
%43 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 13
%44 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 13
store double* %43, double** %44
%45 = bitcast double* %41 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %45
%46 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 14
%47 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 14
store double* %46, double** %47
%48 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 15
%49 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 15
store double* %48, double** %49
%50 = bitcast double* %46 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %50
%51 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 16
%52 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 16
store double* %51, double** %52
%53 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 17
%54 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 17
store double* %53, double** %54
%55 = bitcast double* %51 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %55
%56 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 18
%57 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 18
store double* %56, double** %57
%58 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 19
%59 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 19
store double* %58, double** %59
%60 = bitcast double* %56 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %60
%61 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 20
%62 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 20
store double* %61, double** %62
%63 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 21
%64 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 21
store double* %63, double** %64
%65 = bitcast double* %61 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %65
%66 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 22
%67 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 22
store double* %66, double** %67
%68 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 23
%69 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 23
store double* %68, double** %69
%70 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %70
%71 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 24
%72 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 24
store double* %71, double** %72
%73 = getelementptr inbounds [26 x double], [26 x double]* %4, i64 0, i64 25
%74 = getelementptr inbounds [26 x double*], [26 x double*]* %5, i64 0, i64 25
store double* %73, double** %74
%75 = bitcast double* %71 to <2 x double>*
store <2 x double> <double 2.400000e+01, double 2.400000e+01>, <2 x double>* %75
%76 = icmp sgt i32 %0, 1
br i1 %76, label %77, label %81
77: ; preds = %2
%78 = getelementptr inbounds i8*, i8** %1, i64 1
%79 = load i8*, i8** %78
%80 = call i32 @strcpy(i8* %6, i8* %79)
br label %104
81: ; preds = %2, %117
%82 = phi double [ %118, %117 ], [ 0.000000e+00, %2 ]
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%84 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 255
store i8 0, i8* %84
br label %85
85: ; preds = %81, %90
%86 = phi i64 [ 0, %81 ], [ %93, %90 ]
%87 = load i32, i32* @stdin
%88 = call i32 @getc(i32 %87)
%89 = icmp eq i32 %88, 10
br i1 %89, label %95, label %90
90: ; preds = %85
%91 = trunc i32 %88 to i8
%92 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 %86
store i8 %91, i8* %92
%93 = add nuw nsw i64 %86, 1
%94 = icmp eq i64 %93, 255
br i1 %94, label %98, label %85
95: ; preds = %85
%96 = and i64 %86, 4294967295
%97 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 %96
store i8 0, i8* %97
br label %101
98: ; preds = %90, %98
%99 = call signext i8 (...) @getchar()
%100 = icmp eq i8 %99, 10
br i1 %100, label %101, label %98
101: ; preds = %98, %95
%102 = call i32 @bcmp(i8* dereferenceable(5) %6, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64 5)
%103 = icmp eq i32 %102, 0
br i1 %103, label %120, label %104
104: ; preds = %101, %77
%105 = phi double [ 0.000000e+00, %77 ], [ %82, %101 ]
%106 = call %struct.ECALC_TOKEN* @ecalc_make_token(i8* %6)
%107 = call %struct.ECALC_TOKEN* @ecalc_make_tree(%struct.ECALC_TOKEN* %106)
%108 = icmp eq %struct.ECALC_TOKEN* %107, null
br i1 %108, label %115, label %109
109: ; preds = %104
%110 = call double @ecalc_get_tree_value(%struct.ECALC_TOKEN* %107, double** %12, double %105)
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %110)
%112 = fptosi double %110 to i32
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %112)
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %110)
br label %117
115: ; preds = %104
%116 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %117
117: ; preds = %115, %109
%118 = phi double [ %110, %109 ], [ %105, %115 ]
%119 = call i32 @ecalc_free_token(%struct.ECALC_TOKEN* %107)
br label %81
120: ; preds = %101
ret i32 0
}