#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 *);
void print_ident(FILE *stream) {
  fprintf(stream, "\n");
  fprintf(stream, "oshader - Shading Language Compiler\n\n");
  fprintf(
      stream,
      "openRender 1.0 Release 1 linux (Adheres to the RenderMan Standard)\n");
  fprintf(stream, "(c) Copyright 2002 Juvenal A. Silva Jr.  Portions (c) Ian "
                  "Stephenson.\n");
  fprintf(stream, "All Rights Reserved.\n\n");
  fprintf(stream,
          "The RenderMan (R) Interface Procedures and RIB Protocol are:\n");
  fprintf(stream, "Copyright 1988,1989, Pixar. All Rights Reserved.\n");
  fprintf(stream, "RenderMan (R) is a registered trademark of Pixar.\n\n");
}


x86 assembly (clang, -O0):
<print_ident>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf9f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf13(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf4a(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf51(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf7f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfa1(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_ident>:
push   %rbx
mov    %rdi,%rbx
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
lea    0xec8(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xed5(%rip),%rdi
mov    $0x43,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf00(%rip),%rdi
mov    $0x46,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf2e(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf2c(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf51(%rip),%rdi
mov    $0x31,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf6a(%rip),%rdi
mov    $0x33,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [38 x i8] c"oshader - Shading Language Compiler\0A\0A\00"
@.str.2 = [68 x i8] c"openRender 1.0 Release 1 linux (Adheres to the RenderMan Standard)\0A\00"
@.str.3 = [71 x i8] c"(c) Copyright 2002 Juvenal A. Silva Jr. Portions (c) Ian Stephenson.\0A\00"
@.str.4 = [23 x i8] c"All Rights Reserved.\0A\0A\00"
@.str.5 = [62 x i8] c"The RenderMan (R) Interface Procedures and RIB Protocol are:\0A\00"
@.str.6 = [50 x i8] c"Copyright 1988,1989, Pixar. All Rights Reserved.\0A\00"
@.str.7 = [52 x i8] c"RenderMan (R) is a registered trademark of Pixar.\0A\0A\00"
define void @print_ident(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [38 x i8] c"oshader - Shading Language Compiler\0A\0A\00"
@.str.2 = [68 x i8] c"openRender 1.0 Release 1 linux (Adheres to the RenderMan Standard)\0A\00"
@.str.3 = [71 x i8] c"(c) Copyright 2002 Juvenal A. Silva Jr. Portions (c) Ian Stephenson.\0A\00"
@.str.4 = [23 x i8] c"All Rights Reserved.\0A\0A\00"
@.str.5 = [62 x i8] c"The RenderMan (R) Interface Procedures and RIB Protocol are:\0A\00"
@.str.6 = [50 x i8] c"Copyright 1988,1989, Pixar. All Rights Reserved.\0A\00"
@.str.7 = [52 x i8] c"RenderMan (R) is a registered trademark of Pixar.\0A\0A\00"
define void @print_ident(i32* nocapture %0) {
%2 = tail call i32 @fputc(i32 10, i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i64 37, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0), i64 67, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0), i64 70, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 22, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i64 61, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0), i64 49, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i64 51, i64 1, i32* %0)
ret void
}