int main() {
  char *s;
  s = "abc"
      "def";
  if (s[0] != 'a')
    return 1;
  if (s[1] != 'b')
    return 2;
  if (s[2] != 'c')
    return 3;
  if (s[3] != 'd')
    return 4;
  if (s[4] != 'e')
    return 5;
  if (s[5] != 'f')
    return 6;
  if (s[6] != 0)
    return 7;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
lea    0xeee(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
je     1132 <main+0x32>
movl   $0x1,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x62,%eax
je     114f <main+0x4f>
movl   $0x2,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x63,%eax
je     116c <main+0x6c>
movl   $0x3,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x64,%eax
je     1189 <main+0x89>
movl   $0x4,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x65,%eax
je     11a6 <main+0xa6>
movl   $0x5,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x66,%eax
je     11c3 <main+0xc3>
movl   $0x6,-0x4(%rbp)
jmp    11e7 <main+0xe7>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x0,%eax
je     11e0 <main+0xe0>
movl   $0x7,-0x4(%rbp)
jmp    11e7 <main+0xe7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [7 x i8] c"abcdef\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 97
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 1, i32* %1
br label %52
9: ; preds = %0
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 98
br i1 %14, label %15, label %16
15: ; preds = %9
store i32 2, i32* %1
br label %52
16: ; preds = %9
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i64 2
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 99
br i1 %21, label %22, label %23
22: ; preds = %16
store i32 3, i32* %1
br label %52
23: ; preds = %16
%24 = load i8*, i8** %2
%25 = getelementptr inbounds i8, i8* %24, i64 3
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 100
br i1 %28, label %29, label %30
29: ; preds = %23
store i32 4, i32* %1
br label %52
30: ; preds = %23
%31 = load i8*, i8** %2
%32 = getelementptr inbounds i8, i8* %31, i64 4
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 101
br i1 %35, label %36, label %37
36: ; preds = %30
store i32 5, i32* %1
br label %52
37: ; preds = %30
%38 = load i8*, i8** %2
%39 = getelementptr inbounds i8, i8* %38, i64 5
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 102
br i1 %42, label %43, label %44
43: ; preds = %37
store i32 6, i32* %1
br label %52
44: ; preds = %37
%45 = load i8*, i8** %2
%46 = getelementptr inbounds i8, i8* %45, i64 6
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %44
store i32 7, i32* %1
br label %52
51: ; preds = %44
store i32 0, i32* %1
br label %52
52: ; preds = %51, %50, %43, %36, %29, %22, %15, %8
%53 = load i32, i32* %1
ret i32 %53
}

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