#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 pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int strlen(char *);
int tolower(char);
int main(int argc, char *argv[]) {
  printf("%ld\n", (60 * 60 * 24 * 365UL));
  int a = 5, b = 3;
  printf("a:%d, b:%d\n", a, b);
  printf("min(%d,%d) is %d\n", a, b, (a > b ? b : a));
  printf("max(%d,%d) is %d\n", a, b, (a > b ? a : b));
  unsigned int c = 6;
  int d = -20;
  (c + d > 6) ? puts(">6") : puts("<=6");
  unsigned int e = 0;
  printf("%#X\n", ~e);
  printf("%u\n", (0x1 << 2));
  char str1[] = "abcdefg123456789";
  int len = strlen(str1);
  int i;
  for (i = 0; i < len / 2; i++) {
    char temp;
    temp = str1[i];
    str1[i] = str1[len - i - 1];
    str1[len - i - 1] = temp;
  }
  printf("str1 :%s\n", str1);
  char *n = "CC342f";
  len = strlen(n);
  int num, count = 0;
  for (i = 0; i < len; i++) {
    switch (tolower(n[i])) {
    case 'a':
      num = 10;
      break;
    case 'b':
      num = 11;
      break;
    case 'c':
      num = 12;
      break;
    case 'd':
      num = 13;
      break;
    case 'e':
      num = 14;
      break;
    case 'f':
      num = 15;
      break;
    default:
      num = n[i] - 48;
    }
    printf("num %d\n", num);
    count += (num * pow(16, len - i - 1));
  }
  printf("%#x %d\n", count, count);
  printf("%d %d\n", '4' - 4, 'a' - 'A');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x1e13380,%esi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x5,-0x14(%rbp)
movl   $0x3,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    11c1 <main+0x71>
mov    -0x18(%rbp),%eax
mov    %eax,-0x6c(%rbp)
jmp    11c7 <main+0x77>
mov    -0x14(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x64(%rbp),%edx
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%ecx
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    1201 <main+0xb1>
mov    -0x14(%rbp),%eax
mov    %eax,-0x78(%rbp)
jmp    1207 <main+0xb7>
mov    -0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x70(%rbp),%edx
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%ecx
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x6,-0x1c(%rbp)
movl   $0xffffffec,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
cmp    $0x6,%eax
jbe    124c <main+0xfc>
lea    0xe0b(%rip),%rdi
call   1030 <puts@plt>
jmp    1258 <main+0x108>
lea    0xdfd(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%esi
xor    $0xffffffff,%esi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xddf(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0xe03(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe00(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xdfe(%rip),%al
mov    %al,-0x30(%rbp)
lea    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x44(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x7c(%rbp),%eax
cmp    %ecx,%eax
jge    1318 <main+0x1c8>
movslq -0x48(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%al
mov    %al,-0x49(%rbp)
mov    -0x44(%rbp),%eax
sub    -0x48(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x40(%rbp,%rax,1),%cl
movslq -0x48(%rbp),%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x49(%rbp),%cl
mov    -0x44(%rbp),%eax
sub    -0x48(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12b8 <main+0x168>
lea    -0x40(%rbp),%rsi
lea    0xd3a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd36(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    143e <main+0x2ee>
mov    -0x58(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1060 <tolower@plt>
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0x5,%eax
ja     13e0 <main+0x290>
mov    -0x88(%rbp),%rax
lea    0xc71(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xa,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
movl   $0xb,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
movl   $0xc,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
movl   $0xd,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
movl   $0xe,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
movl   $0xf,-0x5c(%rbp)
jmp    13f2 <main+0x2a2>
mov    -0x58(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x30,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%esi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x44(%rbp),%esi
sub    -0x48(%rbp),%esi
sub    $0x1,%esi
mov    $0x10,%edi
call   1070 <pow@plt>
mov    %eax,%ecx
mov    -0x8c(%rbp),%eax
imul   %ecx,%eax
add    -0x60(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    134f <main+0x1ff>
mov    -0x60(%rbp),%esi
mov    -0x60(%rbp),%edx
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc25(%rip),%rdi
mov    $0x30,%esi
mov    $0x20,%edx
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xe9b(%rip),%rdi
xor    %r12d,%r12d
mov    $0x1e13380,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8a(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe73(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
mov    $0x5,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5f(%rip),%rdi
mov    $0xffffffff,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe51(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movaps 0xe71(%rip),%xmm0
movaps %xmm0,(%rsp)
movb   $0x0,0x10(%rsp)
mov    %rsp,%rdi
call   1040 <strlen@plt>
cmp    $0x2,%eax
jl     127d <main+0x12d>
mov    %eax,%r8d
shr    %r8d
cmp    $0x1,%r8d
jne    1225 <main+0xd5>
xor    %edx,%edx
jmp    1263 <main+0x113>
mov    %r8d,%esi
and    $0xfffffffe,%esi
lea    -0x2(%rax),%edi
xor    %edx,%edx
movzbl (%rsp,%rdx,1),%ebx
lea    0x1(%rdi),%ebp
movslq %ebp,%rbp
movzbl (%rsp,%rbp,1),%ecx
mov    %cl,(%rsp,%rdx,1)
mov    %bl,(%rsp,%rbp,1)
movzbl 0x1(%rsp,%rdx,1),%ecx
movslq %edi,%rdi
movzbl (%rsp,%rdi,1),%ebx
mov    %bl,0x1(%rsp,%rdx,1)
mov    %cl,(%rsp,%rdi,1)
add    $0x2,%rdx
add    $0xfffffffe,%edi
cmp    %rdx,%rsi
jne    1230 <main+0xe0>
test   $0x1,%r8b
je     127d <main+0x12d>
mov    (%rsp,%rdx,1),%cl
mov    %edx,%esi
not    %esi
add    %esi,%eax
cltq
mov    (%rsp,%rax,1),%bl
mov    %bl,(%rsp,%rdx,1)
mov    %cl,(%rsp,%rax,1)
lea    0xdbd(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdb6(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    130f <main+0x1bf>
mov    %eax,%r13d
mov    %eax,%eax
mov    %rax,0x20(%rsp)
add    $0xffffffff,%r13d
xor    %r15d,%r15d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
movsbl (%r15,%r14,1),%ebx
mov    %ebx,%edi
call   1060 <tolower@plt>
mov    %eax,%ebp
lea    -0x61(%rbp),%eax
add    $0xffffffd0,%ebx
add    $0xffffffa9,%ebp
cmp    $0x6,%eax
cmovae %ebx,%ebp
lea    0xd6e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x10,%edi
mov    %r13d,%esi
call   1070 <pow@plt>
imul   %ebp,%eax
add    %eax,%r12d
add    $0x1,%r15
add    $0xffffffff,%r13d
cmp    %r15,0x20(%rsp)
jne    12c0 <main+0x170>
lea    0xd44(%rip),%rdi
mov    %r12d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd38(%rip),%rdi
mov    $0x30,%esi
mov    $0x20,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ld\0A\00"
@.str.1 = [12 x i8] c"a:%d, b:%d\0A\00"
@.str.2 = [18 x i8] c"min(%d,%d) is %d\0A\00"
@.str.3 = [18 x i8] c"max(%d,%d) is %d\0A\00"
@.str.4 = [3 x i8] c">6\00"
@.str.5 = [4 x i8] c"<=6\00"
@.str.6 = [5 x i8] c"%#X\0A\00"
@.str.7 = [4 x i8] c"%u\0A\00"
@__const.main.str1 = [17 x i8] c"abcdefg123456789\00"
@.str.8 = [10 x i8] c"str1 :%s\0A\00"
@.str.9 = [7 x i8] c"CC342f\00"
@.str.10 = [8 x i8] c"num %d\0A\00"
@.str.11 = [8 x i8] c"%#x %d\0A\00"
@.str.12 = [7 x i8] c"%d %d\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 [17 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 31536000)
store i32 5, i32* %6
store i32 3, i32* %7
%19 = load i32, i32* %6
%20 = load i32, i32* %7
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %19, i32 %20)
%22 = load i32, i32* %6
%23 = load i32, i32* %7
%24 = load i32, i32* %6
%25 = load i32, i32* %7
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %2
%28 = load i32, i32* %7
br label %31
29: ; preds = %2
%30 = load i32, i32* %6
br label %31
31: ; preds = %29, %27
%32 = phi i32 [ %28, %27 ], [ %30, %29 ]
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %23, i32 %32)
%34 = load i32, i32* %6
%35 = load i32, i32* %7
%36 = load i32, i32* %6
%37 = load i32, i32* %7
%38 = icmp sgt i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %31
%40 = load i32, i32* %6
br label %43
41: ; preds = %31
%42 = load i32, i32* %7
br label %43
43: ; preds = %41, %39
%44 = phi i32 [ %40, %39 ], [ %42, %41 ]
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %34, i32 %35, i32 %44)
store i32 6, i32* %8
store i32 -20, i32* %9
%46 = load i32, i32* %8
%47 = load i32, i32* %9
%48 = add i32 %46, %47
%49 = icmp ugt i32 %48, 6
br i1 %49, label %50, label %52
50: ; preds = %43
%51 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %54
52: ; preds = %43
%53 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %54
54: ; preds = %52, %50
%55 = phi i32 [ %51, %50 ], [ %53, %52 ]
store i32 0, i32* %10
%56 = load i32, i32* %10
%57 = xor i32 %56, -1
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 4)
%60 = bitcast [17 x i8]* %11 to i8*
%61 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 0
%62 = call i32 @strlen(i8* %61)
store i32 %62, i32* %12
store i32 0, i32* %13
br label %63
63: ; preds = %90, %54
%64 = load i32, i32* %13
%65 = load i32, i32* %12
%66 = sdiv i32 %65, 2
%67 = icmp slt i32 %64, %66
br i1 %67, label %68, label %93
68: ; preds = %63
%69 = load i32, i32* %13
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %70
%72 = load i8, i8* %71
store i8 %72, i8* %14
%73 = load i32, i32* %12
%74 = load i32, i32* %13
%75 = sub nsw i32 %73, %74
%76 = sub nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %77
%79 = load i8, i8* %78
%80 = load i32, i32* %13
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %81
store i8 %79, i8* %82
%83 = load i8, i8* %14
%84 = load i32, i32* %12
%85 = load i32, i32* %13
%86 = sub nsw i32 %84, %85
%87 = sub nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %88
store i8 %83, i8* %89
br label %90
90: ; preds = %68
%91 = load i32, i32* %13
%92 = add nsw i32 %91, 1
store i32 %92, i32* %13
br label %63
93: ; preds = %63
%94 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 0
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %94)
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8** %15
%96 = load i8*, i8** %15
%97 = call i32 @strlen(i8* %96)
store i32 %97, i32* %12
store i32 0, i32* %17
store i32 0, i32* %13
br label %98
98: ; preds = %135, %93
%99 = load i32, i32* %13
%100 = load i32, i32* %12
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %138
102: ; preds = %98
%103 = load i8*, i8** %15
%104 = load i32, i32* %13
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %103, i64 %105
%107 = load i8, i8* %106
%108 = call i32 @tolower(i8 signext %107)
switch i32 %108, label %115 [
i32 97, label %109
i32 98, label %110
i32 99, label %111
i32 100, label %112
i32 101, label %113
i32 102, label %114
]
109: ; preds = %102
store i32 10, i32* %16
br label %123
110: ; preds = %102
store i32 11, i32* %16
br label %123
111: ; preds = %102
store i32 12, i32* %16
br label %123
112: ; preds = %102
store i32 13, i32* %16
br label %123
113: ; preds = %102
store i32 14, i32* %16
br label %123
114: ; preds = %102
store i32 15, i32* %16
br label %123
115: ; preds = %102
%116 = load i8*, i8** %15
%117 = load i32, i32* %13
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, i8* %116, i64 %118
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = sub nsw i32 %121, 48
store i32 %122, i32* %16
br label %123
123: ; preds = %115, %114, %113, %112, %111, %110, %109
%124 = load i32, i32* %16
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %124)
%126 = load i32, i32* %16
%127 = load i32, i32* %12
%128 = load i32, i32* %13
%129 = sub nsw i32 %127, %128
%130 = sub nsw i32 %129, 1
%131 = call i32 @pow(i32 16, i32 %130)
%132 = mul nsw i32 %126, %131
%133 = load i32, i32* %17
%134 = add nsw i32 %133, %132
store i32 %134, i32* %17
br label %135
135: ; preds = %123
%136 = load i32, i32* %13
%137 = add nsw i32 %136, 1
store i32 %137, i32* %13
br label %98
138: ; preds = %98
%139 = load i32, i32* %17
%140 = load i32, i32* %17
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 %139, i32 %140)
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 48, i32 32)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
@.str.1 = [12 x i8] c"a:%d, b:%d\0A\00"
@.str.2 = [18 x i8] c"min(%d,%d) is %d\0A\00"
@.str.3 = [18 x i8] c"max(%d,%d) is %d\0A\00"
@.str.4 = [3 x i8] c">6\00"
@.str.6 = [5 x i8] c"%#X\0A\00"
@.str.7 = [4 x i8] c"%u\0A\00"
@__const.main.str1 = [17 x i8] c"abcdefg123456789\00"
@.str.8 = [10 x i8] c"str1 :%s\0A\00"
@.str.9 = [7 x i8] c"CC342f\00"
@.str.10 = [8 x i8] c"num %d\0A\00"
@.str.11 = [8 x i8] c"%#x %d\0A\00"
@.str.12 = [7 x i8] c"%d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [17 x i8]
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 31536000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 3)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 3, i32 3)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 3, i32 5)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 -1)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 4)
%11 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 0
%12 = call i32 @strlen(i8* %11)
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %56
14: ; preds = %2
%15 = lshr i32 %12, 1
%16 = zext i32 %15 to i64
%17 = and i64 %16, 1
%18 = icmp eq i32 %15, 1
br i1 %18, label %44, label %19
19: ; preds = %14
%20 = and i64 %16, 2147483646
br label %21
21: ; preds = %21, %19
%22 = phi i64 [ 0, %19 ], [ %41, %21 ]
%23 = phi i64 [ 0, %19 ], [ %42, %21 ]
%24 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %22
%25 = load i8, i8* %24
%26 = trunc i64 %22 to i32
%27 = xor i32 %26, -1
%28 = add i32 %12, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %29
%31 = load i8, i8* %30
store i8 %31, i8* %24
store i8 %25, i8* %30
%32 = or i64 %22, 1
%33 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = trunc i64 %32 to i32
%36 = xor i32 %35, -1
%37 = add i32 %12, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %38
%40 = load i8, i8* %39
store i8 %40, i8* %33
store i8 %34, i8* %39
%41 = add nuw nsw i64 %22, 2
%42 = add i64 %23, 2
%43 = icmp eq i64 %42, %20
br i1 %43, label %44, label %21
44: ; preds = %21, %14
%45 = phi i64 [ 0, %14 ], [ %41, %21 ]
%46 = icmp eq i64 %17, 0
br i1 %46, label %56, label %47
47: ; preds = %44
%48 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %45
%49 = load i8, i8* %48
%50 = trunc i64 %45 to i32
%51 = xor i32 %50, -1
%52 = add i32 %12, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %53
%55 = load i8, i8* %54
store i8 %55, i8* %48
store i8 %49, i8* %54
br label %56
56: ; preds = %47, %44, %2
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %11)
%58 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %83
60: ; preds = %56
%61 = zext i32 %58 to i64
br label %62
62: ; preds = %60, %62
%63 = phi i64 [ 0, %60 ], [ %81, %62 ]
%64 = phi i32 [ 0, %60 ], [ %80, %62 ]
%65 = trunc i64 %63 to i32
%66 = getelementptr inbounds [7 x i8], [7 x i8]* @.str.9, i64 0, i64 %63
%67 = load i8, i8* %66
%68 = call i32 @tolower(i8 signext %67)
%69 = add i32 %68, -97
%70 = icmp ult i32 %69, 6
%71 = sext i8 %67 to i32
%72 = add nsw i32 %71, -48
%73 = add i32 %68, -87
%74 = select i1 %70, i32 %73, i32 %72
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %74)
%76 = xor i32 %65, -1
%77 = add i32 %58, %76
%78 = call i32 @pow(i32 16, i32 %77)
%79 = mul nsw i32 %78, %74
%80 = add nsw i32 %79, %64
%81 = add nuw nsw i64 %63, 1
%82 = icmp eq i64 %81, %61
br i1 %82, label %83, label %62
83: ; preds = %62, %56
%84 = phi i32 [ 0, %56 ], [ %80, %62 ]
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 %84, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 48, i32 32)
ret i32 0
}