#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 lower_case(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int upper_case(char);
int main(int argc, char *argv[]) {
  char name[32];
  printf("What is your name? ");
  scanf("%s", name);
  printf("Why hello there %s how are you?!\n", name);
  int x = 30;
  printf("Here is the output of variable 'x': %d\n", x);
  printf("Here is the address of variable 'x': %p\n", (void *)&x);
  int i = 0;
  char vowels[7] = {'a', 'e', 'i', 'o', 'u', 'y', 'z'};
  for (i = 0; i < 7; i++) {
    printf("You entered: %c (%d), I return to you: %c (%d)\n", vowels[i],
           vowels[i], upper_case(vowels[i]), upper_case(vowels[i]));
  }
  int a = 0;
  for (a = 97; a >= 97 && a <= 122; a++) {
    char l_letter = a;
    printf("%d: %c\n", l_letter, l_letter);
  }
  int b = 0;
  for (b = 65; b >= 65 && b <= 90; b++) {
    char u_letter = b;
    printf("%d: %c\n", u_letter, u_letter);
  }
  int c = 0;
  for (c = 65; c >= 65 && c <= 90; c++) {
    char uu_letter = c;
    char ll_letter = lower_case(uu_letter);
    printf("You provided: %c (%d), I return to you: %c (%d)\n", uu_letter,
           uu_letter, ll_letter, ll_letter);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xea5(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x30(%rbp),%rsi
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1e,-0x34(%rbp)
mov    -0x34(%rbp),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    0xf36(%rip),%eax
mov    %eax,-0x3f(%rbp)
mov    0xf30(%rip),%ax
mov    %ax,-0x3b(%rbp)
mov    0xf28(%rip),%al
mov    %al,-0x39(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x7,-0x38(%rbp)
jge    1244 <main+0x104>
movslq -0x38(%rbp),%rax
movsbl -0x3f(%rbp,%rax,1),%eax
mov    %eax,-0x64(%rbp)
movslq -0x38(%rbp),%rax
movsbl -0x3f(%rbp,%rax,1),%eax
mov    %eax,-0x60(%rbp)
movslq -0x38(%rbp),%rax
movsbl -0x3f(%rbp,%rax,1),%edi
call   1040 <upper_case@plt>
mov    %eax,-0x5c(%rbp)
movslq -0x38(%rbp),%rax
movsbl -0x3f(%rbp,%rax,1),%edi
call   1040 <upper_case@plt>
mov    -0x64(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x5c(%rbp),%ecx
mov    %eax,%r8d
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11db <main+0x9b>
movl   $0x0,-0x44(%rbp)
movl   $0x61,-0x44(%rbp)
xor    %eax,%eax
cmpl   $0x61,-0x44(%rbp)
mov    %al,-0x65(%rbp)
jl     126b <main+0x12b>
cmpl   $0x7a,-0x44(%rbp)
setle  %al
mov    %al,-0x65(%rbp)
mov    -0x65(%rbp),%al
test   $0x1,%al
jne    127b <main+0x13b>
jmp    12a5 <main+0x165>
mov    -0x44(%rbp),%eax
mov    %al,-0x45(%rbp)
movsbl -0x45(%rbp),%esi
movsbl -0x45(%rbp),%edx
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1252 <main+0x112>
movl   $0x0,-0x4c(%rbp)
movl   $0x41,-0x4c(%rbp)
xor    %eax,%eax
cmpl   $0x41,-0x4c(%rbp)
mov    %al,-0x66(%rbp)
jl     12cc <main+0x18c>
cmpl   $0x5a,-0x4c(%rbp)
setle  %al
mov    %al,-0x66(%rbp)
mov    -0x66(%rbp),%al
test   $0x1,%al
jne    12dc <main+0x19c>
jmp    1306 <main+0x1c6>
mov    -0x4c(%rbp),%eax
mov    %al,-0x4d(%rbp)
movsbl -0x4d(%rbp),%esi
movsbl -0x4d(%rbp),%edx
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12b3 <main+0x173>
movl   $0x0,-0x54(%rbp)
movl   $0x41,-0x54(%rbp)
xor    %eax,%eax
cmpl   $0x41,-0x54(%rbp)
mov    %al,-0x67(%rbp)
jl     132d <main+0x1ed>
cmpl   $0x5a,-0x54(%rbp)
setle  %al
mov    %al,-0x67(%rbp)
mov    -0x67(%rbp),%al
test   $0x1,%al
jne    133d <main+0x1fd>
jmp    137c <main+0x23c>
mov    -0x54(%rbp),%eax
mov    %al,-0x55(%rbp)
movsbl -0x55(%rbp),%edi
call   1060 <lower_case@plt>
mov    %al,-0x56(%rbp)
movsbl -0x55(%rbp),%esi
movsbl -0x55(%rbp),%edx
movsbl -0x56(%rbp),%ecx
movsbl -0x56(%rbp),%r8d
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1314 <main+0x1d4>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x38,%rsp
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xea8(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x1e,0xc(%rsp)
lea    0xeb1(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x61,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x61,%edi
call   1040 <upper_case@plt>
lea    0xec6(%rip),%rbx
mov    %rbx,%rdi
mov    $0x61,%esi
mov    $0x61,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x65,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x65,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x65,%esi
mov    $0x65,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x69,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x69,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x69,%esi
mov    $0x69,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x6f,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x6f,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x6f,%esi
mov    $0x6f,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x75,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x75,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x75,%esi
mov    $0x75,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x79,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x79,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x79,%esi
mov    $0x79,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x7a,%edi
call   1040 <upper_case@plt>
mov    %eax,%ebp
mov    $0x7a,%edi
call   1040 <upper_case@plt>
mov    %rbx,%rdi
mov    $0x7a,%esi
mov    $0x7a,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdbc(%rip),%rbx
mov    %rbx,%rdi
mov    $0x61,%esi
mov    $0x61,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x62,%esi
mov    $0x62,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x63,%esi
mov    $0x63,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x64,%esi
mov    $0x64,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x65,%esi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x66,%esi
mov    $0x66,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x67,%esi
mov    $0x67,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x68,%esi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x69,%esi
mov    $0x69,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6a,%esi
mov    $0x6a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6b,%esi
mov    $0x6b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6c,%esi
mov    $0x6c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6d,%esi
mov    $0x6d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6e,%esi
mov    $0x6e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6f,%esi
mov    $0x6f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x70,%esi
mov    $0x70,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x71,%esi
mov    $0x71,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x72,%esi
mov    $0x72,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x73,%esi
mov    $0x73,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x74,%esi
mov    $0x74,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x75,%esi
mov    $0x75,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x76,%esi
mov    $0x76,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x77,%esi
mov    $0x77,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x78,%esi
mov    $0x78,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x79,%esi
mov    $0x79,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7a,%esi
mov    $0x7a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x41,%ebp
mov    %rbx,%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x42,%esi
mov    $0x42,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x43,%esi
mov    $0x43,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
mov    $0x44,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x45,%esi
mov    $0x45,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
mov    $0x46,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x47,%esi
mov    $0x47,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x48,%esi
mov    $0x48,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x49,%esi
mov    $0x49,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4a,%esi
mov    $0x4a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4b,%esi
mov    $0x4b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4c,%esi
mov    $0x4c,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4d,%esi
mov    $0x4d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4e,%esi
mov    $0x4e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4f,%esi
mov    $0x4f,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x50,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x51,%esi
mov    $0x51,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x52,%esi
mov    $0x52,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x53,%esi
mov    $0x53,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x54,%esi
mov    $0x54,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x55,%esi
mov    $0x55,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x56,%esi
mov    $0x56,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x57,%esi
mov    $0x57,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x58,%esi
mov    $0x58,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x59,%esi
mov    $0x59,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5a,%esi
mov    $0x5a,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x9a8(%rip),%rbx
nopw   0x0(%rax,%rax,1)
movsbl %bpl,%edi
call   1060 <lower_case@plt>
movsbl %al,%ecx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    %ecx,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%ebp
cmp    $0x5b,%ebp
jne    1720 <main+0x5e0>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"What is your name? \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [34 x i8] c"Why hello there %s how are you?!\0A\00"
@.str.3 = [40 x i8] c"Here is the output of variable 'x': %d\0A\00"
@.str.4 = [41 x i8] c"Here is the address of variable 'x': %p\0A\00"
@__const.main.vowels = [7 x i8] c"aeiouyz"
@.str.5 = [48 x i8] c"You entered: %c (%d), I return to you: %c (%d)\0A\00"
@.str.6 = [8 x i8] c"%d: %c\0A\00"
@.str.7 = [49 x i8] c"You provided: %c (%d), I return to you: %c (%d)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [32 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca [7 x i8]
%10 = alloca i32
%11 = alloca i8
%12 = alloca i32
%13 = alloca i8
%14 = alloca i32
%15 = alloca i8
%16 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %20)
store i32 30, i32* %7
%22 = load i32, i32* %7
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%24 = bitcast i32* %7 to i8*
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i8* %24)
store i32 0, i32* %8
%26 = bitcast [7 x i8]* %9 to i8*
store i32 0, i32* %8
br label %27
27: ; preds = %52, %2
%28 = load i32, i32* %8
%29 = icmp slt i32 %28, 7
br i1 %29, label %30, label %55
30: ; preds = %27
%31 = load i32, i32* %8
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = load i32, i32* %8
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = load i32, i32* %8
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 %42
%44 = load i8, i8* %43
%45 = call i32 @upper_case(i8 signext %44)
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = call i32 @upper_case(i8 signext %49)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 %35, i32 %40, i32 %45, i32 %50)
br label %52
52: ; preds = %30
%53 = load i32, i32* %8
%54 = add nsw i32 %53, 1
store i32 %54, i32* %8
br label %27
55: ; preds = %27
store i32 0, i32* %10
store i32 97, i32* %10
br label %56
56: ; preds = %72, %55
%57 = load i32, i32* %10
%58 = icmp sge i32 %57, 97
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, i32* %10
%61 = icmp sle i32 %60, 122
br label %62
62: ; preds = %59, %56
%63 = phi i1 [ false, %56 ], [ %61, %59 ]
br i1 %63, label %64, label %75
64: ; preds = %62
%65 = load i32, i32* %10
%66 = trunc i32 %65 to i8
store i8 %66, i8* %11
%67 = load i8, i8* %11
%68 = sext i8 %67 to i32
%69 = load i8, i8* %11
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %68, i32 %70)
br label %72
72: ; preds = %64
%73 = load i32, i32* %10
%74 = add nsw i32 %73, 1
store i32 %74, i32* %10
br label %56
75: ; preds = %62
store i32 0, i32* %12
store i32 65, i32* %12
br label %76
76: ; preds = %92, %75
%77 = load i32, i32* %12
%78 = icmp sge i32 %77, 65
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load i32, i32* %12
%81 = icmp sle i32 %80, 90
br label %82
82: ; preds = %79, %76
%83 = phi i1 [ false, %76 ], [ %81, %79 ]
br i1 %83, label %84, label %95
84: ; preds = %82
%85 = load i32, i32* %12
%86 = trunc i32 %85 to i8
store i8 %86, i8* %13
%87 = load i8, i8* %13
%88 = sext i8 %87 to i32
%89 = load i8, i8* %13
%90 = sext i8 %89 to i32
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %88, i32 %90)
br label %92
92: ; preds = %84
%93 = load i32, i32* %12
%94 = add nsw i32 %93, 1
store i32 %94, i32* %12
br label %76
95: ; preds = %82
store i32 0, i32* %14
store i32 65, i32* %14
br label %96
96: ; preds = %118, %95
%97 = load i32, i32* %14
%98 = icmp sge i32 %97, 65
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, i32* %14
%101 = icmp sle i32 %100, 90
br label %102
102: ; preds = %99, %96
%103 = phi i1 [ false, %96 ], [ %101, %99 ]
br i1 %103, label %104, label %121
104: ; preds = %102
%105 = load i32, i32* %14
%106 = trunc i32 %105 to i8
store i8 %106, i8* %15
%107 = load i8, i8* %15
%108 = call signext i8 @lower_case(i8 signext %107)
store i8 %108, i8* %16
%109 = load i8, i8* %15
%110 = sext i8 %109 to i32
%111 = load i8, i8* %15
%112 = sext i8 %111 to i32
%113 = load i8, i8* %16
%114 = sext i8 %113 to i32
%115 = load i8, i8* %16
%116 = sext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %110, i32 %112, i32 %114, i32 %116)
br label %118
118: ; preds = %104
%119 = load i32, i32* %14
%120 = add nsw i32 %119, 1
store i32 %120, i32* %14
br label %96
121: ; preds = %102
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"What is your name? \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [34 x i8] c"Why hello there %s how are you?!\0A\00"
@.str.3 = [40 x i8] c"Here is the output of variable 'x': %d\0A\00"
@.str.4 = [41 x i8] c"Here is the address of variable 'x': %p\0A\00"
@.str.5 = [48 x i8] c"You entered: %c (%d), I return to you: %c (%d)\0A\00"
@.str.6 = [8 x i8] c"%d: %c\0A\00"
@.str.7 = [49 x i8] c"You provided: %c (%d), I return to you: %c (%d)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [32 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%9 = bitcast i32* %4 to i8*
store i32 30, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 30)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%12 = call i32 @upper_case(i8 signext 97)
%13 = call i32 @upper_case(i8 signext 97)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 97, i32 97, i32 %12, i32 %13)
%15 = call i32 @upper_case(i8 signext 101)
%16 = call i32 @upper_case(i8 signext 101)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 101, i32 101, i32 %15, i32 %16)
%18 = call i32 @upper_case(i8 signext 105)
%19 = call i32 @upper_case(i8 signext 105)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 105, i32 105, i32 %18, i32 %19)
%21 = call i32 @upper_case(i8 signext 111)
%22 = call i32 @upper_case(i8 signext 111)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 111, i32 111, i32 %21, i32 %22)
%24 = call i32 @upper_case(i8 signext 117)
%25 = call i32 @upper_case(i8 signext 117)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 117, i32 117, i32 %24, i32 %25)
%27 = call i32 @upper_case(i8 signext 121)
%28 = call i32 @upper_case(i8 signext 121)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 121, i32 121, i32 %27, i32 %28)
%30 = call i32 @upper_case(i8 signext 122)
%31 = call i32 @upper_case(i8 signext 122)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 122, i32 122, i32 %30, i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 97, i32 97)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 98, i32 98)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 99, i32 99)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 100, i32 100)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 101, i32 101)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 102, i32 102)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 103, i32 103)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 104, i32 104)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 105, i32 105)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 106, i32 106)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 107, i32 107)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 108, i32 108)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 109, i32 109)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 110, i32 110)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 111, i32 111)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 112, i32 112)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 113, i32 113)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 114, i32 114)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 115, i32 115)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 116, i32 116)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 117, i32 117)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 118, i32 118)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 119, i32 119)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 120, i32 120)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 121, i32 121)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 122, i32 122)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 65, i32 65)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 66, i32 66)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 67, i32 67)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 68, i32 68)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 69, i32 69)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 70, i32 70)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 71, i32 71)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 72, i32 72)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 73, i32 73)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 74, i32 74)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 75, i32 75)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 76, i32 76)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 77, i32 77)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 78, i32 78)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 79, i32 79)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 80, i32 80)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 81, i32 81)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 82, i32 82)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 83, i32 83)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 84, i32 84)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 85, i32 85)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 86, i32 86)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 87, i32 87)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 88, i32 88)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 89, i32 89)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 90, i32 90)
br label %85
85: ; preds = %2, %85
%86 = phi i32 [ %91, %85 ], [ 65, %2 ]
%87 = trunc i32 %86 to i8
%88 = call signext i8 @lower_case(i8 signext %87)
%89 = sext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %86, i32 %86, i32 %89, i32 %89)
%91 = add nuw nsw i32 %86, 1
%92 = icmp eq i32 %91, 91
br i1 %92, label %93, label %85
93: ; preds = %85
ret i32 0
}