#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*/ abort();
char f(int);
int main() {
  if (f(1) != 'q' + 1 || f(2) != 'w' + 1 || f(3) != 'e' + 1 ||
      f(4) != 'r' + 1 || f(5) != 't' + 1 || f(6) != 'y' + 1)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x72,%eax
jne    11b3 <main+0x93>
mov    $0x2,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x78,%eax
jne    11b3 <main+0x93>
mov    $0x3,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x66,%eax
jne    11b3 <main+0x93>
mov    $0x4,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x73,%eax
jne    11b3 <main+0x93>
mov    $0x5,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x75,%eax
jne    11b3 <main+0x93>
mov    $0x6,%edi
call   1040 <f@plt>
movsbl %al,%eax
cmp    $0x7a,%eax
je     11ba <main+0x9a>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1040 <f@plt>
cmp    $0x72,%al
jne    1179 <main+0x59>
mov    $0x2,%edi
call   1040 <f@plt>
cmp    $0x78,%al
jne    1179 <main+0x59>
mov    $0x3,%edi
call   1040 <f@plt>
cmp    $0x66,%al
jne    1179 <main+0x59>
mov    $0x4,%edi
call   1040 <f@plt>
cmp    $0x73,%al
jne    1179 <main+0x59>
mov    $0x5,%edi
call   1040 <f@plt>
cmp    $0x75,%al
jne    1179 <main+0x59>
mov    $0x6,%edi
call   1040 <f@plt>
cmp    $0x7a,%al
jne    1179 <main+0x59>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call signext i8 @f(i32 1)
%3 = sext i8 %2 to i32
%4 = icmp ne i32 %3, 114
br i1 %4, label %25, label %5
5: ; preds = %0
%6 = call signext i8 @f(i32 2)
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 120
br i1 %8, label %25, label %9
9: ; preds = %5
%10 = call signext i8 @f(i32 3)
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 102
br i1 %12, label %25, label %13
13: ; preds = %9
%14 = call signext i8 @f(i32 4)
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 115
br i1 %16, label %25, label %17
17: ; preds = %13
%18 = call signext i8 @f(i32 5)
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 117
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = call signext i8 @f(i32 6)
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 122
br i1 %24, label %25, label %27
25: ; preds = %21, %17, %13, %9, %5, %0
%26 = call i32 (...) @abort()
unreachable
27: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call signext i8 @f(i32 1)
%2 = icmp eq i8 %1, 114
br i1 %2, label %3, label %18
3: ; preds = %0
%4 = tail call signext i8 @f(i32 2)
%5 = icmp eq i8 %4, 120
br i1 %5, label %6, label %18
6: ; preds = %3
%7 = tail call signext i8 @f(i32 3)
%8 = icmp eq i8 %7, 102
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = tail call signext i8 @f(i32 4)
%11 = icmp eq i8 %10, 115
br i1 %11, label %12, label %18
12: ; preds = %9
%13 = tail call signext i8 @f(i32 5)
%14 = icmp eq i8 %13, 117
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = tail call signext i8 @f(i32 6)
%17 = icmp eq i8 %16, 122
br i1 %17, label %20, label %18
18: ; preds = %15, %12, %9, %6, %3, %0
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
ret i32 0
}