#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 */
float RAND_MAX;
int /*<<< orphan*/ free(char *);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ random();
int main(int argc, char *argv[]) {
  int i;
  char *a = malloc(20 * sizeof(char));
  for (i = 0; i < 20; ++i)
    a[i] = (char)(65 + (int)(4 * ((float)random() / RAND_MAX)));
  for (i = 0; i < 20; ++i)
    printf("%c ", a[i]);
  printf("\n");
  int lim = (20 - 8 > 8) ? 8 : 20 - 8;
  int im, side;
  printf("Starting to look at %i|%c\n", 8, a[8]);
  int upu, dou;
  for (i = 8 + 1; i < 20; ++i) {
    if (a[i] == 'A') {
      upu = i;
      break;
    }
    upu = 20 - 1;
  }
  for (i = 8 - 1; i >= 0; --i) {
    if (a[i] == 'A') {
      dou = i;
      break;
    }
    dou = 0;
  }
  printf("%i|%i\n", upu, dou);
  free(a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x14,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    11ba <main+0x7a>
mov    $0x0,%al
call   1050 <random@plt>
cvtsi2ss %rax,%xmm1
mov    0x2e60(%rip),%rax
divss  (%rax),%xmm1
movss  0xe6c(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
add    $0x41,%eax
mov    %al,%dl
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116b <main+0x2b>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    11f3 <main+0xb3>
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11c1 <main+0x81>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x24(%rbp)
mov    -0x20(%rbp),%rax
movsbl 0x8(%rax),%edx
lea    0xdf1(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x9,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    1269 <main+0x129>
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x41,%eax
jne    1254 <main+0x114>
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1269 <main+0x129>
movl   $0x13,-0x30(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    122a <main+0xea>
movl   $0x7,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     12af <main+0x16f>
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x41,%eax
jne    129a <main+0x15a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    12af <main+0x16f>
movl   $0x0,-0x34(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1270 <main+0x130>
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    $0x14,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    0x2e7f(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <random@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  (%r14),%xmm0
mulss  0xe74(%rip),%xmm0
cvttss2si %xmm0,%eax
add    $0x41,%al
mov    %al,(%r15,%rbx,1)
add    $0x1,%rbx
cmp    $0x14,%rbx
jne    1170 <main+0x20>
movsbl (%r15),%esi
lea    0xe59(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x1(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x2(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x3(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x4(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x5(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x6(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x7(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x8(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x9(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xa(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xb(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xc(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xd(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xe(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xf(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x10(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x11(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x12(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x13(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movsbl 0x8(%r15),%edx
lea    0xd20(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x9,%esi
cmpb   $0x41,0x9(%r15)
je     136e <main+0x21e>
cmpb   $0x41,0xa(%r15)
mov    $0xa,%esi
je     136e <main+0x21e>
mov    $0xb,%esi
cmpb   $0x41,0xb(%r15)
je     136e <main+0x21e>
mov    $0xc,%esi
cmpb   $0x41,0xc(%r15)
je     136e <main+0x21e>
mov    $0xd,%esi
cmpb   $0x41,0xd(%r15)
je     136e <main+0x21e>
mov    $0xe,%esi
cmpb   $0x41,0xe(%r15)
je     136e <main+0x21e>
mov    $0xf,%esi
cmpb   $0x41,0xf(%r15)
je     136e <main+0x21e>
mov    $0x10,%esi
cmpb   $0x41,0x10(%r15)
je     136e <main+0x21e>
mov    $0x11,%esi
cmpb   $0x41,0x11(%r15)
je     136e <main+0x21e>
xor    %esi,%esi
cmpb   $0x41,0x12(%r15)
sete   %sil
xor    $0x13,%esi
mov    $0x7,%edx
cmpb   $0x41,0x7(%r15)
je     13c0 <main+0x270>
mov    $0x6,%edx
cmpb   $0x41,0x6(%r15)
je     13c0 <main+0x270>
mov    $0x5,%edx
cmpb   $0x41,0x5(%r15)
je     13c0 <main+0x270>
mov    $0x4,%edx
cmpb   $0x41,0x4(%r15)
je     13c0 <main+0x270>
mov    $0x3,%edx
cmpb   $0x41,0x3(%r15)
je     13c0 <main+0x270>
mov    $0x2,%edx
cmpb   $0x41,0x2(%r15)
je     13c0 <main+0x270>
xor    %edx,%edx
cmpb   $0x41,0x1(%r15)
sete   %dl
lea    0xc5c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@RAND_MAX = global float 0.000000e+00
@.str = [4 x i8] c"%c \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [27 x i8] c"Starting to look at %i|%c\0A\00"
@.str.3 = [7 x i8] c"%i|%i\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i8* @malloc(i32 20)
store i8* %13, i8** %7
store i32 0, i32* %6
br label %14
14: ; preds = %30, %2
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 20
br i1 %16, label %17, label %33
17: ; preds = %14
%18 = call i64 (...) @random()
%19 = sitofp i64 %18 to float
%20 = load float, float* @RAND_MAX
%21 = fdiv float %19, %20
%22 = fmul float 4.000000e+00, %21
%23 = fptosi float %22 to i32
%24 = add nsw i32 65, %23
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %7
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
store i8 %25, i8* %29
br label %30
30: ; preds = %17
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %14
33: ; preds = %14
store i32 0, i32* %6
br label %34
34: ; preds = %45, %33
%35 = load i32, i32* %6
%36 = icmp slt i32 %35, 20
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i8*, i8** %7
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %43)
br label %45
45: ; preds = %37
%46 = load i32, i32* %6
%47 = add nsw i32 %46, 1
store i32 %47, i32* %6
br label %34
48: ; preds = %34
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 8, i32* %8
%50 = load i8*, i8** %7
%51 = getelementptr inbounds i8, i8* %50, i64 8
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 8, i32 %53)
store i32 9, i32* %6
br label %55
55: ; preds = %69, %48
%56 = load i32, i32* %6
%57 = icmp slt i32 %56, 20
br i1 %57, label %58, label %72
58: ; preds = %55
%59 = load i8*, i8** %7
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, i8* %59, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 65
br i1 %65, label %66, label %68
66: ; preds = %58
%67 = load i32, i32* %6
store i32 %67, i32* %11
br label %72
68: ; preds = %58
store i32 19, i32* %11
br label %69
69: ; preds = %68
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
br label %55
72: ; preds = %66, %55
store i32 7, i32* %6
br label %73
73: ; preds = %87, %72
%74 = load i32, i32* %6
%75 = icmp sge i32 %74, 0
br i1 %75, label %76, label %90
76: ; preds = %73
%77 = load i8*, i8** %7
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %77, i64 %79
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 65
br i1 %83, label %84, label %86
84: ; preds = %76
%85 = load i32, i32* %6
store i32 %85, i32* %12
br label %90
86: ; preds = %76
store i32 0, i32* %12
br label %87
87: ; preds = %86
%88 = load i32, i32* %6
%89 = add nsw i32 %88, -1
store i32 %89, i32* %6
br label %73
90: ; preds = %84, %73
%91 = load i32, i32* %11
%92 = load i32, i32* %12
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %91, i32 %92)
%94 = load i8*, i8** %7
%95 = call i32 @free(i8* %94)
ret i32 0
}

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