#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 *strdup(char *);
int main(void) {
  char *x = strdup("hello");
  char c __attribute__((unused));
  char c0[8], c1[8], c2[8], c3[8], c4[8];
  char **p0 = (char **)&c0[0];
  char **p1 = (char **)&c1[1];
  char **p2 = (char **)&c2[2];
  char **p3 = (char **)&c3[3];
  char **p4 = (char **)&c4[4];
  *p0 = x;
  *p1 = x;
  *p2 = x;
  *p3 = x;
  *p4 = x;
  c = (*p0)[0];
  c = (*p1)[0];
  c = (*p2)[0];
  c = (*p3)[0];
  c = (*p4)[0];
  c = (*p0)[5];
  c = (*p1)[5];
  c = (*p2)[5];
  c = (*p3)[5];
  c = (*p4)[5];
  c = (*p0)[-1];
  c = (*p1)[-1];
  c = (*p2)[-1];
  c = (*p3)[-1];
  c = (*p4)[-1];
  c = (*p0)[6];
  c = (*p1)[6];
  c = (*p2)[6];
  c = (*p3)[6];
  c = (*p4)[6];
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,-0x10(%rbp)
lea    -0x19(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x21(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
lea    -0x29(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x58(%rbp)
lea    -0x31(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x60(%rbp)
lea    -0x39(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x48(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x50(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x58(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x60(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x68(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    0x5(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    0x5(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    0x5(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    0x5(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    0x5(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    -0x1(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    -0x1(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    -0x1(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    -0x1(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    -0x1(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    0x6(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    0x6(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
mov    0x6(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    0x6(%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    0x6(%rax),%al
mov    %al,-0x11(%rbp)
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [6 x i8] c"hello\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8
%4 = alloca [8 x i8]
%5 = alloca [8 x i8]
%6 = alloca [8 x i8]
%7 = alloca [8 x i8]
%8 = alloca [8 x i8]
%9 = alloca i8**
%10 = alloca i8**
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i8**
store i32 0, i32* %1
%14 = call i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i8* %14, i8** %2
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%16 = bitcast i8* %15 to i8**
store i8** %16, i8*** %9
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 1
%18 = bitcast i8* %17 to i8**
store i8** %18, i8*** %10
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
%20 = bitcast i8* %19 to i8**
store i8** %20, i8*** %11
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%22 = bitcast i8* %21 to i8**
store i8** %22, i8*** %12
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 4
%24 = bitcast i8* %23 to i8**
store i8** %24, i8*** %13
%25 = load i8*, i8** %2
%26 = load i8**, i8*** %9
store i8* %25, i8** %26
%27 = load i8*, i8** %2
%28 = load i8**, i8*** %10
store i8* %27, i8** %28
%29 = load i8*, i8** %2
%30 = load i8**, i8*** %11
store i8* %29, i8** %30
%31 = load i8*, i8** %2
%32 = load i8**, i8*** %12
store i8* %31, i8** %32
%33 = load i8*, i8** %2
%34 = load i8**, i8*** %13
store i8* %33, i8** %34
%35 = load i8**, i8*** %9
%36 = load i8*, i8** %35
%37 = getelementptr inbounds i8, i8* %36, i64 0
%38 = load i8, i8* %37
store i8 %38, i8* %3
%39 = load i8**, i8*** %10
%40 = load i8*, i8** %39
%41 = getelementptr inbounds i8, i8* %40, i64 0
%42 = load i8, i8* %41
store i8 %42, i8* %3
%43 = load i8**, i8*** %11
%44 = load i8*, i8** %43
%45 = getelementptr inbounds i8, i8* %44, i64 0
%46 = load i8, i8* %45
store i8 %46, i8* %3
%47 = load i8**, i8*** %12
%48 = load i8*, i8** %47
%49 = getelementptr inbounds i8, i8* %48, i64 0
%50 = load i8, i8* %49
store i8 %50, i8* %3
%51 = load i8**, i8*** %13
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8, i8* %52, i64 0
%54 = load i8, i8* %53
store i8 %54, i8* %3
%55 = load i8**, i8*** %9
%56 = load i8*, i8** %55
%57 = getelementptr inbounds i8, i8* %56, i64 5
%58 = load i8, i8* %57
store i8 %58, i8* %3
%59 = load i8**, i8*** %10
%60 = load i8*, i8** %59
%61 = getelementptr inbounds i8, i8* %60, i64 5
%62 = load i8, i8* %61
store i8 %62, i8* %3
%63 = load i8**, i8*** %11
%64 = load i8*, i8** %63
%65 = getelementptr inbounds i8, i8* %64, i64 5
%66 = load i8, i8* %65
store i8 %66, i8* %3
%67 = load i8**, i8*** %12
%68 = load i8*, i8** %67
%69 = getelementptr inbounds i8, i8* %68, i64 5
%70 = load i8, i8* %69
store i8 %70, i8* %3
%71 = load i8**, i8*** %13
%72 = load i8*, i8** %71
%73 = getelementptr inbounds i8, i8* %72, i64 5
%74 = load i8, i8* %73
store i8 %74, i8* %3
%75 = load i8**, i8*** %9
%76 = load i8*, i8** %75
%77 = getelementptr inbounds i8, i8* %76, i64 -1
%78 = load i8, i8* %77
store i8 %78, i8* %3
%79 = load i8**, i8*** %10
%80 = load i8*, i8** %79
%81 = getelementptr inbounds i8, i8* %80, i64 -1
%82 = load i8, i8* %81
store i8 %82, i8* %3
%83 = load i8**, i8*** %11
%84 = load i8*, i8** %83
%85 = getelementptr inbounds i8, i8* %84, i64 -1
%86 = load i8, i8* %85
store i8 %86, i8* %3
%87 = load i8**, i8*** %12
%88 = load i8*, i8** %87
%89 = getelementptr inbounds i8, i8* %88, i64 -1
%90 = load i8, i8* %89
store i8 %90, i8* %3
%91 = load i8**, i8*** %13
%92 = load i8*, i8** %91
%93 = getelementptr inbounds i8, i8* %92, i64 -1
%94 = load i8, i8* %93
store i8 %94, i8* %3
%95 = load i8**, i8*** %9
%96 = load i8*, i8** %95
%97 = getelementptr inbounds i8, i8* %96, i64 6
%98 = load i8, i8* %97
store i8 %98, i8* %3
%99 = load i8**, i8*** %10
%100 = load i8*, i8** %99
%101 = getelementptr inbounds i8, i8* %100, i64 6
%102 = load i8, i8* %101
store i8 %102, i8* %3
%103 = load i8**, i8*** %11
%104 = load i8*, i8** %103
%105 = getelementptr inbounds i8, i8* %104, i64 6
%106 = load i8, i8* %105
store i8 %106, i8* %3
%107 = load i8**, i8*** %12
%108 = load i8*, i8** %107
%109 = getelementptr inbounds i8, i8* %108, i64 6
%110 = load i8, i8* %109
store i8 %110, i8* %3
%111 = load i8**, i8*** %13
%112 = load i8*, i8** %111
%113 = getelementptr inbounds i8, i8* %112, i64 6
%114 = load i8, i8* %113
store i8 %114, i8* %3
ret i32 0
}

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