#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*/ printf(char *, char *);
int main(void) {
  char s[] = "hello";
  char ss[] = "goodbye";
  if (s == "hello") {
    printf("[%s] == 'hello'\n", s);
  }
  if (ss == "hello") {
    printf("[%s] == 'hello'\n", ss);
  }
  if (s == "goodbye") {
    printf("[%s] == 'goodbye'\n", s);
  }
  if (ss == "goodbye") {
    printf("[%s] == 'goodbye'\n", ss);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0xa(%rbp)
mov    0xed5(%rip),%ax
mov    %ax,-0x6(%rbp)
mov    0xecc(%rip),%rax
mov    %rax,-0x12(%rbp)
lea    -0xa(%rbp),%rax
lea    0xeb7(%rip),%rcx
cmp    %rcx,%rax
jne    1162 <main+0x52>
lea    -0xa(%rbp),%rsi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
lea    -0x12(%rbp),%rax
lea    0xe93(%rip),%rcx
cmp    %rcx,%rax
jne    1186 <main+0x76>
lea    -0x12(%rbp),%rsi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
lea    -0xa(%rbp),%rax
lea    0xe75(%rip),%rcx
cmp    %rcx,%rax
jne    11aa <main+0x9a>
lea    -0xa(%rbp),%rsi
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
lea    -0x12(%rbp),%rax
lea    0xe51(%rip),%rcx
cmp    %rcx,%rax
jne    11ce <main+0xbe>
lea    -0x12(%rbp),%rsi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@__const.main.s = [6 x i8] c"hello\00"
@__const.main.ss = [8 x i8] c"goodbye\00"
@.str = [6 x i8] c"hello\00"
@.str.1 = [17 x i8] c"[%s] == 'hello'\0A\00"
@.str.2 = [8 x i8] c"goodbye\00"
@.str.3 = [19 x i8] c"[%s] == 'goodbye'\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i8]
%3 = alloca [8 x i8]
store i32 0, i32* %1
%4 = bitcast [6 x i8]* %2 to i8*
%5 = bitcast [8 x i8]* %3 to i8*
%6 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%7 = icmp eq i8* %6, getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%10 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %9)
br label %11
11: ; preds = %8, %0
%12 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%13 = icmp eq i8* %12, getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%16 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %15)
br label %17
17: ; preds = %14, %11
%18 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%19 = icmp eq i8* %18, getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%22 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %21)
br label %23
23: ; preds = %20, %17
%24 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%25 = icmp eq i8* %24, getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%28 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %27)
br label %29
29: ; preds = %26, %23
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}