#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *, ...);
void license(FILE *f, const char *start, const char *middle, const char *end) {
  static const char *gpl[] = {
      "This file is part of 34S.",
      "",
      "34S is free software: you can redistribute it and/or modify",
      "it under the terms of the GNU General Public License as published by",
      "the Free Software Foundation, either version 3 of the License, or",
      "(at your option) any later version.",
      "",
      "34S is distributed in the hope that it will be useful,",
      "but WITHOUT ANY WARRANTY; without even the implied warranty of",
      "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the",
      "GNU General Public License for more details.",
      "",
      "You should have received a copy of the GNU General Public License",
      "along with 34S.  If not, see <http://www.gnu.org/licenses/>.",
      "",
      "",
      "This file is automatically generated.",
      "Changes will not be preserved.",
      NULL};
  int i;
  for (i = 0; gpl[i] != NULL; i++)
    fprintf(f, "%s%s\n", i == 0 ? start : middle, gpl[i]);
  fprintf(f, "%s\n\n", end);
}


x86 assembly (clang, -O0):
<license>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movslq -0x24(%rbp),%rcx
lea    0x2ef6(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     119f <license+0x8f>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1164 <license+0x54>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    116c <license+0x5c>
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rdx
movslq -0x24(%rbp),%rcx
lea    0x2eb1(%rip),%rax
mov    (%rax,%rcx,8),%rcx
lea    0x111c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112f <license+0x1f>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0x10fe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<license>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,(%rsp)
mov    %rdx,%r12
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0x2c51(%rip),%rbp
lea    0x1170(%rip),%r13
xor    %r14d,%r14d
nopl   0x0(%rax)
mov    (%r14,%rbp,1),%rcx
test   %r14,%r14
mov    %r12,%rdx
cmove  %rbx,%rdx
mov    %r15,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x8,%r14
cmp    $0x90,%r14
jne    1140 <license+0x30>
lea    0x113d(%rip),%rsi
mov    %r15,%rdi
mov    (%rsp),%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@license.gpl = internal global [19 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i32 0, i32 0), i8* null]
@.str = [26 x i8] c"This file is part of 34S.\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [60 x i8] c"34S 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 3 of the License, or\00"
@.str.5 = [36 x i8] c"(at your option) any later version.\00"
@.str.6 = [55 x i8] c"34S 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 = [61 x i8] c"along with 34S. If not, see <http://www.gnu.org/licenses/>.\00"
@.str.12 = [38 x i8] c"This file is automatically generated.\00"
@.str.13 = [31 x i8] c"Changes will not be preserved.\00"
@.str.14 = [6 x i8] c"%s%s\0A\00"
@.str.15 = [5 x i8] c"%s\0A\0A\00"
define void @license(i32* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
store i32* %0, i32** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
store i32 0, i32* %9
br label %10
10: ; preds = %31, %4
%11 = load i32, i32* %9
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [19 x i8*], [19 x i8*]* @license.gpl, i64 0, i64 %12
%14 = load i8*, i8** %13
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %34
16: ; preds = %10
%17 = load i32*, i32** %5
%18 = load i32, i32* %9
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i8*, i8** %6
br label %24
22: ; preds = %16
%23 = load i8*, i8** %7
br label %24
24: ; preds = %22, %20
%25 = phi i8* [ %21, %20 ], [ %23, %22 ]
%26 = load i32, i32* %9
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [19 x i8*], [19 x i8*]* @license.gpl, i64 0, i64 %27
%29 = load i8*, i8** %28
%30 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* %25, i8* %29)
br label %31
31: ; preds = %24
%32 = load i32, i32* %9
%33 = add nsw i32 %32, 1
store i32 %33, i32* %9
br label %10
34: ; preds = %10
%35 = load i32*, i32** %5
%36 = load i8*, i8** %8
%37 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* %36)
ret void
}

LLVM IR (-O2):
@license.gpl = internal unnamed_addr constant [19 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i32 0, i32 0), i8* null]
@.str = [26 x i8] c"This file is part of 34S.\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [60 x i8] c"34S 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 3 of the License, or\00"
@.str.5 = [36 x i8] c"(at your option) any later version.\00"
@.str.6 = [55 x i8] c"34S 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 = [61 x i8] c"along with 34S. If not, see <http://www.gnu.org/licenses/>.\00"
@.str.12 = [38 x i8] c"This file is automatically generated.\00"
@.str.13 = [31 x i8] c"Changes will not be preserved.\00"
@.str.14 = [6 x i8] c"%s%s\0A\00"
@.str.15 = [5 x i8] c"%s\0A\0A\00"
define void @license(i32* nocapture %0, i8* %1, i8* %2, i8* %3) {
br label %5
5: ; preds = %4, %5
%6 = phi i64 [ 0, %4 ], [ %12, %5 ]
%7 = getelementptr inbounds [19 x i8*], [19 x i8*]* @license.gpl, i64 0, i64 %6
%8 = load i8*, i8** %7
%9 = icmp eq i64 %6, 0
%10 = select i1 %9, i8* %1, i8* %2
%11 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* %10, i8* %8)
%12 = add nuw nsw i64 %6, 1
%13 = icmp eq i64 %12, 18
br i1 %13, label %14, label %5
14: ; preds = %5
%15 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* %3)
ret void
}