#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 *, ...);
int version(void) {
  printf("ndisc6: IPv6 Neighbor/Router Discovery userland tool %s (%s)\n",
         "1.0.3", "$Rev$");
  printf("Written by Remi Denis-Courmont\n");
  printf("Copyright (C) %u-%u Remi Denis-Courmont\n", 2004, 2007);
  printf("This is free software; see the source for copying conditions.\n"
         "There is NO warranty; not even for MERCHANTABILITY or\n"
         "FITNESS FOR A PARTICULAR PURPOSE.\n");
  return 0;
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf1c(%rip),%rsi
lea    0xf1b(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x7d4,%esi
mov    $0x7d7,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xf0f(%rip),%rsi
lea    0xf0e(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
mov    $0x7d4,%esi
mov    $0x7d7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [62 x i8] c"ndisc6: IPv6 Neighbor/Router Discovery userland tool %s (%s)\0A\00"
@.str.1 = [6 x i8] c"1.0.3\00"
@.str.2 = [6 x i8] c"$Rev$\00"
@.str.3 = [32 x i8] c"Written by Remi Denis-Courmont\0A\00"
@.str.4 = [41 x i8] c"Copyright (C) %u-%u Remi Denis-Courmont\0A\00"
@.str.5 = [151 x i8] c"This is free software; see the source for copying conditions.\0AThere is NO warranty; not even for MERCHANTABILITY or\0AFITNESS FOR A PARTICULAR PURPOSE.\0A\00"
define i32 @version() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i32 2004, i32 2007)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [62 x i8] c"ndisc6: IPv6 Neighbor/Router Discovery userland tool %s (%s)\0A\00"
@.str.1 = [6 x i8] c"1.0.3\00"
@.str.2 = [6 x i8] c"$Rev$\00"
@.str.4 = [41 x i8] c"Copyright (C) %u-%u Remi Denis-Courmont\0A\00"
@str = [31 x i8] c"Written by Remi Denis-Courmont\00"
@str.6 = [150 x i8] c"This is free software; see the source for copying conditions.\0AThere is NO warranty; not even for MERCHANTABILITY or\0AFITNESS FOR A PARTICULAR PURPOSE.\00"
define i32 @version() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i32 2004, i32 2007)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([150 x i8], [150 x i8]* @str.6, i64 0, i64 0))
ret i32 0
}