#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*/ free(char *);
int /*<<< orphan*/ printf(char *, ...);
char *tokendup(char *, char *);
int scan(char *s, int l) {
  char *p = s;
  char *q = 0;
  char *t;
  for (;;) {
    t = p;
    {
      char yych;
      if (((s + l + 2) - p) < 2) {
        printf("OOD\n");
        return 2;
      };
      yych = *p;
      switch (yych) {
      case 0x00:
        goto yy9;
      case '+':
        goto yy5;
      case '-':
        goto yy7;
      case '0':
        goto yy2;
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
        goto yy4;
      default:
        goto yy11;
      }
    yy2:
      ++p;
      switch ((yych = *p)) {
      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
        goto yy15;
      default:
        goto yy3;
      }
    yy3 : {
      t = tokendup(t, p);
      printf("Num: %s\n", t);
      free(t);
      continue;
    }
    yy4:
      yych = *++p;
      goto yy14;
    yy5:
      ++p;
      {
        printf("+\n");
        continue;
      }
    yy7:
      ++p;
      {
        printf("+\n");
        continue;
      }
    yy9:
      ++p;
      {
        printf("EOF\n");
        return 0;
      }
    yy11:
      ++p;
      {
        printf("ERR\n");
        return 1;
      }
    yy13:
      ++p;
      if ((s + l + 2) <= p) {
        printf("OOD\n");
        return 2;
      };
      yych = *p;
    yy14:
      switch (yych) {
      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
        goto yy13;
      default:
        goto yy3;
      }
    yy15:
      ++p;
      if ((s + l + 2) <= p) {
        printf("OOD\n");
        return 2;
      };
      yych = *p;
      switch (yych) {
      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
        goto yy15;
      default:
        goto yy17;
      }
    yy17 : {
      t = tokendup(t, p);
      printf("Oct: %s\n", t);
      free(t);
      continue;
    }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<scan>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
add    $0x2,%rax
mov    -0x20(%rbp),%rcx
sub    %rcx,%rax
cmp    $0x2,%rax
jge    1191 <scan+0x61>
lea    0xf6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13e6 <scan+0x2b6>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movsbl -0x31(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x39,%eax
ja     11da <scan+0xaa>
mov    -0x40(%rbp),%rax
lea    0xe48(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    129b <scan+0x16b>
jmp    125d <scan+0x12d>
jmp    127c <scan+0x14c>
jmp    11df <scan+0xaf>
jmp    1243 <scan+0x113>
jmp    12c1 <scan+0x191>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
mov    %al,%cl
mov    %cl,-0x31(%rbp)
add    $0xffffffd0,%eax
sub    $0x9,%eax
ja     120d <scan+0xdd>
jmp    1208 <scan+0xd8>
jmp    134e <scan+0x21e>
jmp    1212 <scan+0xe2>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <tokendup@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    114f <scan+0x1f>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
mov    0x1(%rax),%al
mov    %al,-0x31(%rbp)
jmp    132f <scan+0x1ff>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    114f <scan+0x1f>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    114f <scan+0x1f>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13e6 <scan+0x2b6>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e6 <scan+0x2b6>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
add    $0x2,%rax
cmp    -0x20(%rbp),%rax
ja     1326 <scan+0x1f6>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13e6 <scan+0x2b6>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movsbl -0x31(%rbp),%eax
add    $0xffffffd0,%eax
sub    $0x9,%eax
ja     1349 <scan+0x219>
jmp    1344 <scan+0x214>
jmp    12e7 <scan+0x1b7>
jmp    1212 <scan+0xe2>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
add    $0x2,%rax
cmp    -0x20(%rbp),%rax
ja     138d <scan+0x25d>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13e6 <scan+0x2b6>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movsbl -0x31(%rbp),%eax
add    $0xffffffd0,%eax
sub    $0x9,%eax
ja     13b0 <scan+0x280>
jmp    13ab <scan+0x27b>
jmp    134e <scan+0x21e>
jmp    13b5 <scan+0x285>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <tokendup@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    114f <scan+0x1f>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scan>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movslq %esi,%rax
lea    (%rdi,%rax,1),%r15
add    $0x2,%r15
mov    %r15,%rax
sub    %rdi,%rax
lea    0xeb9(%rip),%r12
cmp    $0x2,%rax
jge    118a <scan+0x4a>
mov    %r12,%r13
mov    $0x2,%ebp
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rdi,%rbx
lea    0xe84(%rip),%r13
lea    0xe65(%rip),%r14
movsbl (%rbx),%eax
lea    -0x31(%rax),%ecx
cmp    $0x9,%ecx
jae    11d0 <scan+0x90>
lea    0x1(%rbx),%rbp
nopw   0x0(%rax,%rax,1)
movsbl 0x0(%rbp),%eax
add    $0xffffffd0,%eax
cmp    $0x9,%eax
ja     1250 <scan+0x110>
add    $0x1,%rbp
cmp    %rbp,%r15
ja     11b0 <scan+0x70>
jmp    1169 <scan+0x29>
nopl   0x0(%rax,%rax,1)
mov    $0x1,%ebp
cmp    $0x2c,%eax
jle    1234 <scan+0xf4>
cmp    $0x2d,%eax
je     1239 <scan+0xf9>
cmp    $0x30,%eax
jne    1171 <scan+0x31>
movsbl 0x1(%rbx),%eax
add    $0xffffffd0,%eax
cmp    $0x9,%eax
ja     124b <scan+0x10b>
lea    0x2(%rbx),%rbp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %rbp,%r15
jbe    1169 <scan+0x29>
movsbl 0x0(%rbp),%eax
add    $0xffffffd0,%eax
add    $0x1,%rbp
cmp    $0xa,%eax
jb     1200 <scan+0xc0>
add    $0xffffffffffffffff,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1060 <tokendup@plt>
mov    %rax,%rbx
lea    0xdd7(%rip),%rdi
jmp    1261 <scan+0x121>
cmp    $0x2b,%eax
jne    128b <scan+0x14b>
add    $0x1,%rbx
lea    0xdce(%rip),%rdi
call   1040 <puts@plt>
jmp    1276 <scan+0x136>
lea    0x1(%rbx),%rbp
nop
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1060 <tokendup@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rbx
mov    %r15,%rax
sub    %rbx,%rax
cmp    $0x2,%rax
jge    119b <scan+0x5b>
jmp    1169 <scan+0x29>
test   %eax,%eax
jne    1171 <scan+0x31>
lea    0xd7a(%rip),%r13
mov    %eax,%ebp
jmp    1171 <scan+0x31>

LLVM IR (-O0):
@.str = [5 x i8] c"OOD\0A\00"
@.str.1 = [9 x i8] c"Num: %s\0A\00"
@.str.2 = [3 x i8] c"+\0A\00"
@.str.3 = [5 x i8] c"EOF\0A\00"
@.str.4 = [5 x i8] c"ERR\0A\00"
@.str.5 = [9 x i8] c"Oct: %s\0A\00"
define i32 @scan(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8
store i8* %0, i8** %4
store i32 %1, i32* %5
%10 = load i8*, i8** %4
store i8* %10, i8** %6
store i8* null, i8** %7
br label %11
11: ; preds = %111, %60, %56, %44, %2
%12 = load i8*, i8** %6
store i8* %12, i8** %8
%13 = load i8*, i8** %4
%14 = load i32, i32* %5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8*, i8** %6
%19 = ptrtoint i8* %17 to i64
%20 = ptrtoint i8* %18 to i64
%21 = sub i64 %19, %20
%22 = icmp slt i64 %21, 2
br i1 %22, label %23, label %25
23: ; preds = %11
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 2, i32* %3
br label %119
25: ; preds = %11
%26 = load i8*, i8** %6
%27 = load i8, i8* %26
store i8 %27, i8* %9
%28 = load i8, i8* %9
%29 = sext i8 %28 to i32
switch i32 %29, label %35 [
i32 0, label %30
i32 43, label %31
i32 45, label %32
i32 48, label %33
i32 49, label %34
i32 50, label %34
i32 51, label %34
i32 52, label %34
i32 53, label %34
i32 54, label %34
i32 55, label %34
i32 56, label %34
i32 57, label %34
]
30: ; preds = %25
br label %64
31: ; preds = %25
br label %56
32: ; preds = %25
br label %60
33: ; preds = %25
br label %36
34: ; preds = %25, %25, %25, %25, %25, %25, %25, %25, %25
br label %52
35: ; preds = %25
br label %68
36: ; preds = %33
%37 = load i8*, i8** %6
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %6
%39 = load i8*, i8** %6
%40 = load i8, i8* %39
store i8 %40, i8* %9
%41 = sext i8 %40 to i32
switch i32 %41, label %43 [
i32 48, label %42
i32 49, label %42
i32 50, label %42
i32 51, label %42
i32 52, label %42
i32 53, label %42
i32 54, label %42
i32 55, label %42
i32 56, label %42
i32 57, label %42
]
42: ; preds = %36, %36, %36, %36, %36, %36, %36, %36, %36, %36
br label %92
43: ; preds = %36
br label %44
44: ; preds = %91, %43
%45 = load i8*, i8** %8
%46 = load i8*, i8** %6
%47 = call i8* @tokendup(i8* %45, i8* %46)
store i8* %47, i8** %8
%48 = load i8*, i8** %8
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %48)
%50 = load i8*, i8** %8
%51 = call i32 @free(i8* %50)
br label %11
52: ; preds = %34
%53 = load i8*, i8** %6
%54 = getelementptr inbounds i8, i8* %53, i32 1
store i8* %54, i8** %6
%55 = load i8, i8* %54
store i8 %55, i8* %9
br label %87
56: ; preds = %31
%57 = load i8*, i8** %6
%58 = getelementptr inbounds i8, i8* %57, i32 1
store i8* %58, i8** %6
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %11
60: ; preds = %32
%61 = load i8*, i8** %6
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %6
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %11
64: ; preds = %30
%65 = load i8*, i8** %6
%66 = getelementptr inbounds i8, i8* %65, i32 1
store i8* %66, i8** %6
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %119
68: ; preds = %35
%69 = load i8*, i8** %6
%70 = getelementptr inbounds i8, i8* %69, i32 1
store i8* %70, i8** %6
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
br label %119
72: ; preds = %90
%73 = load i8*, i8** %6
%74 = getelementptr inbounds i8, i8* %73, i32 1
store i8* %74, i8** %6
%75 = load i8*, i8** %4
%76 = load i32, i32* %5
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %75, i64 %77
%79 = getelementptr inbounds i8, i8* %78, i64 2
%80 = load i8*, i8** %6
%81 = icmp ule i8* %79, %80
br i1 %81, label %82, label %84
82: ; preds = %72
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 2, i32* %3
br label %119
84: ; preds = %72
%85 = load i8*, i8** %6
%86 = load i8, i8* %85
store i8 %86, i8* %9
br label %87
87: ; preds = %84, %52
%88 = load i8, i8* %9
%89 = sext i8 %88 to i32
switch i32 %89, label %91 [
i32 48, label %90
i32 49, label %90
i32 50, label %90
i32 51, label %90
i32 52, label %90
i32 53, label %90
i32 54, label %90
i32 55, label %90
i32 56, label %90
i32 57, label %90
]
90: ; preds = %87, %87, %87, %87, %87, %87, %87, %87, %87, %87
br label %72
91: ; preds = %87
br label %44
92: ; preds = %109, %42
%93 = load i8*, i8** %6
%94 = getelementptr inbounds i8, i8* %93, i32 1
store i8* %94, i8** %6
%95 = load i8*, i8** %4
%96 = load i32, i32* %5
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, i8* %95, i64 %97
%99 = getelementptr inbounds i8, i8* %98, i64 2
%100 = load i8*, i8** %6
%101 = icmp ule i8* %99, %100
br i1 %101, label %102, label %104
102: ; preds = %92
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 2, i32* %3
br label %119
104: ; preds = %92
%105 = load i8*, i8** %6
%106 = load i8, i8* %105
store i8 %106, i8* %9
%107 = load i8, i8* %9
%108 = sext i8 %107 to i32
switch i32 %108, label %110 [
i32 48, label %109
i32 49, label %109
i32 50, label %109
i32 51, label %109
i32 52, label %109
i32 53, label %109
i32 54, label %109
i32 55, label %109
i32 56, label %109
i32 57, label %109
]
109: ; preds = %104, %104, %104, %104, %104, %104, %104, %104, %104, %104
br label %92
110: ; preds = %104
br label %111
111: ; preds = %110
%112 = load i8*, i8** %8
%113 = load i8*, i8** %6
%114 = call i8* @tokendup(i8* %112, i8* %113)
store i8* %114, i8** %8
%115 = load i8*, i8** %8
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %115)
%117 = load i8*, i8** %8
%118 = call i32 @free(i8* %117)
br label %11
119: ; preds = %102, %82, %68, %64, %23
%120 = load i32, i32* %3
ret i32 %120
}

LLVM IR (-O2):
@.str.1 = [9 x i8] c"Num: %s\0A\00"
@.str.5 = [9 x i8] c"Oct: %s\0A\00"
@str.8 = [2 x i8] c"+\00"
@str.9 = [4 x i8] c"EOF\00"
@str.10 = [4 x i8] c"ERR\00"
@str.11 = [4 x i8] c"OOD\00"
define i32 @scan(i8* %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = getelementptr inbounds i8, i8* %4, i64 2
%6 = ptrtoint i8* %5 to i64
%7 = ptrtoint i8* %0 to i64
%8 = sub i64 %6, %7
%9 = icmp slt i64 %8, 2
br i1 %9, label %62, label %10
10: ; preds = %2, %55
%11 = phi i8* [ %56, %55 ], [ %0, %2 ]
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
switch i32 %13, label %62 [
i32 0, label %60
i32 43, label %27
i32 45, label %30
i32 48, label %14
i32 49, label %25
i32 50, label %25
i32 51, label %25
i32 52, label %25
i32 53, label %25
i32 54, label %25
i32 55, label %25
i32 56, label %25
i32 57, label %25
]
14: ; preds = %10
%15 = getelementptr inbounds i8, i8* %11, i64 1
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = add nsw i32 %17, -48
%19 = icmp ult i32 %18, 10
br i1 %19, label %42, label %20
20: ; preds = %33, %14
%21 = phi i8* [ %15, %14 ], [ %34, %33 ]
%22 = tail call i8* @tokendup(i8* %11, i8* %21)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = tail call i32 @free(i8* %22)
br label %55
25: ; preds = %10, %10, %10, %10, %10, %10, %10, %10, %10
%26 = getelementptr inbounds i8, i8* %11, i64 1
br label %33
27: ; preds = %10
%28 = getelementptr inbounds i8, i8* %11, i64 1
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.8, i64 0, i64 0))
br label %55
30: ; preds = %10
%31 = getelementptr inbounds i8, i8* %11, i64 1
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.8, i64 0, i64 0))
br label %55
33: ; preds = %39, %25
%34 = phi i8* [ %26, %25 ], [ %40, %39 ]
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = add nsw i32 %36, -48
%38 = icmp ult i32 %37, 10
br i1 %38, label %39, label %20
39: ; preds = %33
%40 = getelementptr inbounds i8, i8* %34, i64 1
%41 = icmp ugt i8* %5, %40
br i1 %41, label %33, label %62
42: ; preds = %14, %46
%43 = phi i8* [ %44, %46 ], [ %15, %14 ]
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = icmp ugt i8* %5, %44
br i1 %45, label %46, label %62
46: ; preds = %42
%47 = load i8, i8* %44
%48 = sext i8 %47 to i32
%49 = add nsw i32 %48, -48
%50 = icmp ult i32 %49, 10
br i1 %50, label %42, label %51
51: ; preds = %46
%52 = tail call i8* @tokendup(i8* %11, i8* %44)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %52)
%54 = tail call i32 @free(i8* %52)
br label %55
55: ; preds = %51, %30, %27, %20
%56 = phi i8* [ %21, %20 ], [ %44, %51 ], [ %31, %30 ], [ %28, %27 ]
%57 = ptrtoint i8* %56 to i64
%58 = sub i64 %6, %57
%59 = icmp slt i64 %58, 2
br i1 %59, label %62, label %10
60: ; preds = %10
%61 = sext i8 %12 to i32
br label %62
62: ; preds = %10, %39, %42, %60, %55, %2
%63 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.11, i64 0, i64 0), %2 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.9, i64 0, i64 0), %60 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.11, i64 0, i64 0), %55 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.11, i64 0, i64 0), %42 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.11, i64 0, i64 0), %39 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.10, i64 0, i64 0), %10 ]
%64 = phi i32 [ 2, %2 ], [ %61, %60 ], [ 2, %55 ], [ 2, %42 ], [ 2, %39 ], [ 1, %10 ]
%65 = tail call i32 @puts(i8* dereferenceable(1) %63)
ret i32 %64
}