#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*/ msg_printf(char *, char *, char *, char, char *, char *);
int /*<<< orphan*/ msg_puts(char *);
void banner(void) {
  static int banner_out = 0;
  if (banner_out)
    return;
  banner_out = 1;
  msg_printf("%s %s%c%s, %s,", "Consistent Changes", "8", '.', "1.8",
             "July 2007");
  msg_puts(" Copyright 1980-2007 SIL Inc.\n");
}


x86 assembly (clang, -O0):
<banner>:
push   %rbp
mov    %rsp,%rbp
cmpl   $0x0,0x2f09(%rip)
je     1136 <banner+0x16>
jmp    1179 <banner+0x59>
movl   $0x1,0x2ef4(%rip)
lea    0xeb9(%rip),%rdi
lea    0xec1(%rip),%rsi
lea    0xecf(%rip),%rdx
mov    $0x2e,%ecx
lea    0xec1(%rip),%r8
lea    0xebe(%rip),%r9
call   1030 <msg_printf@plt>
lea    0xebc(%rip),%rdi
call   1040 <msg_puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<banner>:
push   %rax
cmpb   $0x0,0x2f0c(%rip)
je     112c <banner+0xc>
pop    %rax
ret
movb   $0x1,0x2f01(%rip)
lea    0xec6(%rip),%rdi
lea    0xece(%rip),%rsi
lea    0xedc(%rip),%rdx
lea    0xed3(%rip),%r8
lea    0xed0(%rip),%r9
mov    $0x2e,%ecx
call   1030 <msg_printf@plt>
lea    0xec9(%rip),%rdi
pop    %rax
jmp    1040 <msg_puts@plt>

LLVM IR (-O0):
@banner.banner_out = internal global i32 0
@.str = [15 x i8] c"%s %s%c%s, %s,\00"
@.str.1 = [19 x i8] c"Consistent Changes\00"
@.str.2 = [2 x i8] c"8\00"
@.str.3 = [4 x i8] c"1.8\00"
@.str.4 = [10 x i8] c"July 2007\00"
@.str.5 = [31 x i8] c" Copyright 1980-2007 SIL Inc.\0A\00"
define void @banner() {
%1 = load i32, i32* @banner.banner_out
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0
br label %7
4: ; preds = %0
store i32 1, i32* @banner.banner_out
%5 = call i32 @msg_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8 signext 46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @msg_puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
br label %7
7: ; preds = %4, %3
ret void
}

LLVM IR (-O2):
@banner.banner_out = internal unnamed_addr global i1 false
@.str = [15 x i8] c"%s %s%c%s, %s,\00"
@.str.1 = [19 x i8] c"Consistent Changes\00"
@.str.2 = [2 x i8] c"8\00"
@.str.3 = [4 x i8] c"1.8\00"
@.str.4 = [10 x i8] c"July 2007\00"
@.str.5 = [31 x i8] c" Copyright 1980-2007 SIL Inc.\0A\00"
define void @banner() {
%1 = load i1, i1* @banner.banner_out
br i1 %1, label %5, label %2
2: ; preds = %0
store i1 true, i1* @banner.banner_out
%3 = tail call i32 @msg_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8 signext 46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @msg_puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
br label %5
5: ; preds = %0, %2
ret void
}