#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*/ license();
int /*<<< orphan*/ printf(char *, ...);
void version() {
  license();
  printf("Compilation options:\n%s %s ", "DIRENT", "UTIME");
  printf("STDC_HEADERS ");
  printf("HAVE_UNISTD_H ");
  printf("HAVE_MEMORY_H ");
  printf("HAVE_STRING_H ");
  printf("HAVE_LSTAT ");
  printf("\n");
  printf("Written by Jean-loup Gailly.\n");
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <license@plt>
lea    0xece(%rip),%rdi
lea    0xee3(%rip),%rsi
lea    0xee3(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
push   %rax
xor    %eax,%eax
call   1060 <license@plt>
lea    0xeb1(%rip),%rdi
lea    0xec6(%rip),%rsi
lea    0xec6(%rip),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeb5(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Compilation options:\0A%s %s \00"
@.str.1 = [7 x i8] c"DIRENT\00"
@.str.2 = [6 x i8] c"UTIME\00"
@.str.3 = [14 x i8] c"STDC_HEADERS \00"
@.str.4 = [15 x i8] c"HAVE_UNISTD_H \00"
@.str.5 = [15 x i8] c"HAVE_MEMORY_H \00"
@.str.6 = [15 x i8] c"HAVE_STRING_H \00"
@.str.7 = [12 x i8] c"HAVE_LSTAT \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [30 x i8] c"Written by Jean-loup Gailly.\0A\00"
define void @version() {
%1 = call i32 (...) @license()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Compilation options:\0A%s %s \00"
@.str.1 = [7 x i8] c"DIRENT\00"
@.str.2 = [6 x i8] c"UTIME\00"
@.str.3 = [14 x i8] c"STDC_HEADERS \00"
@.str.4 = [15 x i8] c"HAVE_UNISTD_H \00"
@.str.5 = [15 x i8] c"HAVE_MEMORY_H \00"
@.str.6 = [15 x i8] c"HAVE_STRING_H \00"
@.str.7 = [12 x i8] c"HAVE_LSTAT \00"
@str = [29 x i8] c"Written by Jean-loup Gailly.\00"
define void @version() {
%1 = tail call i32 (...) @license()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret void
}