#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 */
typedef char uint8_t;
typedef size_t _binary_main_c_end;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, ...);
int main() {
  extern const unsigned char _binary_main_c_start[];
  extern const unsigned char _binary_main_c_end[];
  size_t length = ((_binary_main_c_end) - (_binary_main_c_start));
  uint8_t const *data = _binary_main_c_start;
  printf("Data at %p, len %zu\n", data, length);
  printf("%s\n", data);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ed2(%rip),%rax
mov    0x2eb3(%rip),%rcx
sub    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    0x2ea5(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    0x2ed9(%rip),%rdx
sub    %rbx,%rdx
lea    0xed7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@_binary_main_c_end = external constant [0 x i8]
@_binary_main_c_start = external constant [0 x i8]
@.str = [21 x i8] c"Data at %p, len %zu\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i8*
store i32 0, i32* %1
store i64 sub (i64 ptrtoint ([0 x i8]* @_binary_main_c_end to i64), i64 ptrtoint ([0 x i8]* @_binary_main_c_start to i64)), i64* %2
store i8* getelementptr inbounds ([0 x i8], [0 x i8]* @_binary_main_c_start, i64 0, i64 0), i8** %3
%4 = load i8*, i8** %3
%5 = load i64, i64* %2
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %4, i64 %5)
%7 = load i8*, i8** %3
%8 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
ret i32 0
}

LLVM IR (-O2):
@_binary_main_c_end = external constant [0 x i8]
@_binary_main_c_start = external constant [0 x i8]
@.str = [21 x i8] c"Data at %p, len %zu\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([0 x i8], [0 x i8]* @_binary_main_c_start, i64 0, i64 0), i64 sub (i64 ptrtoint ([0 x i8]* @_binary_main_c_end to i64), i64 ptrtoint ([0 x i8]* @_binary_main_c_start to i64)))
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([0 x i8], [0 x i8]* @_binary_main_c_start, i64 0, i64 0))
ret i32 0
}