#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 */
typedef int ssize_t;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ lseek(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int read(int, char *, int);
int read_pattern(int fd) {
  char buf[4096];
  unsigned int i, val;
  ssize_t r;
  for (;;) {
    memset(buf, '?', sizeof(buf));
    if ((r = read(fd, buf, sizeof(buf))) != sizeof(buf)) {
      putchar('#');
      if (!r)
        break;
      lseek(fd, sizeof(buf), SEEK_CUR);
      continue;
    }
    if (buf[0] == 'E' && buf[1] == 'O' && buf[2] == 'F') {
      for (i = 3; i < sizeof(buf); i++)
        if (buf[i] != 0)
          break;
      if (i == sizeof(buf))
        break;
    }
    for (i = 1; i < sizeof(buf); i++)
      if (buf[i] != buf[0])
        break;
    if (i == sizeof(buf)) {
      switch (buf[0]) {
      case 'A':
      case 'B':
      case 'C':
      case 'D':
      case 'U':
      case '?':
        printf("%c", buf[0]);
        break;
      case '\0':
        printf("0");
        break;
      default:
        printf("X");
      }
      continue;
    }
    for (i = val = 0; i < sizeof(buf); i++)
      val += buf[i];
    printf("%c", 'a' + val % 26);
  }
  printf("\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<read_pattern>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1020,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x1010(%rbp),%rdi
mov    $0x3f,%esi
mov    $0x1000,%edx
call   1060 <memset@plt>
mov    -0x4(%rbp),%edi
lea    -0x1010(%rbp),%rsi
mov    $0x1000,%edx
call   1070 <read@plt>
mov    %eax,-0x101c(%rbp)
cltq
cmp    $0x1000,%rax
je     11d3 <read_pattern+0x83>
mov    $0x23,%edi
call   1030 <putchar@plt>
cmpl   $0x0,-0x101c(%rbp)
jne    11b8 <read_pattern+0x68>
jmp    13ed <read_pattern+0x29d>
mov    -0x4(%rbp),%edi
mov    0x2e26(%rip),%rax
mov    (%rax),%edx
mov    $0x1000,%esi
call   1050 <lseek@plt>
jmp    115e <read_pattern+0xe>
movsbl -0x1010(%rbp),%eax
cmp    $0x45,%eax
jne    1270 <read_pattern+0x120>
movsbl -0x100f(%rbp),%eax
cmp    $0x4f,%eax
jne    1270 <read_pattern+0x120>
movsbl -0x100e(%rbp),%eax
cmp    $0x46,%eax
jne    1270 <read_pattern+0x120>
movl   $0x3,-0x1014(%rbp)
mov    -0x1014(%rbp),%eax
cmp    $0x1000,%rax
jae    1254 <read_pattern+0x104>
mov    -0x1014(%rbp),%eax
movsbl -0x1010(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     123b <read_pattern+0xeb>
jmp    1254 <read_pattern+0x104>
jmp    1240 <read_pattern+0xf0>
mov    -0x1014(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1014(%rbp)
jmp    120d <read_pattern+0xbd>
mov    -0x1014(%rbp),%eax
cmp    $0x1000,%rax
jne    126b <read_pattern+0x11b>
jmp    13ed <read_pattern+0x29d>
jmp    1270 <read_pattern+0x120>
movl   $0x1,-0x1014(%rbp)
mov    -0x1014(%rbp),%eax
cmp    $0x1000,%rax
jae    12c7 <read_pattern+0x177>
mov    -0x1014(%rbp),%eax
movsbl -0x1010(%rbp,%rax,1),%eax
ff
movsbl -0x1010(%rbp),%ecx
cmp    %ecx,%eax
je     12ae <read_pattern+0x15e>
jmp    12c7 <read_pattern+0x177>
jmp    12b3 <read_pattern+0x163>
mov    -0x1014(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1014(%rbp)
jmp    127a <read_pattern+0x12a>
mov    -0x1014(%rbp),%eax
cmp    $0x1000,%rax
jne    1372 <read_pattern+0x222>
movsbl -0x1010(%rbp),%eax
mov    %eax,-0x1020(%rbp)
test   %eax,%eax
je     134c <read_pattern+0x1fc>
jmp    12f3 <read_pattern+0x1a3>
mov    -0x1020(%rbp),%eax
sub    $0x3f,%eax
je     1332 <read_pattern+0x1e2>
jmp    1307 <read_pattern+0x1b7>
mov    -0x1020(%rbp),%eax
add    $0xffffffbf,%eax
sub    $0x4,%eax
jb     1332 <read_pattern+0x1e2>
jmp    131e <read_pattern+0x1ce>
mov    -0x1020(%rbp),%eax
sub    $0x55,%eax
jne    135f <read_pattern+0x20f>
jmp    1332 <read_pattern+0x1e2>
movsbl -0x1010(%rbp),%esi
lea    0xcc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    136d <read_pattern+0x21d>
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    136d <read_pattern+0x21d>
lea    0xc9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    115e <read_pattern+0xe>
movl   $0x0,-0x1018(%rbp)
movl   $0x0,-0x1014(%rbp)
mov    -0x1014(%rbp),%eax
cmp    $0x1000,%rax
jae    13c6 <read_pattern+0x276>
mov    -0x1014(%rbp),%eax
movsbl -0x1010(%rbp,%rax,1),%eax
ff
add    -0x1018(%rbp),%eax
mov    %eax,-0x1018(%rbp)
mov    -0x1014(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1014(%rbp)
jmp    1386 <read_pattern+0x236>
mov    -0x1018(%rbp),%eax
mov    $0x1a,%ecx
xor    %edx,%edx
div    %ecx
mov    %edx,%esi
add    $0x61,%esi
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    115e <read_pattern+0xe>
lea    0xc13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2bd6(%rip),%rax
mov    (%rax),%eax
add    $0x1020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_pattern>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1000,%rsp
mov    %edi,%ebx
mov    %rsp,%r14
mov    $0x40003d,%r15d
mov    0x2e87(%rip),%r12
jmp    11ed <read_pattern+0xad>
cs nopw 0x0(%rax,%rax,1)
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
movsbl 0xff9(%rsp),%ecx
add    %eax,%ecx
movsbl 0xffa(%rsp),%eax
add    %ecx,%eax
movsbl 0xffb(%rsp),%ecx
add    %eax,%ecx
movsbl 0xffc(%rsp),%eax
add    %ecx,%eax
movsbl 0xffd(%rsp),%ecx
add    %eax,%ecx
movsbl 0xffe(%rsp),%eax
add    %ecx,%eax
movsbl 0xfff(%rsp),%edi
add    %eax,%edi
imul   $0x4ec4ec4f,%rdi,%rax
shr    $0x23,%rax
lea    (%rax,%rax,4),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %eax,%ecx
sub    %ecx,%edi
add    $0x61,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x3f,%esi
mov    $0x1000,%edx
call   1050 <memset@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1000,%edx
call   1060 <read@plt>
cmp    $0x1000,%eax
jne    12e0 <read_pattern+0x1a0>
movsbl (%rsp),%edi
mov    0x1(%rsp),%cl
cmp    $0x45,%edi
jne    1270 <read_pattern+0x130>
cmp    $0x4f,%cl
jne    1270 <read_pattern+0x130>
cmpb   $0x46,0x2(%rsp)
jne    1270 <read_pattern+0x130>
xor    %eax,%eax
cmpb   $0x0,0x3(%rsp,%rax,1)
jne    1270 <read_pattern+0x130>
nopl   0x0(%rax,%rax,1)
cmp    $0xffc,%rax
je     1414 <read_pattern+0x2d4>
cmpb   $0x0,0x4(%rsp,%rax,1)
jne    1270 <read_pattern+0x130>
cmpb   $0x0,0x5(%rsp,%rax,1)
jne    1270 <read_pattern+0x130>
cmpb   $0x0,0x6(%rsp,%rax,1)
jne    1270 <read_pattern+0x130>
add    $0x4,%rax
cmpb   $0x0,0x3(%rsp,%rax,1)
je     1240 <read_pattern+0x100>
nopl   0x0(%rax)
mov    $0x1,%eax
cmp    %dil,%cl
jne    1330 <read_pattern+0x1f0>
mov    $0x6,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    %dil,-0x4(%rsp,%rax,1)
jne    1309 <read_pattern+0x1c9>
cmp    %dil,-0x3(%rsp,%rax,1)
jne    1316 <read_pattern+0x1d6>
cmp    %dil,-0x2(%rsp,%rax,1)
jne    1323 <read_pattern+0x1e3>
cmp    %dil,-0x1(%rsp,%rax,1)
jne    1366 <read_pattern+0x226>
cmp    $0x1000,%rax
je     1337 <read_pattern+0x1f7>
lea    0x5(%rax),%rcx
cmp    %dil,(%rsp,%rax,1)
mov    %rcx,%rax
je     1290 <read_pattern+0x150>
add    $0xfffffffffffffffb,%rcx
mov    %rcx,%rax
cmp    $0x1000,%eax
je     1337 <read_pattern+0x1f7>
jmp    1380 <read_pattern+0x240>
nopl   0x0(%rax,%rax,1)
mov    %eax,%ebp
mov    $0x23,%edi
call   1030 <putchar@plt>
test   %ebp,%ebp
je     1414 <read_pattern+0x2d4>
mov    (%r12),%edx
mov    %ebx,%edi
mov    $0x1000,%esi
call   1040 <lseek@plt>
jmp    11ed <read_pattern+0xad>
add    $0xfffffffffffffffc,%rax
cmp    $0x1000,%eax
je     1337 <read_pattern+0x1f7>
jmp    1380 <read_pattern+0x240>
add    $0xfffffffffffffffd,%rax
cmp    $0x1000,%eax
je     1337 <read_pattern+0x1f7>
jmp    1380 <read_pattern+0x240>
add    $0xfffffffffffffffe,%rax
nopw   0x0(%rax,%rax,1)
cmp    $0x1000,%eax
jne    1380 <read_pattern+0x240>
lea    -0x3f(%rdi),%eax
cmp    $0x16,%eax
ja     134f <read_pattern+0x20f>
bt     %eax,%r15d
jae    134f <read_pattern+0x20f>
call   1030 <putchar@plt>
jmp    11ed <read_pattern+0xad>
test   %edi,%edi
jne    1405 <read_pattern+0x2c5>
mov    $0x30,%edi
call   1030 <putchar@plt>
jmp    11ed <read_pattern+0xad>
add    $0xffffffffffffffff,%rax
cmp    $0x1000,%eax
je     1337 <read_pattern+0x1f7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movd   %edi,%xmm3
pxor   %xmm2,%xmm2
mov    $0xd,%eax
nopl   (%rax)
movd   -0xc(%rsp,%rax,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm1
movd   -0x8(%rsp,%rax,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
psrad  $0x18,%xmm1
paddd  %xmm3,%xmm1
psrad  $0x18,%xmm0
paddd  %xmm2,%xmm0
cmp    $0xffd,%rax
je     1170 <read_pattern+0x30>
movd   -0x4(%rsp,%rax,1),%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
movd   (%rsp,%rax,1),%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
psrad  $0x18,%xmm2
psrad  $0x18,%xmm3
paddd  %xmm2,%xmm1
paddd  %xmm3,%xmm0
add    $0x10,%rax
movdqa %xmm1,%xmm3
movdqa %xmm0,%xmm2
jmp    1390 <read_pattern+0x250>
mov    $0x58,%edi
call   1030 <putchar@plt>
jmp    11ed <read_pattern+0xad>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2bb3(%rip),%rax
mov    (%rax),%eax
add    $0x1000,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@SEEK_CUR = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @read_pattern(i32 %0) {
%2 = alloca [4096 x i8]
%3 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%4 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 1
%5 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 2
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4089
%7 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4090
%8 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4091
%9 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4092
%10 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4093
%11 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4094
%12 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 4095
br label %13
13: ; preds = %126, %1
%14 = call i32 @memset(i8* %3, i8 signext 63, i32 4096)
%15 = call i32 @read(i32 %0, i8* %3, i32 4096)
%16 = icmp eq i32 %15, 4096
br i1 %16, label %23, label %17
17: ; preds = %13
%18 = call i32 @putchar(i8 signext 35)
%19 = icmp eq i32 %15, 0
br i1 %19, label %158, label %20
20: ; preds = %17
%21 = load i32, i32* @SEEK_CUR
%22 = call i32 @lseek(i32 %0, i32 4096, i32 %21)
br label %126
23: ; preds = %13
%24 = load i8, i8* %3
%25 = icmp eq i8 %24, 69
%26 = load i8, i8* %4
%27 = icmp eq i8 %26, 79
%28 = select i1 %25, i1 %27, i1 false
%29 = load i8, i8* %5
%30 = icmp eq i8 %29, 70
%31 = select i1 %28, i1 %30, i1 false
br i1 %31, label %32, label %56
32: ; preds = %23, %54
%33 = phi i64 [ %55, %54 ], [ 3, %23 ]
%34 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %33
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, 0
br i1 %36, label %37, label %56
37: ; preds = %32
%38 = add nuw nsw i64 %33, 1
%39 = icmp eq i64 %38, 4096
br i1 %39, label %158, label %40
40: ; preds = %37
%41 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %38
%42 = load i8, i8* %41
%43 = icmp eq i8 %42, 0
br i1 %43, label %44, label %56
44: ; preds = %40
%45 = add nuw nsw i64 %33, 2
%46 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %44
%50 = add nuw nsw i64 %33, 3
%51 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %50
%52 = load i8, i8* %51
%53 = icmp eq i8 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %49
%55 = add nuw nsw i64 %33, 4
br label %32
56: ; preds = %32, %40, %44, %49, %23
%57 = icmp eq i8 %26, %24
br i1 %57, label %58, label %86
58: ; preds = %56, %82
%59 = phi i64 [ %80, %82 ], [ 1, %56 ]
%60 = add nuw nsw i64 %59, 1
%61 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %60
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, %24
br i1 %63, label %64, label %86
64: ; preds = %58
%65 = add nuw nsw i64 %59, 2
%66 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %65
%67 = load i8, i8* %66
%68 = icmp eq i8 %67, %24
br i1 %68, label %69, label %86
69: ; preds = %64
%70 = add nuw nsw i64 %59, 3
%71 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = icmp eq i8 %72, %24
br i1 %73, label %74, label %86
74: ; preds = %69
%75 = add nuw nsw i64 %59, 4
%76 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %75
%77 = load i8, i8* %76
%78 = icmp eq i8 %77, %24
br i1 %78, label %79, label %86
79: ; preds = %74
%80 = add nuw nsw i64 %59, 5
%81 = icmp eq i64 %80, 4096
br i1 %81, label %122, label %82
82: ; preds = %79
%83 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %80
%84 = load i8, i8* %83
%85 = icmp eq i8 %84, %24
br i1 %85, label %58, label %86
86: ; preds = %58, %64, %69, %74, %82, %56
%87 = phi i64 [ 1, %56 ], [ %60, %58 ], [ %65, %64 ], [ %70, %69 ], [ %75, %74 ], [ %80, %82 ]
%88 = trunc i64 %87 to i32
%89 = icmp eq i32 %88, 4096
br i1 %89, label %122, label %90
90: ; preds = %86
%91 = sext i8 %24 to i32
%92 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %91, i64 0
br label %93
93: ; preds = %109, %90
%94 = phi i64 [ 0, %90 ], [ %121, %109 ]
%95 = phi <4 x i32> [ %92, %90 ], [ %119, %109 ]
%96 = phi <4 x i32> [ zeroinitializer, %90 ], [ %120, %109 ]
%97 = or i64 %94, 1
%98 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %97
%99 = bitcast i8* %98 to <4 x i8>*
%100 = load <4 x i8>, <4 x i8>* %99
%101 = getelementptr inbounds i8, i8* %98, i64 4
%102 = bitcast i8* %101 to <4 x i8>*
%103 = load <4 x i8>, <4 x i8>* %102
%104 = sext <4 x i8> %100 to <4 x i32>
%105 = sext <4 x i8> %103 to <4 x i32>
%106 = add <4 x i32> %95, %104
%107 = add <4 x i32> %96, %105
%108 = icmp eq i64 %94, 4080
br i1 %108, label %131, label %109
109: ; preds = %93
%110 = or i64 %94, 9
%111 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 %110
%112 = bitcast i8* %111 to <4 x i8>*
%113 = load <4 x i8>, <4 x i8>* %112
%114 = getelementptr inbounds i8, i8* %111, i64 4
%115 = bitcast i8* %114 to <4 x i8>*
%116 = load <4 x i8>, <4 x i8>* %115
%117 = sext <4 x i8> %113 to <4 x i32>
%118 = sext <4 x i8> %116 to <4 x i32>
%119 = add <4 x i32> %106, %117
%120 = add <4 x i32> %107, %118
%121 = add nuw nsw i64 %94, 16
br label %93
122: ; preds = %79, %86
%123 = sext i8 %24 to i32
switch i32 %123, label %129 [
i32 65, label %124
i32 66, label %124
i32 67, label %124
i32 68, label %124
i32 85, label %124
i32 63, label %124
i32 0, label %127
]
124: ; preds = %122, %122, %122, %122, %122, %122
%125 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 %123)
br label %126
126: ; preds = %124, %127, %129, %20, %131
br label %13
127: ; preds = %122
%128 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 48)
br label %126
129: ; preds = %122
%130 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 88)
br label %126
131: ; preds = %93
%132 = add <4 x i32> %107, %106
%133 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %132)
%134 = load i8, i8* %6
%135 = sext i8 %134 to i32
%136 = add i32 %133, %135
%137 = load i8, i8* %7
%138 = sext i8 %137 to i32
%139 = add i32 %136, %138
%140 = load i8, i8* %8
%141 = sext i8 %140 to i32
%142 = add i32 %139, %141
%143 = load i8, i8* %9
%144 = sext i8 %143 to i32
%145 = add i32 %142, %144
%146 = load i8, i8* %10
%147 = sext i8 %146 to i32
%148 = add i32 %145, %147
%149 = load i8, i8* %11
%150 = sext i8 %149 to i32
%151 = add i32 %148, %150
%152 = load i8, i8* %12
%153 = sext i8 %152 to i32
%154 = add i32 %151, %153
%155 = urem i32 %154, 26
%156 = add nuw nsw i32 %155, 97
%157 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 %156)
br label %126
158: ; preds = %17, %37
%159 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
%160 = load i32, i32* @EXIT_SUCCESS
ret i32 %160
}