#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 *BZ2_bzlibVersion();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void license(void) {
  fprintf(
      stderr,
      "bzip2, a block-sorting file compressor.  "
      "Version %s.\n"
      "   \n"
      "   Copyright (C) 1996-2000 by Julian Seward.\n"
      "   \n"
      "   This program is free software; you can redistribute it and/or "
      "modify\n"
      "   it under the terms set out in the LICENSE file, which is included\n"
      "   in the bzip2-1.0 source distribution.\n"
      "   \n"
      "   This program is distributed in the hope that it will be useful,\n"
      "   but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
      "   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
      "   LICENSE file for more details.\n"
      "   \n",
      BZ2_bzlibVersion());
}


x86 assembly (clang, -O0):
<license>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <BZ2_bzlibVersion@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xeb8(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<license>:
push   %rbx
mov    0x2eb8(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1030 <BZ2_bzlibVersion@plt>
lea    0xec8(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
pop    %rbx
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [529 x i8] c"bzip2, a block-sorting file compressor. Version %s.\0A \0A Copyright (C) 1996-2000 by Julian Seward.\0A \0A This program is free software; you can redistribute it and/or modify\0A it under the terms set out in the LICENSE file, which is included\0A in the bzip2-1.0 source distribution.\0A \0A This program is distributed in the hope that it will be useful,\0A but WITHOUT ANY WARRANTY; without even the implied warranty of\0A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A LICENSE file for more details.\0A \0A\00"
define void @license() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @BZ2_bzlibVersion()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([529 x i8], [529 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [529 x i8] c"bzip2, a block-sorting file compressor. Version %s.\0A \0A Copyright (C) 1996-2000 by Julian Seward.\0A \0A This program is free software; you can redistribute it and/or modify\0A it under the terms set out in the LICENSE file, which is included\0A in the bzip2-1.0 source distribution.\0A \0A This program is distributed in the hope that it will be useful,\0A but WITHOUT ANY WARRANTY; without even the implied warranty of\0A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A LICENSE file for more details.\0A \0A\00"
define void @license() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @BZ2_bzlibVersion()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([529 x i8], [529 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}