#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 *, ...);
void _show_license(void) {
  int cnt = 0;
  printf(
      ("OTPasswd - One-Time Password Authentication System.\n"
       "Version %s \n"
       "Copyright (C) 2009, 2010 Tomasz bla Fortuna <bla@thera.be>\n"
       "\n"
       "This program is free software: you can redistribute it and/or modify\n"
       "it under the terms of the GNU General Public License as published by\n"
       "the Free Software Foundation, either version 3 of the License, or\n"
       "(at your option) any later version.\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"
       "GNU General Public License for more details.\n"
       "\n"
       "You should have received a copy of the GNU General Public License\n"
       "along with this program in a LICENSE file.\n"),
      "0.8");
  printf("\n\n");
  printf(("OTPasswd was build with following options enabled:\n"));
  if (!cnt) {
    printf(("NONE"));
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<_show_license>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0x1199(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1184(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
jne    1168 <_show_license+0x58>
lea    0x11a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_show_license>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x1187(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1177(%rip),%rdi
call   1040 <puts@plt>
lea    0x1176(%rip),%rdi
call   1040 <puts@plt>
lea    0x1165(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [710 x i8] c"OTPasswd - One-Time Password Authentication System.\0AVersion %s \0ACopyright (C) 2009, 2010 Tomasz bla Fortuna <bla@thera.be>\0A\0AThis program is free software: you can redistribute it and/or modify\0Ait under the terms of the GNU General Public License as published by\0Athe Free Software Foundation, either version 3 of the License, or\0A(at your option) any later version.\0A\0AThis program is distributed in the hope that it will be useful,\0Abut WITHOUT ANY WARRANTY; without even the implied warranty of\0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0AGNU General Public License for more details.\0A\0AYou should have received a copy of the GNU General Public License\0Aalong with this program in a LICENSE file.\0A\00"
@.str.1 = [4 x i8] c"0.8\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
@.str.3 = [52 x i8] c"OTPasswd was build with following options enabled:\0A\00"
@.str.4 = [5 x i8] c"NONE\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @_show_license() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([710 x i8], [710 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%5 = load i32, i32* %1
%6 = icmp ne i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [710 x i8] c"OTPasswd - One-Time Password Authentication System.\0AVersion %s \0ACopyright (C) 2009, 2010 Tomasz bla Fortuna <bla@thera.be>\0A\0AThis program is free software: you can redistribute it and/or modify\0Ait under the terms of the GNU General Public License as published by\0Athe Free Software Foundation, either version 3 of the License, or\0A(at your option) any later version.\0A\0AThis program is distributed in the hope that it will be useful,\0Abut WITHOUT ANY WARRANTY; without even the implied warranty of\0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0AGNU General Public License for more details.\0A\0AYou should have received a copy of the GNU General Public License\0Aalong with this program in a LICENSE file.\0A\00"
@.str.1 = [4 x i8] c"0.8\00"
@.str.4 = [5 x i8] c"NONE\00"
@str = [2 x i8] c"\0A\00"
@str.6 = [51 x i8] c"OTPasswd was build with following options enabled:\00"
define void @_show_license() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([710 x i8], [710 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
ret void
}