#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*/ log_println();
int /*<<< orphan*/ log_println_str(char *);
void lw_basicopt_legal_info(char *name) {
  log_println();
  log_println_str(name);
  log_println();
  log_println_str("v"
                  "5.6.5"
                  " compiled on "
                  "Mar 16 2022"
                  " at "
                  "04:20:13");
  log_println_str("Copyright (C) 1998-2013 Christian Mauduit");
  log_println();
  log_println_str(
      "This program is free software; you can redistribute it and/or modify");
  log_println_str(
      "it under the terms of the GNU General Public License as published by");
  log_println_str(
      "the Free Software Foundation; either version 2 of the License, or");
  log_println_str("(at your option) any later version.");
  log_println();
  log_println_str(
      "This program is distributed in the hope that it will be useful,");
  log_println_str(
      "but WITHOUT ANY WARRANTY; without even the implied warranty of");
  log_println_str(
      "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the");
  log_println_str("GNU General Public License for more details.");
  log_println();
  log_println_str(
      "You should have received a copy of the GNU General Public License");
  log_println_str(
      "along with this program; if not, write to the Free Software");
  log_println_str("Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  "
                  "02110-1301  USA");
  log_println();
  log_println_str("Liquid War homepage : http://www.ufoot.org/liquidwar/v5");
  log_println_str("Contact author      : ufoot@ufoot.org");
}


x86 assembly (clang, -O0):
<lw_basicopt_legal_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <log_println@plt>
mov    -0x8(%rbp),%rdi
call   1040 <log_println_str@plt>
mov    $0x0,%al
call   1030 <log_println@plt>
lea    0xeb6(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xed5(%rip),%rdi
call   1040 <log_println_str@plt>
mov    $0x0,%al
call   1030 <log_println@plt>
lea    0xeec(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf25(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf5e(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf94(%rip),%rdi
call   1040 <log_println_str@plt>
mov    $0x0,%al
call   1030 <log_println@plt>
lea    0xfa5(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xfd9(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x100c(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x103e(%rip),%rdi
call   1040 <log_println_str@plt>
mov    $0x0,%al
call   1030 <log_println@plt>
lea    0x1058(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x108e(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x10be(%rip),%rdi
call   1040 <log_println_str@plt>
mov    $0x0,%al
call   1030 <log_println@plt>
lea    0x10f6(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x1122(%rip),%rdi
call   1040 <log_println_str@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lw_basicopt_legal_info>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <log_println@plt>
mov    %rbx,%rdi
call   1040 <log_println_str@plt>
xor    %eax,%eax
call   1030 <log_println@plt>
lea    0xebf(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xede(%rip),%rdi
call   1040 <log_println_str@plt>
xor    %eax,%eax
call   1030 <log_println@plt>
lea    0xef5(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf2e(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf67(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xf9d(%rip),%rdi
call   1040 <log_println_str@plt>
xor    %eax,%eax
call   1030 <log_println@plt>
lea    0xfae(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0xfe2(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x1015(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x1047(%rip),%rdi
call   1040 <log_println_str@plt>
xor    %eax,%eax
call   1030 <log_println@plt>
lea    0x1061(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x1097(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x10c7(%rip),%rdi
call   1040 <log_println_str@plt>
xor    %eax,%eax
call   1030 <log_println@plt>
lea    0x10ff(%rip),%rdi
call   1040 <log_println_str@plt>
lea    0x112b(%rip),%rdi
pop    %rbx
jmp    1040 <log_println_str@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"v5.6.5 compiled on Mar 16 2022 at 04:20:13\00"
@.str.1 = [42 x i8] c"Copyright (C) 1998-2013 Christian Mauduit\00"
@.str.2 = [69 x i8] c"This program is free software; you can redistribute it and/or modify\00"
@.str.3 = [69 x i8] c"it under the terms of the GNU General Public License as published by\00"
@.str.4 = [66 x i8] c"the Free Software Foundation; either version 2 of the License, or\00"
@.str.5 = [36 x i8] c"(at your option) any later version.\00"
@.str.6 = [64 x i8] c"This program is distributed in the hope that it will be useful,\00"
@.str.7 = [63 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\00"
@.str.8 = [62 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\00"
@.str.9 = [45 x i8] c"GNU General Public License for more details.\00"
@.str.10 = [66 x i8] c"You should have received a copy of the GNU General Public License\00"
@.str.11 = [60 x i8] c"along with this program; if not, write to the Free Software\00"
@.str.12 = [75 x i8] c"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\00"
@.str.13 = [56 x i8] c"Liquid War homepage : http://www.ufoot.org/liquidwar/v5\00"
@.str.14 = [38 x i8] c"Contact author : ufoot@ufoot.org\00"
define void @lw_basicopt_legal_info(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @log_println()
%4 = load i8*, i8** %2
%5 = call i32 @log_println_str(i8* %4)
%6 = call i32 (...) @log_println()
%7 = call i32 @log_println_str(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @log_println_str(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (...) @log_println()
%10 = call i32 @log_println_str(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @log_println_str(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @log_println_str(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @log_println_str(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (...) @log_println()
%15 = call i32 @log_println_str(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @log_println_str(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @log_println_str(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @log_println_str(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (...) @log_println()
%20 = call i32 @log_println_str(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 @log_println_str(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.11, i64 0, i64 0))
%22 = call i32 @log_println_str(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.12, i64 0, i64 0))
%23 = call i32 (...) @log_println()
%24 = call i32 @log_println_str(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%25 = call i32 @log_println_str(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"v5.6.5 compiled on Mar 16 2022 at 04:20:13\00"
@.str.1 = [42 x i8] c"Copyright (C) 1998-2013 Christian Mauduit\00"
@.str.2 = [69 x i8] c"This program is free software; you can redistribute it and/or modify\00"
@.str.3 = [69 x i8] c"it under the terms of the GNU General Public License as published by\00"
@.str.4 = [66 x i8] c"the Free Software Foundation; either version 2 of the License, or\00"
@.str.5 = [36 x i8] c"(at your option) any later version.\00"
@.str.6 = [64 x i8] c"This program is distributed in the hope that it will be useful,\00"
@.str.7 = [63 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\00"
@.str.8 = [62 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\00"
@.str.9 = [45 x i8] c"GNU General Public License for more details.\00"
@.str.10 = [66 x i8] c"You should have received a copy of the GNU General Public License\00"
@.str.11 = [60 x i8] c"along with this program; if not, write to the Free Software\00"
@.str.12 = [75 x i8] c"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\00"
@.str.13 = [56 x i8] c"Liquid War homepage : http://www.ufoot.org/liquidwar/v5\00"
@.str.14 = [38 x i8] c"Contact author : ufoot@ufoot.org\00"
define void @lw_basicopt_legal_info(i8* %0) {
%2 = tail call i32 (...) @log_println()
%3 = tail call i32 @log_println_str(i8* %0)
%4 = tail call i32 (...) @log_println()
%5 = tail call i32 @log_println_str(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @log_println_str(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (...) @log_println()
%8 = tail call i32 @log_println_str(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @log_println_str(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @log_println_str(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @log_println_str(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (...) @log_println()
%13 = tail call i32 @log_println_str(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @log_println_str(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 @log_println_str(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%16 = tail call i32 @log_println_str(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%17 = tail call i32 (...) @log_println()
%18 = tail call i32 @log_println_str(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%19 = tail call i32 @log_println_str(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.11, i64 0, i64 0))
%20 = tail call i32 @log_println_str(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.12, i64 0, i64 0))
%21 = tail call i32 (...) @log_println()
%22 = tail call i32 @log_println_str(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%23 = tail call i32 @log_println_str(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
ret void
}