#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 */
char atoi(char *);
int /*<<< orphan*/ clear_line(char *, int);
int /*<<< orphan*/ isdigit(char);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  char numeric = 0;
  char pos_1 = 0;
  char c = 0;
  int i = 0;
  int j = 0;
  int k = 0;
  char tmp_line[100];
  while (argc > 0) {
    printf("============================================\n");
    printf("* ( * ( argv + i ) ) = %c;\n", *(*(argv + i)));
    while (argc > 0 && (c = *(*(argv + i))) == '-') {
      c = *(*(argv + i) + 1);
      switch (c) {
      case 'n':
        numeric = 1;
        printf("numeric = 1;\n");
        break;
      default:
        if (isdigit(c)) {
          printf("Yahooo!!! It's digit! ))\n");
          j = 0;
          k = 0;
          clear_line(tmp_line, 5);
          while (isdigit(c = *((*argv) + j)) && c != '\0' && c != '\n') {
            tmp_line[k] = c;
            printf("tmp_line [ %d ] = %c;\n", k, tmp_line[k]);
            k++;
            j++;
          }
          tmp_line[k] = '\0';
          pos_1 = atoi(tmp_line);
          printf("getted pos_1 = %d;\n", pos_1);
        } else {
          printf("wrong parameter;\n");
          argc = 0;
        }
        break;
      }
      i++;
      argc--;
      printf("in second while i = %d; argc = %d; * ( argv + %d ) = %s;\n", i,
             argc, i, *(argv + i));
      printf("----------------------\n");
    }
    printf("after ( while c == '-' ) i = %d;", i);
    printf(" argc = %d;", argc);
    printf(" * argv = %s;\n", *argv);
    if (argc > 0) {
      i++;
      argc--;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
movb   $0x0,-0x12(%rbp)
movb   $0x0,-0x13(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    13fe <main+0x2be>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%esi
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x91(%rbp)
jle    11e1 <main+0xa1>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%al
mov    %al,-0x13(%rbp)
movsbl %al,%eax
cmp    $0x2d,%eax
sete   %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%al
test   $0x1,%al
jne    11f4 <main+0xb4>
jmp    13a6 <main+0x266>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x1(%rax),%al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
sub    $0x6e,%al
jne    122d <main+0xed>
jmp    1216 <main+0xd6>
movb   $0x1,-0x11(%rbp)
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    135e <main+0x21e>
movsbl -0x13(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
je     1344 <main+0x204>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
lea    -0x90(%rbp),%rdi
mov    $0x5,%esi
call   1040 <clear_line@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x13(%rbp)
movsbl %al,%edi
call   1030 <isdigit@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x92(%rbp)
je     12bd <main+0x17d>
movsbl -0x13(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x92(%rbp)
je     12bd <main+0x17d>
movsbl -0x13(%rbp),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x92(%rbp)
mov    -0x92(%rbp),%al
test   $0x1,%al
jne    12d0 <main+0x190>
jmp    1312 <main+0x1d2>
mov    -0x13(%rbp),%cl
movslq -0x20(%rbp),%rax
mov    %cl,-0x90(%rbp,%rax,1)
mov    -0x20(%rbp),%esi
movslq -0x20(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%edx
ff
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    126c <main+0x12c>
movslq -0x20(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
lea    -0x90(%rbp),%rdi
call   1060 <atoi@plt>
mov    %al,-0x12(%rbp)
movsbl -0x12(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1359 <main+0x219>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
jmp    135e <main+0x21e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rdi
mov    (%rax,%rdi,8),%r8
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11af <main+0x6f>
mov    -0x18(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    13f9 <main+0x2b9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    117a <main+0x3a>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
test   %edi,%edi
jle    135a <main+0x20a>
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xf4b(%rip),%rdi
lea    0xe87(%rip),%r12
lea    0xec7(%rip),%r13
xor    %r15d,%r15d
call   1050 <puts@plt>
movslq %r15d,%r15
mov    (%r14,%r15,8),%rax
movsbl (%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11e1 <main+0x91>
xchg   %ax,%ax
lea    0xf84(%rip),%rdi
call   1050 <puts@plt>
mov    %ebp,%ebx
lea    -0x1(%rbx),%ebp
mov    0x8(%r14,%r15,8),%r8
add    $0x1,%r15
mov    %r13,%rdi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf28(%rip),%rdi
call   1050 <puts@plt>
cmp    $0x1,%ebx
jle    1328 <main+0x1d8>
mov    (%r14,%r15,8),%rax
cmpb   $0x2d,(%rax)
jne    12e0 <main+0x190>
mov    0x1(%rax),%al
cmp    $0x6e,%al
je     11a0 <main+0x50>
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
je     1297 <main+0x147>
mov    %r13,%rbx
lea    0xf03(%rip),%rdi
call   1050 <puts@plt>
mov    %rsp,%rdi
mov    $0x5,%esi
call   1040 <clear_line@plt>
mov    (%r14),%rax
mov    (%rax),%r13b
movsbl %r13b,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
je     12aa <main+0x15a>
test   %r13b,%r13b
je     12aa <main+0x15a>
mov    $0x0,%r12d
cmp    $0xa,%r13b
je     12ad <main+0x15d>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
mov    %rax,%r12
movsbl %r13b,%edx
mov    %dl,(%rsp,%rax,1)
lea    0xdbb(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14),%rax
movzbl 0x1(%rax,%r12,1),%r13d
movsbl %r13b,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
je     1291 <main+0x141>
cmp    $0xa,%r13b
je     1291 <main+0x141>
lea    0x1(%r12),%rax
test   %r13b,%r13b
jne    1250 <main+0x100>
add    $0x1,%r12
jmp    12ad <main+0x15d>
lea    0xe4c(%rip),%rdi
call   1050 <puts@plt>
xor    %ebp,%ebp
jmp    11ac <main+0x5c>
xor    %r12d,%r12d
mov    %r12d,%eax
movb   $0x0,(%rsp,%rax,1)
mov    %rsp,%rdi
call   1070 <atoi@plt>
movsbl %al,%esi
lea    0xd6d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd2c(%rip),%r12
mov    %rbx,%r13
jmp    11ac <main+0x5c>
nopl   0x0(%rax)
lea    0xd9a(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdaa(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14),%rsi
lea    0xda3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15
add    $0xffffffff,%ebp
lea    0xd9d(%rip),%rdi
jne    1183 <main+0x33>
jmp    135a <main+0x20a>
lea    0xd52(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd62(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14),%rsi
lea    0xd5b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [46 x i8] c"============================================\0A\00"
@.str.1 = [28 x i8] c"* ( * ( argv + i ) ) = %c;\0A\00"
@.str.2 = [14 x i8] c"numeric = 1;\0A\00"
@.str.3 = [26 x i8] c"Yahooo!!! It's digit! ))\0A\00"
@.str.4 = [23 x i8] c"tmp_line [ %d ] = %c;\0A\00"
@.str.5 = [20 x i8] c"getted pos_1 = %d;\0A\00"
@.str.6 = [18 x i8] c"wrong parameter;\0A\00"
@.str.7 = [58 x i8] c"in second while i = %d; argc = %d; * ( argv + %d ) = %s;\0A\00"
@.str.8 = [24 x i8] c"----------------------\0A\00"
@.str.9 = [33 x i8] c"after ( while c == '-' ) i = %d;\00"
@.str.10 = [12 x i8] c" argc = %d;\00"
@.str.11 = [15 x i8] c" * argv = %s;\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* %6
store i8 0, i8* %7
store i8 0, i8* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
br label %13
13: ; preds = %137, %2
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %138
16: ; preds = %13
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%18 = load i8**, i8*** %5
%19 = load i32, i32* %9
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %18, i64 %20
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %26
26: ; preds = %107, %16
%27 = load i32, i32* %4
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load i8**, i8*** %5
%31 = load i32, i32* %9
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %30, i64 %32
%34 = load i8*, i8** %33
%35 = load i8, i8* %34
store i8 %35, i8* %8
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 45
br label %38
38: ; preds = %29, %26
%39 = phi i1 [ false, %26 ], [ %37, %29 ]
br i1 %39, label %40, label %122
40: ; preds = %38
%41 = load i8**, i8*** %5
%42 = load i32, i32* %9
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8*, i8** %41, i64 %43
%45 = load i8*, i8** %44
%46 = getelementptr inbounds i8, i8* %45, i64 1
%47 = load i8, i8* %46
store i8 %47, i8* %8
%48 = load i8, i8* %8
%49 = sext i8 %48 to i32
switch i32 %49, label %52 [
i32 110, label %50
]
50: ; preds = %40
store i8 1, i8* %6
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %107
52: ; preds = %40
%53 = load i8, i8* %8
%54 = call i32 @isdigit(i8 signext %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %104
56: ; preds = %52
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %10
store i32 0, i32* %11
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%59 = call i32 @clear_line(i8* %58, i32 5)
br label %60
60: ; preds = %79, %56
%61 = load i8**, i8*** %5
%62 = load i8*, i8** %61
%63 = load i32, i32* %10
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* %62, i64 %64
%66 = load i8, i8* %65
store i8 %66, i8* %8
%67 = call i32 @isdigit(i8 signext %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %60
%70 = load i8, i8* %8
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %69
%74 = load i8, i8* %8
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 10
br label %77
77: ; preds = %73, %69, %60
%78 = phi i1 [ false, %69 ], [ false, %60 ], [ %76, %73 ]
br i1 %78, label %79, label %95
79: ; preds = %77
%80 = load i8, i8* %8
%81 = load i32, i32* %11
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 %82
store i8 %80, i8* %83
%84 = load i32, i32* %11
%85 = load i32, i32* %11
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %84, i32 %89)
%91 = load i32, i32* %11
%92 = add nsw i32 %91, 1
store i32 %92, i32* %11
%93 = load i32, i32* %10
%94 = add nsw i32 %93, 1
store i32 %94, i32* %10
br label %60
95: ; preds = %77
%96 = load i32, i32* %11
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 %97
store i8 0, i8* %98
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%100 = call signext i8 @atoi(i8* %99)
store i8 %100, i8* %7
%101 = load i8, i8* %7
%102 = sext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %102)
br label %106
104: ; preds = %52
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %4
br label %106
106: ; preds = %104, %95
br label %107
107: ; preds = %106, %50
%108 = load i32, i32* %9
%109 = add nsw i32 %108, 1
store i32 %109, i32* %9
%110 = load i32, i32* %4
%111 = add nsw i32 %110, -1
store i32 %111, i32* %4
%112 = load i32, i32* %9
%113 = load i32, i32* %4
%114 = load i32, i32* %9
%115 = load i8**, i8*** %5
%116 = load i32, i32* %9
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8*, i8** %115, i64 %117
%119 = load i8*, i8** %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0), i32 %112, i32 %113, i32 %114, i8* %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
br label %26
122: ; preds = %38
%123 = load i32, i32* %9
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %123)
%125 = load i32, i32* %4
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %125)
%127 = load i8**, i8*** %5
%128 = load i8*, i8** %127
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %128)
%130 = load i32, i32* %4
%131 = icmp sgt i32 %130, 0
br i1 %131, label %132, label %137
132: ; preds = %122
%133 = load i32, i32* %9
%134 = add nsw i32 %133, 1
store i32 %134, i32* %9
%135 = load i32, i32* %4
%136 = add nsw i32 %135, -1
store i32 %136, i32* %4
br label %137
137: ; preds = %132, %122
br label %13
138: ; preds = %13
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [28 x i8] c"* ( * ( argv + i ) ) = %c;\0A\00"
@.str.4 = [23 x i8] c"tmp_line [ %d ] = %c;\0A\00"
@.str.5 = [20 x i8] c"getted pos_1 = %d;\0A\00"
@.str.7 = [58 x i8] c"in second while i = %d; argc = %d; * ( argv + %d ) = %s;\0A\00"
@.str.9 = [33 x i8] c"after ( while c == '-' ) i = %d;\00"
@.str.10 = [12 x i8] c" argc = %d;\00"
@.str.11 = [15 x i8] c" * argv = %s;\0A\00"
@str = [45 x i8] c"============================================\00"
@str.12 = [17 x i8] c"wrong parameter;\00"
@str.13 = [23 x i8] c"----------------------\00"
@str.14 = [25 x i8] c"Yahooo!!! It's digit! ))\00"
@str.15 = [13 x i8] c"numeric = 1;\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 0
br i1 %5, label %6, label %91
6: ; preds = %2, %82
%7 = phi i64 [ %88, %82 ], [ 0, %2 ]
%8 = phi i32 [ %89, %82 ], [ %0, %2 ]
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%10 = shl i64 %7, 32
%11 = ashr exact i64 %10, 32
%12 = getelementptr inbounds i8*, i8** %1, i64 %11
%13 = load i8*, i8** %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %6, %66
%18 = phi i64 [ %11, %6 ], [ %68, %66 ]
%19 = phi i32 [ %8, %6 ], [ %69, %66 ]
%20 = getelementptr inbounds i8*, i8** %1, i64 %18
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 45
br i1 %23, label %24, label %82
24: ; preds = %17
%25 = getelementptr inbounds i8, i8* %21, i64 1
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 110
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0))
br label %66
30: ; preds = %24
%31 = call i32 @isdigit(i8 signext %26)
%32 = icmp eq i32 %31, 0
br i1 %32, label %64, label %33
33: ; preds = %30
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.14, i64 0, i64 0))
%35 = call i32 @clear_line(i8* %4, i32 5)
%36 = load i8*, i8** %1
%37 = load i8, i8* %36
%38 = call i32 @isdigit(i8 signext %37)
%39 = freeze i32 %38
%40 = icmp eq i32 %39, 0
br i1 %40, label %57, label %41
41: ; preds = %33
switch i8 %37, label %42 [
i8 10, label %57
i8 0, label %57
]
42: ; preds = %41, %56
%43 = phi i64 [ %49, %56 ], [ 0, %41 ]
%44 = phi i8 [ %52, %56 ], [ %37, %41 ]
%45 = sext i8 %44 to i32
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %43
store i8 %44, i8* %46
%47 = trunc i64 %43 to i32
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %47, i32 %45)
%49 = add nuw i64 %43, 1
%50 = load i8*, i8** %1
%51 = getelementptr inbounds i8, i8* %50, i64 %49
%52 = load i8, i8* %51
%53 = call i32 @isdigit(i8 signext %52)
%54 = freeze i32 %53
%55 = icmp eq i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %42
switch i8 %52, label %42 [
i8 10, label %57
i8 0, label %57
]
57: ; preds = %42, %56, %56, %41, %41, %33
%58 = phi i64 [ 0, %41 ], [ 0, %33 ], [ 0, %41 ], [ %49, %56 ], [ %49, %56 ], [ %49, %42 ]
%59 = and i64 %58, 4294967295
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %59
store i8 0, i8* %60
%61 = call signext i8 @atoi(i8* %4)
%62 = sext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %62)
br label %66
64: ; preds = %30
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.12, i64 0, i64 0))
br label %66
66: ; preds = %57, %64, %28
%67 = phi i32 [ %19, %28 ], [ %19, %57 ], [ 0, %64 ]
%68 = add i64 %18, 1
%69 = add nsw i32 %67, -1
%70 = getelementptr inbounds i8*, i8** %1, i64 %68
%71 = load i8*, i8** %70
%72 = trunc i64 %68 to i32
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0), i32 %72, i32 %69, i32 %72, i8* %71)
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
%75 = icmp sgt i32 %67, 1
br i1 %75, label %17, label %76
76: ; preds = %66
%77 = trunc i64 %68 to i32
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %69)
%80 = load i8*, i8** %1
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %80)
br label %91
82: ; preds = %17
%83 = trunc i64 %18 to i32
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %83)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %19)
%86 = load i8*, i8** %1
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %86)
%88 = add i64 %18, 1
%89 = add nsw i32 %19, -1
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %6
91: ; preds = %82, %76, %2
ret i32 0
}