int main(int argc, char *argv[]) {
  int i;
  int printa = 0;
  int prints = 0;
  int printm = 0;
  if (argc == 1)
    return 0;
  else if (argv[2] == '\0') {
    printf("There is no number in your input.\n");
    return 0;
  }
  for (i = 0; i < argc; i++) {
    if (strcmp(argv[i], "-a") == 0)
      printa = 1;
    if (strcmp(argv[i], "-s") == 0)
      prints = 1;
    if (strcmp(argv[i], "-m") == 0)
      printm = 1;
    if (strcmp(argv[i], "-as") == 0 || strcmp(argv[i], "-sa") == 0) {
      printa = 1;
      prints = 1;
    }
    if (strcmp(argv[i], "-am") == 0 || strcmp(argv[i], "-ma") == 0) {
      printa = 1;
      printm = 1;
    }
    if (strcmp(argv[i], "-sm") == 0 || strcmp(argv[i], "-ms") == 0) {
      printm = 1;
      prints = 1;
    }
    if (strcmp(argv[i], "-asm") == 0 || strcmp(argv[i], "-sam") == 0 ||
        strcmp(argv[i], "-sma") == 0 || strcmp(argv[i], "-ams") == 0 ||
        strcmp(argv[i], "-msa") == 0 || strcmp(argv[i], "-mas") == 0) {
      printa = 1;
      prints = 1;
      printm = 1;
    }
  }
  if (printa) {
    int sum = 0;
    for (i = 1; i < argc; i++) {
      if (atoi(argv[i]) >= 0 && atoi(argv[i]) <= 9)
        sum += atoi(argv[i]);
    }
    printf("%d\n", sum);
  }
  if (prints) {
    int i;
    int s = atoi(argv[2]);
    for (i = 3; i < argc; i++) {
      if (atoi(argv[i]) >= 0 && atoi(argv[i]) <= 9)
        s -= atoi(argv[i]);
    }
    printf("%d\n", s);
  }
  if (printm) {
    if (argv[2] != '\0') {
      int m = 1;
      for (i = 2; i < argc; i++) {
        if (atoi(argv[i]) >= 0 && atoi(argv[i]) <= 9)
          m *= atoi(argv[i]);
      }
      printf("%d\n", m);
    } else
      printf("%d\n", 0);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1171 <main+0x41>
movl   $0x0,-0x4(%rbp)
jmp    1621 <main+0x4f1>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x10(%rax)
jne    119a <main+0x6a>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1621 <main+0x4f1>
jmp    119f <main+0x6f>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1408 <main+0x2d8>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe5e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11da <main+0xaa>
movl   $0x1,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe39(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1202 <main+0xd2>
movl   $0x1,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe14(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    122a <main+0xfa>
movl   $0x1,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdef(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     126c <main+0x13c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdd2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    127a <main+0x14a>
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12bc <main+0x18c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd8a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12ca <main+0x19a>
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd5f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     130c <main+0x1dc>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd42(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    131a <main+0x1ea>
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd17(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <main+0x2b0>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcfb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <main+0x2b0>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcdf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <main+0x2b0>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcc3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <main+0x2b0>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xca7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <main+0x2b0>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc8b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13f5 <main+0x2c5>
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
jmp    13fa <main+0x2ca>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a6 <main+0x76>
cmpl   $0x0,-0x18(%rbp)
je     14a1 <main+0x371>
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1490 <main+0x360>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x0,%eax
jl     147d <main+0x34d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x9,%eax
jg     147d <main+0x34d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1482 <main+0x352>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1420 <main+0x2f0>
mov    -0x24(%rbp),%esi
lea    0xbc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1549 <main+0x419>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
mov    %eax,-0x2c(%rbp)
movl   $0x3,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1538 <main+0x408>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x0,%eax
jl     1525 <main+0x3f5>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x9,%eax
jg     1525 <main+0x3f5>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
jmp    152a <main+0x3fa>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14c4 <main+0x394>
mov    -0x2c(%rbp),%esi
lea    0xb20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
je     160c <main+0x4dc>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     15f7 <main+0x4c7>
movl   $0x1,-0x30(%rbp)
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15e1 <main+0x4b1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x0,%eax
jl     15ce <main+0x49e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
cmp    $0x9,%eax
jg     15ce <main+0x49e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   1050 <atoi@plt>
imul   -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    15d3 <main+0x4a3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1570 <main+0x440>
mov    -0x30(%rbp),%esi
lea    0xa77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1607 <main+0x4d7>
lea    0xa64(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    160c <main+0x4dc>
lea    0xa0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x1,%edi
je     149c <main+0x34c>
mov    %rsi,%rbx
cmpq   $0x0,0x10(%rsi)
je     137a <main+0x22a>
test   %edi,%edi
jle    1492 <main+0x342>
mov    %edi,0x14(%rsp)
mov    %edi,%eax
mov    %rax,0x8(%rsp)
xor    %ebp,%ebp
xor    %r13d,%r13d
xor    %r14d,%r14d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rbx,%rbp,8),%r15
mov    %r15,%rdi
lea    0xe58(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
mov    $0x1,%eax
cmove  %eax,%r13d
mov    %r15,%rdi
lea    0xe41(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1218 <main+0xc8>
mov    %r15,%rdi
lea    0xe28(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
mov    $0x1,%eax
cmove  %eax,%r14d
mov    %r15,%rdi
lea    0xe0b(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
mov    $0x1,%eax
cmove  %eax,%r12d
mov    %r15,%rdi
lea    0xdfe(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1224 <main+0xd4>
mov    $0x1,%r12d
mov    $0x1,%r14d
mov    %r15,%rdi
lea    0xde3(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     124a <main+0xfa>
mov    %r15,%rdi
lea    0xdd4(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1256 <main+0x106>
mov    $0x1,%r12d
mov    $0x1,%r13d
mov    %r15,%rdi
lea    0xdb9(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     127c <main+0x12c>
mov    %r15,%rdi
lea    0xdaa(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1288 <main+0x138>
mov    $0x1,%r14d
mov    $0x1,%r13d
mov    %r15,%rdi
lea    0xd8f(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1300 <main+0x1b0>
mov    %r15,%rdi
lea    0xd81(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1300 <main+0x1b0>
mov    %r15,%rdi
lea    0xd73(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1300 <main+0x1b0>
mov    %r15,%rdi
lea    0xd65(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1300 <main+0x1b0>
mov    %r15,%rdi
lea    0xd57(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1300 <main+0x1b0>
mov    %r15,%rdi
lea    0xd49(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1312 <main+0x1c2>
nopw   0x0(%rax,%rax,1)
mov    $0x1,%r12d
mov    $0x1,%r14d
mov    $0x1,%r13d
add    $0x1,%rbp
cmp    %rbp,0x8(%rsp)
jne    11a0 <main+0x50>
test   %r12d,%r12d
mov    0x14(%rsp),%r12d
je     139c <main+0x24c>
xor    %r15d,%r15d
cmp    $0x2,%r12d
jl     138b <main+0x23b>
mov    $0x1,%ebp
xor    %r15d,%r15d
jmp    134b <main+0x1fb>
xchg   %ax,%ax
add    $0x1,%rbp
cmp    %rbp,0x8(%rsp)
je     138b <main+0x23b>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
test   %eax,%eax
js     1340 <main+0x1f0>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
cmp    $0x9,%eax
jg     1340 <main+0x1f0>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
add    %eax,%r15d
jmp    1340 <main+0x1f0>
lea    0xcc2(%rip),%rdi
call   1040 <puts@plt>
jmp    149c <main+0x34c>
lea    0xcad(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r14d,%r14d
je     140b <main+0x2bb>
mov    0x10(%rbx),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
mov    %eax,%r14d
cmp    $0x4,%r12d
jl     13fa <main+0x2aa>
mov    $0x3,%ebp
jmp    13cb <main+0x27b>
nopl   0x0(%rax)
add    $0x1,%rbp
cmp    %rbp,0x8(%rsp)
je     13fa <main+0x2aa>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
test   %eax,%eax
js     13c0 <main+0x270>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
cmp    $0x9,%eax
jg     13c0 <main+0x270>
mov    (%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
sub    %eax,%r14d
jmp    13c0 <main+0x270>
lea    0xc3e(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r13d,%r13d
je     1492 <main+0x342>
mov    0x10(%rbx),%rdi
test   %rdi,%rdi
je     147e <main+0x32e>
mov    $0x1,%r14d
cmp    $0x3,%r12d
jl     1481 <main+0x331>
addq   $0xfffffffffffffffd,0x8(%rsp)
mov    $0x1,%r14d
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <atoi@plt>
test   %eax,%eax
js     146c <main+0x31c>
mov    0x10(%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
cmp    $0x9,%eax
jg     146c <main+0x31c>
mov    0x10(%rbx,%rbp,8),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
imul   %eax,%r14d
cmp    %rbp,0x8(%rsp)
je     1481 <main+0x331>
mov    0x18(%rbx,%rbp,8),%rdi
add    $0x1,%rbp
jmp    1440 <main+0x2f0>
xor    %r14d,%r14d
lea    0xbb7(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"There is no number in your input.\0A\00"
@.str.1 = [3 x i8] c"-a\00"
@.str.2 = [3 x i8] c"-s\00"
@.str.3 = [3 x i8] c"-m\00"
@.str.4 = [4 x i8] c"-as\00"
@.str.5 = [4 x i8] c"-sa\00"
@.str.6 = [4 x i8] c"-am\00"
@.str.7 = [4 x i8] c"-ma\00"
@.str.8 = [4 x i8] c"-sm\00"
@.str.9 = [4 x i8] c"-ms\00"
@.str.10 = [5 x i8] c"-asm\00"
@.str.11 = [5 x i8] c"-sam\00"
@.str.12 = [5 x i8] c"-sma\00"
@.str.13 = [5 x i8] c"-ams\00"
@.str.14 = [5 x i8] c"-msa\00"
@.str.15 = [5 x i8] c"-mas\00"
@.str.16 = [4 x i8] c"%d\0A\00"
@.str.17 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 0, i32* %3
br label %295
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %295
24: ; preds = %17
br label %25
25: ; preds = %24
store i32 0, i32* %6
br label %26
26: ; preds = %158, %25
%27 = load i32, i32* %6
%28 = load i32, i32* %4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %161
30: ; preds = %26
%31 = load i8**, i8*** %5
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8*, i8** %31, i64 %33
%35 = load i8*, i8** %34
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %30
store i32 1, i32* %7
br label %39
39: ; preds = %38, %30
%40 = load i8**, i8*** %5
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %40, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 @strcmp(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %39
store i32 1, i32* %8
br label %48
48: ; preds = %47, %39
%49 = load i8**, i8*** %5
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8*, i8** %49, i64 %51
%53 = load i8*, i8** %52
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %48
store i32 1, i32* %9
br label %57
57: ; preds = %56, %48
%58 = load i8**, i8*** %5
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%64 = icmp eq i32 %63, 0
br i1 %64, label %73, label %65
65: ; preds = %57
%66 = load i8**, i8*** %5
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8*, i8** %66, i64 %68
%70 = load i8*, i8** %69
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %65, %57
store i32 1, i32* %7
store i32 1, i32* %8
br label %74
74: ; preds = %73, %65
%75 = load i8**, i8*** %5
%76 = load i32, i32* %6
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i32 @strcmp(i8* %79, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%81 = icmp eq i32 %80, 0
br i1 %81, label %90, label %82
82: ; preds = %74
%83 = load i8**, i8*** %5
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %83, i64 %85
%87 = load i8*, i8** %86
%88 = call i32 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %82, %74
store i32 1, i32* %7
store i32 1, i32* %9
br label %91
91: ; preds = %90, %82
%92 = load i8**, i8*** %5
%93 = load i32, i32* %6
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8*, i8** %92, i64 %94
%96 = load i8*, i8** %95
%97 = call i32 @strcmp(i8* %96, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%98 = icmp eq i32 %97, 0
br i1 %98, label %107, label %99
99: ; preds = %91
%100 = load i8**, i8*** %5
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %100, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 @strcmp(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %99, %91
store i32 1, i32* %9
store i32 1, i32* %8
br label %108
108: ; preds = %107, %99
%109 = load i8**, i8*** %5
%110 = load i32, i32* %6
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8*, i8** %109, i64 %111
%113 = load i8*, i8** %112
%114 = call i32 @strcmp(i8* %113, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%115 = icmp eq i32 %114, 0
br i1 %115, label %156, label %116
116: ; preds = %108
%117 = load i8**, i8*** %5
%118 = load i32, i32* %6
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8*, i8** %117, i64 %119
%121 = load i8*, i8** %120
%122 = call i32 @strcmp(i8* %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%123 = icmp eq i32 %122, 0
br i1 %123, label %156, label %124
124: ; preds = %116
%125 = load i8**, i8*** %5
%126 = load i32, i32* %6
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8*, i8** %125, i64 %127
%129 = load i8*, i8** %128
%130 = call i32 @strcmp(i8* %129, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%131 = icmp eq i32 %130, 0
br i1 %131, label %156, label %132
132: ; preds = %124
%133 = load i8**, i8*** %5
%134 = load i32, i32* %6
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8*, i8** %133, i64 %135
%137 = load i8*, i8** %136
%138 = call i32 @strcmp(i8* %137, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%139 = icmp eq i32 %138, 0
br i1 %139, label %156, label %140
140: ; preds = %132
%141 = load i8**, i8*** %5
%142 = load i32, i32* %6
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8*, i8** %141, i64 %143
%145 = load i8*, i8** %144
%146 = call i32 @strcmp(i8* %145, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%147 = icmp eq i32 %146, 0
br i1 %147, label %156, label %148
148: ; preds = %140
%149 = load i8**, i8*** %5
%150 = load i32, i32* %6
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i8*, i8** %149, i64 %151
%153 = load i8*, i8** %152
%154 = call i32 @strcmp(i8* %153, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%155 = icmp eq i32 %154, 0
br i1 %155, label %156, label %157
156: ; preds = %148, %140, %132, %124, %116, %108
store i32 1, i32* %7
store i32 1, i32* %8
store i32 1, i32* %9
br label %157
157: ; preds = %156, %148
br label %158
158: ; preds = %157
%159 = load i32, i32* %6
%160 = add nsw i32 %159, 1
store i32 %160, i32* %6
br label %26
161: ; preds = %26
%162 = load i32, i32* %7
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %201
164: ; preds = %161
store i32 0, i32* %10
store i32 1, i32* %6
br label %165
165: ; preds = %195, %164
%166 = load i32, i32* %6
%167 = load i32, i32* %4
%168 = icmp slt i32 %166, %167
br i1 %168, label %169, label %198
169: ; preds = %165
%170 = load i8**, i8*** %5
%171 = load i32, i32* %6
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i8*, i8** %170, i64 %172
%174 = load i8*, i8** %173
%175 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %174)
%176 = icmp sge i32 %175, 0
br i1 %176, label %177, label %194
177: ; preds = %169
%178 = load i8**, i8*** %5
%179 = load i32, i32* %6
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8*, i8** %178, i64 %180
%182 = load i8*, i8** %181
%183 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %182)
%184 = icmp sle i32 %183, 9
br i1 %184, label %185, label %194
185: ; preds = %177
%186 = load i8**, i8*** %5
%187 = load i32, i32* %6
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i8*, i8** %186, i64 %188
%190 = load i8*, i8** %189
%191 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %190)
%192 = load i32, i32* %10
%193 = add nsw i32 %192, %191
store i32 %193, i32* %10
br label %194
194: ; preds = %185, %177, %169
br label %195
195: ; preds = %194
%196 = load i32, i32* %6
%197 = add nsw i32 %196, 1
store i32 %197, i32* %6
br label %165
198: ; preds = %165
%199 = load i32, i32* %10
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %199)
br label %201
201: ; preds = %198, %161
%202 = load i32, i32* %8
%203 = icmp ne i32 %202, 0
br i1 %203, label %204, label %245
204: ; preds = %201
%205 = load i8**, i8*** %5
%206 = getelementptr inbounds i8*, i8** %205, i64 2
%207 = load i8*, i8** %206
%208 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %207)
store i32 %208, i32* %12
store i32 3, i32* %11
br label %209
209: ; preds = %239, %204
%210 = load i32, i32* %11
%211 = load i32, i32* %4
%212 = icmp slt i32 %210, %211
br i1 %212, label %213, label %242
213: ; preds = %209
%214 = load i8**, i8*** %5
%215 = load i32, i32* %11
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds i8*, i8** %214, i64 %216
%218 = load i8*, i8** %217
%219 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %218)
%220 = icmp sge i32 %219, 0
br i1 %220, label %221, label %238
221: ; preds = %213
%222 = load i8**, i8*** %5
%223 = load i32, i32* %11
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i8*, i8** %222, i64 %224
%226 = load i8*, i8** %225
%227 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %226)
%228 = icmp sle i32 %227, 9
br i1 %228, label %229, label %238
229: ; preds = %221
%230 = load i8**, i8*** %5
%231 = load i32, i32* %11
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i8*, i8** %230, i64 %232
%234 = load i8*, i8** %233
%235 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %234)
%236 = load i32, i32* %12
%237 = sub nsw i32 %236, %235
store i32 %237, i32* %12
br label %238
238: ; preds = %229, %221, %213
br label %239
239: ; preds = %238
%240 = load i32, i32* %11
%241 = add nsw i32 %240, 1
store i32 %241, i32* %11
br label %209
242: ; preds = %209
%243 = load i32, i32* %12
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %243)
br label %245
245: ; preds = %242, %201
%246 = load i32, i32* %9
%247 = icmp ne i32 %246, 0
br i1 %247, label %248, label %293
248: ; preds = %245
%249 = load i8**, i8*** %5
%250 = getelementptr inbounds i8*, i8** %249, i64 2
%251 = load i8*, i8** %250
%252 = icmp ne i8* %251, null
br i1 %252, label %253, label %290
253: ; preds = %248
store i32 1, i32* %13
store i32 2, i32* %6
br label %254
254: ; preds = %284, %253
%255 = load i32, i32* %6
%256 = load i32, i32* %4
%257 = icmp slt i32 %255, %256
br i1 %257, label %258, label %287
258: ; preds = %254
%259 = load i8**, i8*** %5
%260 = load i32, i32* %6
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds i8*, i8** %259, i64 %261
%263 = load i8*, i8** %262
%264 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %263)
%265 = icmp sge i32 %264, 0
br i1 %265, label %266, label %283
266: ; preds = %258
%267 = load i8**, i8*** %5
%268 = load i32, i32* %6
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds i8*, i8** %267, i64 %269
%271 = load i8*, i8** %270
%272 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %271)
%273 = icmp sle i32 %272, 9
br i1 %273, label %274, label %283
274: ; preds = %266
%275 = load i8**, i8*** %5
%276 = load i32, i32* %6
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i8*, i8** %275, i64 %277
%279 = load i8*, i8** %278
%280 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %279)
%281 = load i32, i32* %13
%282 = mul nsw i32 %281, %280
store i32 %282, i32* %13
br label %283
283: ; preds = %274, %266, %258
br label %284
284: ; preds = %283
%285 = load i32, i32* %6
%286 = add nsw i32 %285, 1
store i32 %286, i32* %6
br label %254
287: ; preds = %254
%288 = load i32, i32* %13
%289 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %288)
br label %292
290: ; preds = %248
%291 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 0)
br label %292
292: ; preds = %290, %287
br label %293
293: ; preds = %292, %245
%294 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
store i32 0, i32* %3
br label %295
295: ; preds = %293, %22, %16
%296 = load i32, i32* %3
ret i32 %296
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"-a\00"
@.str.2 = [3 x i8] c"-s\00"
@.str.3 = [3 x i8] c"-m\00"
@.str.4 = [4 x i8] c"-as\00"
@.str.5 = [4 x i8] c"-sa\00"
@.str.6 = [4 x i8] c"-am\00"
@.str.7 = [4 x i8] c"-ma\00"
@.str.8 = [4 x i8] c"-sm\00"
@.str.9 = [4 x i8] c"-ms\00"
@.str.10 = [5 x i8] c"-asm\00"
@.str.11 = [5 x i8] c"-sam\00"
@.str.12 = [5 x i8] c"-sma\00"
@.str.13 = [5 x i8] c"-ams\00"
@.str.14 = [5 x i8] c"-msa\00"
@.str.15 = [5 x i8] c"-mas\00"
@.str.16 = [4 x i8] c"%d\0A\00"
@str = [34 x i8] c"There is no number in your input.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %175, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 2
%6 = load i8*, i8** %5
%7 = icmp eq i8* %6, null
br i1 %7, label %12, label %8
8: ; preds = %4
%9 = icmp sgt i32 %0, 0
br i1 %9, label %10, label %173
10: ; preds = %8
%11 = zext i32 %0 to i64
br label %14
12: ; preds = %4
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %175
14: ; preds = %10, %75
%15 = phi i64 [ 0, %10 ], [ %79, %75 ]
%16 = phi i32 [ 0, %10 ], [ %78, %75 ]
%17 = phi i32 [ 0, %10 ], [ %77, %75 ]
%18 = phi i32 [ 0, %10 ], [ %76, %75 ]
%19 = getelementptr inbounds i8*, i8** %1, i64 %15
%20 = load i8*, i8** %19
%21 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
%23 = select i1 %22, i32 1, i32 %16
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %35, label %26
26: ; preds = %14
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i32 1, i32 %17
%30 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
%32 = select i1 %31, i32 1, i32 %18
%33 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %26, %14
br label %36
36: ; preds = %35, %26
%37 = phi i32 [ 1, %35 ], [ %32, %26 ]
%38 = phi i32 [ 1, %35 ], [ %29, %26 ]
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41, %36
br label %45
45: ; preds = %44, %41
%46 = phi i32 [ 1, %44 ], [ %37, %41 ]
%47 = phi i32 [ 1, %44 ], [ %23, %41 ]
%48 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%49 = icmp eq i32 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %45
%51 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %50, %45
br label %54
54: ; preds = %53, %50
%55 = phi i32 [ 1, %53 ], [ %38, %50 ]
%56 = phi i32 [ 1, %53 ], [ %47, %50 ]
%57 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %74, label %59
59: ; preds = %54
%60 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %74, label %62
62: ; preds = %59
%63 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%64 = icmp eq i32 %63, 0
br i1 %64, label %74, label %65
65: ; preds = %62
%66 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%67 = icmp eq i32 %66, 0
br i1 %67, label %74, label %68
68: ; preds = %65
%69 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%70 = icmp eq i32 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %68
%72 = tail call i32 @strcmp(i8* dereferenceable(1) %20, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %71, %68, %65, %62, %59, %54
br label %75
75: ; preds = %71, %74
%76 = phi i32 [ 1, %74 ], [ %46, %71 ]
%77 = phi i32 [ 1, %74 ], [ %55, %71 ]
%78 = phi i32 [ 1, %74 ], [ %56, %71 ]
%79 = add nuw nsw i64 %15, 1
%80 = icmp eq i64 %79, %11
br i1 %80, label %81, label %14
81: ; preds = %75
%82 = icmp eq i32 %76, 0
br i1 %82, label %109, label %83
83: ; preds = %81
%84 = icmp sgt i32 %0, 1
br i1 %84, label %85, label %106
85: ; preds = %83
%86 = zext i32 %0 to i64
br label %87
87: ; preds = %85, %102
%88 = phi i64 [ 1, %85 ], [ %104, %102 ]
%89 = phi i32 [ 0, %85 ], [ %103, %102 ]
%90 = getelementptr inbounds i8*, i8** %1, i64 %88
%91 = load i8*, i8** %90
%92 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %91)
%93 = icmp sgt i32 %92, -1
br i1 %93, label %94, label %102
94: ; preds = %87
%95 = load i8*, i8** %90
%96 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %95)
%97 = icmp slt i32 %96, 10
br i1 %97, label %98, label %102
98: ; preds = %94
%99 = load i8*, i8** %90
%100 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %99)
%101 = add nsw i32 %100, %89
br label %102
102: ; preds = %87, %94, %98
%103 = phi i32 [ %101, %98 ], [ %89, %94 ], [ %89, %87 ]
%104 = add nuw nsw i64 %88, 1
%105 = icmp eq i64 %104, %86
br i1 %105, label %106, label %87
106: ; preds = %102, %83
%107 = phi i32 [ 0, %83 ], [ %103, %102 ]
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %106, %81
%110 = icmp eq i32 %77, 0
br i1 %110, label %139, label %111
111: ; preds = %109
%112 = load i8*, i8** %5
%113 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %112)
%114 = icmp sgt i32 %0, 3
br i1 %114, label %115, label %136
115: ; preds = %111
%116 = zext i32 %0 to i64
br label %117
117: ; preds = %115, %132
%118 = phi i64 [ 3, %115 ], [ %134, %132 ]
%119 = phi i32 [ %113, %115 ], [ %133, %132 ]
%120 = getelementptr inbounds i8*, i8** %1, i64 %118
%121 = load i8*, i8** %120
%122 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %121)
%123 = icmp sgt i32 %122, -1
br i1 %123, label %124, label %132
124: ; preds = %117
%125 = load i8*, i8** %120
%126 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %125)
%127 = icmp slt i32 %126, 10
br i1 %127, label %128, label %132
128: ; preds = %124
%129 = load i8*, i8** %120
%130 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %129)
%131 = sub nsw i32 %119, %130
br label %132
132: ; preds = %117, %124, %128
%133 = phi i32 [ %131, %128 ], [ %119, %124 ], [ %119, %117 ]
%134 = add nuw nsw i64 %118, 1
%135 = icmp eq i64 %134, %116
br i1 %135, label %136, label %117
136: ; preds = %132, %111
%137 = phi i32 [ %113, %111 ], [ %133, %132 ]
%138 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %137)
br label %139
139: ; preds = %136, %109
%140 = icmp eq i32 %78, 0
br i1 %140, label %173, label %141
141: ; preds = %139
%142 = load i8*, i8** %5
%143 = icmp eq i8* %142, null
br i1 %143, label %170, label %144
144: ; preds = %141
%145 = icmp sgt i32 %0, 2
br i1 %145, label %146, label %170
146: ; preds = %144
%147 = zext i32 %0 to i64
br label %148
148: ; preds = %167, %146
%149 = phi i8* [ %142, %146 ], [ %169, %167 ]
%150 = phi i64 [ 2, %146 ], [ %165, %167 ]
%151 = phi i32 [ 1, %146 ], [ %164, %167 ]
%152 = getelementptr inbounds i8*, i8** %1, i64 %150
%153 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %149)
%154 = icmp sgt i32 %153, -1
br i1 %154, label %155, label %163
155: ; preds = %148
%156 = load i8*, i8** %152
%157 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %156)
%158 = icmp slt i32 %157, 10
br i1 %158, label %159, label %163
159: ; preds = %155
%160 = load i8*, i8** %152
%161 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %160)
%162 = mul nsw i32 %161, %151
br label %163
163: ; preds = %148, %155, %159
%164 = phi i32 [ %162, %159 ], [ %151, %155 ], [ %151, %148 ]
%165 = add nuw nsw i64 %150, 1
%166 = icmp eq i64 %165, %147
br i1 %166, label %170, label %167
167: ; preds = %163
%168 = getelementptr inbounds i8*, i8** %1, i64 %165
%169 = load i8*, i8** %168
br label %148
170: ; preds = %163, %141, %144
%171 = phi i32 [ 1, %144 ], [ 0, %141 ], [ %164, %163 ]
%172 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 %171)
br label %173
173: ; preds = %170, %8, %139
%174 = tail call i32 @putchar(i32 10)
br label %175
175: ; preds = %2, %173, %12
ret i32 0
}