#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
double strtod(char *, char **);
int main(int argc, char **argv) {
  double num[100];
  char *endp;
  char *blank = "";
  char op;
  int top = 0;
  int i;
  double op1, op2;
  if (argc == 1) {
    printf("input para error.\n");
    return -1;
  }
  for (i = 1; i < argc; ++i) {
    op1 = strtod(argv[i], &endp);
    if (strcmp(endp, blank) == 0) {
      num[top++] = op1;
      continue;
    }
    if (top < 2) {
      printf("input para error.\n");
      return -1;
    }
    if (strcmp(argv[i], "+") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 + op2;
    }
    if (strcmp(argv[i], "-") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 - op2;
    }
    if (strcmp(argv[i], ".") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 * op2;
    }
    if (strcmp(argv[i], "/") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 / op2;
    }
  }
  if (top == 1)
    printf("result is %f\n", num[0]);
  else
    printf("input para error.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x360,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec2(%rip),%rax
mov    %rax,-0x340(%rbp)
movl   $0x0,-0x348(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1185 <main+0x55>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14d8 <main+0x3a8>
movl   $0x1,-0x34c(%rbp)
mov    -0x34c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    149b <main+0x36b>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x338(%rbp),%rsi
call   1030 <strtod@plt>
movsd  %xmm0,-0x358(%rbp)
ff
mov    -0x338(%rbp),%rdi
mov    -0x340(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1207 <main+0xd7>
movsd  -0x358(%rbp),%xmm0
ff
mov    -0x348(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x348(%rbp)
cltq
movsd  %xmm0,-0x330(%rbp,%rax,8)
jmp    1487 <main+0x357>
cmpl   $0x2,-0x348(%rbp)
jge    122e <main+0xfe>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14d8 <main+0x3a8>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdcf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12c3 <main+0x193>
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x360(%rbp)
ff
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x358(%rbp)
ff
movsd  -0x358(%rbp),%xmm0
ff
addsd  -0x360(%rbp),%xmm0
ff
mov    -0x348(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x348(%rbp)
cltq
movsd  %xmm0,-0x330(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd3c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1358 <main+0x228>
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x360(%rbp)
ff
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x358(%rbp)
ff
movsd  -0x358(%rbp),%xmm0
ff
subsd  -0x360(%rbp),%xmm0
ff
mov    -0x348(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x348(%rbp)
cltq
movsd  %xmm0,-0x330(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xca9(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13ed <main+0x2bd>
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x360(%rbp)
ff
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x358(%rbp)
ff
movsd  -0x358(%rbp),%xmm0
ff
mulsd  -0x360(%rbp),%xmm0
ff
mov    -0x348(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x348(%rbp)
cltq
movsd  %xmm0,-0x330(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc16(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1482 <main+0x352>
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x360(%rbp)
ff
mov    -0x348(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x348(%rbp)
cltq
movsd  -0x330(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x358(%rbp)
ff
movsd  -0x358(%rbp),%xmm0
ff
divsd  -0x360(%rbp),%xmm0
ff
mov    -0x348(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x348(%rbp)
cltq
movsd  %xmm0,-0x330(%rbp,%rax,8)
ff ff
jmp    1487 <main+0x357>
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    118f <main+0x5f>
cmpl   $0x1,-0x348(%rbp)
jne    14c3 <main+0x393>
movsd  -0x330(%rbp),%xmm0
ff
lea    0xb64(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    14d1 <main+0x3a1>
lea    0xb36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x360,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
cmp    $0x1,%edi
jne    116c <main+0x2c>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%eax
jmp    12c9 <main+0x189>
jle    12bb <main+0x17b>
mov    %rsi,%rbx
mov    %edi,%r13d
xor    %r12d,%r12d
mov    $0x1,%ebp
lea    0x8(%rsp),%r14
lea    0xe87(%rip),%r15
jmp    11af <main+0x6f>
xchg   %ax,%ax
movslq %r12d,%rax
add    $0x1,%r12d
movsd  (%rsp),%xmm0
movsd  %xmm0,0x10(%rsp,%rax,8)
add    $0x1,%rbp
cmp    %rbp,%r13
je     129f <main+0x15f>
mov    (%rbx,%rbp,8),%rdi
mov    %r14,%rsi
call   1040 <strtod@plt>
movsd  %xmm0,(%rsp)
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1190 <main+0x50>
cmp    $0x1,%r12d
jle    1156 <main+0x16>
mov    (%rbx,%rbp,8),%rdi
lea    0xe19(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1211 <main+0xd1>
lea    -0x1(%r12),%eax
movsd  0x10(%rsp,%rax,8),%xmm0
add    $0xfffffffe,%r12d
addsd  0x10(%rsp,%r12,8),%xmm0
movsd  %xmm0,0x10(%rsp,%r12,8)
mov    %eax,%r12d
mov    (%rbx,%rbp,8),%rdi
lea    0xde6(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    123e <main+0xfe>
movslq %r12d,%rax
add    $0xffffffff,%r12d
movsd  (%rsp,%rax,8),%xmm0
subsd  0x10(%rsp,%r12,8),%xmm0
movsd  %xmm0,(%rsp,%rax,8)
mov    (%rbx,%rbp,8),%rdi
lea    0xddb(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    126a <main+0x12a>
movslq %r12d,%rax
add    $0xffffffff,%r12d
movsd  0x8(%rsp,%rax,8),%xmm0
mulsd  (%rsp,%rax,8),%xmm0
movsd  %xmm0,(%rsp,%rax,8)
mov    (%rbx,%rbp,8),%rdi
lea    0xd8f(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    11a2 <main+0x62>
movslq %r12d,%rax
add    $0xffffffff,%r12d
movsd  (%rsp,%rax,8),%xmm0
divsd  0x8(%rsp,%rax,8),%xmm0
movsd  %xmm0,(%rsp,%rax,8)
jmp    11a2 <main+0x62>
cmp    $0x1,%r12d
jne    12bb <main+0x17b>
movsd  0x10(%rsp),%xmm0
lea    0xd54(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    12c7 <main+0x187>
lea    0xd52(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [19 x i8] c"input para error.\0A\00"
@.str.2 = [2 x i8] c"+\00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [2 x i8] c".\00"
@.str.5 = [2 x i8] c"/\00"
@.str.6 = [14 x i8] c"result is %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x double]
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
%13 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %8
store i32 0, i32* %10
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %163
18: ; preds = %2
store i32 1, i32* %11
br label %19
19: ; preds = %150, %18
%20 = load i32, i32* %11
%21 = load i32, i32* %4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %153
23: ; preds = %19
%24 = load i8**, i8*** %5
%25 = load i32, i32* %11
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %24, i64 %26
%28 = load i8*, i8** %27
%29 = call double @strtod(i8* %28, i8** %7)
store double %29, double* %12
%30 = load i8*, i8** %7
%31 = load i8*, i8** %8
%32 = call i64 @strcmp(i8* %30, i8* %31)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %40
34: ; preds = %23
%35 = load double, double* %12
%36 = load i32, i32* %10
%37 = add nsw i32 %36, 1
store i32 %37, i32* %10
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %38
store double %35, double* %39
br label %150
40: ; preds = %23
%41 = load i32, i32* %10
%42 = icmp slt i32 %41, 2
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %163
45: ; preds = %40
%46 = load i8**, i8*** %5
%47 = load i32, i32* %11
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %71
53: ; preds = %45
%54 = load i32, i32* %10
%55 = add nsw i32 %54, -1
store i32 %55, i32* %10
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %56
%58 = load double, double* %57
store double %58, double* %13
%59 = load i32, i32* %10
%60 = add nsw i32 %59, -1
store i32 %60, i32* %10
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %61
%63 = load double, double* %62
store double %63, double* %12
%64 = load double, double* %12
%65 = load double, double* %13
%66 = fadd double %64, %65
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
store i32 %68, i32* %10
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %69
store double %66, double* %70
br label %71
71: ; preds = %53, %45
%72 = load i8**, i8*** %5
%73 = load i32, i32* %11
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
%76 = load i8*, i8** %75
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %97
79: ; preds = %71
%80 = load i32, i32* %10
%81 = add nsw i32 %80, -1
store i32 %81, i32* %10
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %82
%84 = load double, double* %83
store double %84, double* %13
%85 = load i32, i32* %10
%86 = add nsw i32 %85, -1
store i32 %86, i32* %10
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %87
%89 = load double, double* %88
store double %89, double* %12
%90 = load double, double* %12
%91 = load double, double* %13
%92 = fsub double %90, %91
%93 = load i32, i32* %10
%94 = add nsw i32 %93, 1
store i32 %94, i32* %10
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %95
store double %92, double* %96
br label %97
97: ; preds = %79, %71
%98 = load i8**, i8*** %5
%99 = load i32, i32* %11
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8*, i8** %98, i64 %100
%102 = load i8*, i8** %101
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %123
105: ; preds = %97
%106 = load i32, i32* %10
%107 = add nsw i32 %106, -1
store i32 %107, i32* %10
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %108
%110 = load double, double* %109
store double %110, double* %13
%111 = load i32, i32* %10
%112 = add nsw i32 %111, -1
store i32 %112, i32* %10
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %113
%115 = load double, double* %114
store double %115, double* %12
%116 = load double, double* %12
%117 = load double, double* %13
%118 = fmul double %116, %117
%119 = load i32, i32* %10
%120 = add nsw i32 %119, 1
store i32 %120, i32* %10
%121 = sext i32 %119 to i64
%122 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %121
store double %118, double* %122
br label %123
123: ; preds = %105, %97
%124 = load i8**, i8*** %5
%125 = load i32, i32* %11
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8*, i8** %124, i64 %126
%128 = load i8*, i8** %127
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %149
131: ; preds = %123
%132 = load i32, i32* %10
%133 = add nsw i32 %132, -1
store i32 %133, i32* %10
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %134
%136 = load double, double* %135
store double %136, double* %13
%137 = load i32, i32* %10
%138 = add nsw i32 %137, -1
store i32 %138, i32* %10
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %139
%141 = load double, double* %140
store double %141, double* %12
%142 = load double, double* %12
%143 = load double, double* %13
%144 = fdiv double %142, %143
%145 = load i32, i32* %10
%146 = add nsw i32 %145, 1
store i32 %146, i32* %10
%147 = sext i32 %145 to i64
%148 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %147
store double %144, double* %148
br label %149
149: ; preds = %131, %123
br label %150
150: ; preds = %149, %34
%151 = load i32, i32* %11
%152 = add nsw i32 %151, 1
store i32 %152, i32* %11
br label %19
153: ; preds = %19
%154 = load i32, i32* %10
%155 = icmp eq i32 %154, 1
br i1 %155, label %156, label %160
156: ; preds = %153
%157 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 0
%158 = load double, double* %157
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %158)
br label %162
160: ; preds = %153
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %162
162: ; preds = %160, %156
store i32 0, i32* %3
br label %163
163: ; preds = %162, %43, %16
%164 = load i32, i32* %3
ret i32 %164
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"+\00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [2 x i8] c".\00"
@.str.5 = [2 x i8] c"/\00"
@.str.6 = [14 x i8] c"result is %f\0A\00"
@str.8 = [18 x i8] c"input para error.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x double]
%4 = alloca i8*
%5 = bitcast [100 x double]* %3 to i8*
%6 = bitcast i8** %4 to i8*
%7 = icmp eq i32 %0, 1
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %100
10: ; preds = %8
%11 = zext i32 %0 to i64
br label %14
12: ; preds = %2
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.8, i64 0, i64 0))
br label %102
14: ; preds = %10, %90
%15 = phi i64 [ 1, %10 ], [ %92, %90 ]
%16 = phi i32 [ 0, %10 ], [ %91, %90 ]
%17 = getelementptr inbounds i8*, i8** %1, i64 %15
%18 = load i8*, i8** %17
%19 = call double @strtod(i8* %18, i8** %4)
%20 = load i8*, i8** %4
%21 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %14
%24 = add nsw i32 %16, 1
%25 = sext i32 %16 to i64
%26 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %25
store double %19, double* %26
br label %90
27: ; preds = %14
%28 = icmp slt i32 %16, 2
br i1 %28, label %29, label %31
29: ; preds = %27
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.8, i64 0, i64 0))
br label %102
31: ; preds = %27
%32 = load i8*, i8** %17
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %45
35: ; preds = %31
%36 = add nsw i32 %16, -1
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %37
%39 = load double, double* %38
%40 = add nsw i32 %16, -2
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %41
%43 = load double, double* %42
%44 = fadd double %39, %43
store double %44, double* %42
br label %45
45: ; preds = %35, %31
%46 = phi i32 [ %36, %35 ], [ %16, %31 ]
%47 = load i8*, i8** %17
%48 = tail call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %60
50: ; preds = %45
%51 = add nsw i32 %46, -1
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %52
%54 = load double, double* %53
%55 = add nsw i32 %46, -2
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %56
%58 = load double, double* %57
%59 = fsub double %58, %54
store double %59, double* %57
br label %60
60: ; preds = %50, %45
%61 = phi i32 [ %51, %50 ], [ %46, %45 ]
%62 = load i8*, i8** %17
%63 = tail call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %75
65: ; preds = %60
%66 = add nsw i32 %61, -1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %67
%69 = load double, double* %68
%70 = add nsw i32 %61, -2
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %71
%73 = load double, double* %72
%74 = fmul double %69, %73
store double %74, double* %72
br label %75
75: ; preds = %65, %60
%76 = phi i32 [ %66, %65 ], [ %61, %60 ]
%77 = load i8*, i8** %17
%78 = tail call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %90
80: ; preds = %75
%81 = add nsw i32 %76, -1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %82
%84 = load double, double* %83
%85 = add nsw i32 %76, -2
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %86
%88 = load double, double* %87
%89 = fdiv double %88, %84
store double %89, double* %87
br label %90
90: ; preds = %75, %80, %23
%91 = phi i32 [ %24, %23 ], [ %81, %80 ], [ %76, %75 ]
%92 = add nuw nsw i64 %15, 1
%93 = icmp eq i64 %92, %11
br i1 %93, label %94, label %14
94: ; preds = %90
%95 = icmp eq i32 %91, 1
br i1 %95, label %96, label %100
96: ; preds = %94
%97 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 0
%98 = load double, double* %97
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %98)
br label %102
100: ; preds = %8, %94
%101 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.8, i64 0, i64 0))
br label %102
102: ; preds = %96, %100, %29, %12
%103 = phi i32 [ -1, %12 ], [ -1, %29 ], [ 0, %100 ], [ 0, %96 ]
ret i32 %103
}