#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*/ carp_print_conditions();
int /*<<< orphan*/ puts(char *);
void carp_print_license() {
  puts("CarpVM Copyright (C) 2014-2015 Fred Morcos");
  puts("  Based on carp by Maxwell Bernstein");
  puts("");
  puts("This program comes with ABSOLUTELY NO WARRANTY;");
  puts("for details type `carp -w`. This is free software,");
  puts("and you are welcome to redistribute it under");
  puts("certain conditions; type `carp -c` for details.");
  puts("");
  carp_print_conditions();
}


x86 assembly (clang, -O0):
<carp_print_license>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <carp_print_conditions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<carp_print_license>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xee7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xef6(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <carp_print_conditions@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"CarpVM Copyright (C) 2014-2015 Fred Morcos\00"
@.str.1 = [37 x i8] c" Based on carp by Maxwell Bernstein\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [48 x i8] c"This program comes with ABSOLUTELY NO WARRANTY;\00"
@.str.4 = [51 x i8] c"for details type `carp -w`. This is free software,\00"
@.str.5 = [45 x i8] c"and you are welcome to redistribute it under\00"
@.str.6 = [48 x i8] c"certain conditions; type `carp -c` for details.\00"
define void @carp_print_license() {
%1 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (...) @carp_print_conditions()
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"CarpVM Copyright (C) 2014-2015 Fred Morcos\00"
@.str.1 = [37 x i8] c" Based on carp by Maxwell Bernstein\00"
@.str.3 = [48 x i8] c"This program comes with ABSOLUTELY NO WARRANTY;\00"
@.str.4 = [51 x i8] c"for details type `carp -w`. This is free software,\00"
@.str.5 = [45 x i8] c"and you are welcome to redistribute it under\00"
@.str.6 = [48 x i8] c"certain conditions; type `carp -c` for details.\00"
define void @carp_print_license() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 (...) @carp_print_conditions()
ret void
}