#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 rp_show_copying(void) {
  printf("Original rproxy: Copyright (C) 1999-2001 Quality Quorum, Inc.\n");
  printf("GDBproxy adaptation: Copyright (C) 2002 Chris Liechti and Steve "
         "Underwood.\n");
  printf("MCremote for MIPS32: Copyright (C) 2010 Serge Vakulenko.\n");
  printf("\n");
  printf(
      "Redistribution and use in source and binary forms, with or without\n");
  printf("modification, are permitted provided that the following conditions "
         "are met:\n");
  printf("\n");
  printf("  1. Redistributions of source code must retain the above copyright "
         "notice,\n");
  printf("     this list of conditions and the following disclaimer.\n");
  printf("  2. Redistributions in binary form must reproduce the above "
         "copyright\n");
  printf("     notice, this list of conditions and the following disclaimer in "
         "the\n");
  printf("     documentation and/or other materials provided with the "
         "distribution.\n");
  printf("  3. The name of the author may not be used to endorse or promote "
         "products\n");
  printf("     derived from this software without specific prior written "
         "permission.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<rp_show_copying>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0x103e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
call   1030 <printf@plt>
lea    0x1058(%rip),%rdi
call   1030 <printf@plt>
lea    0x1094(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1111(%rip),%rdi
call   1030 <printf@plt>
lea    0x1151(%rip),%rdi
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rp_show_copying>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf49(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfd9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1019(%rip),%rdi
call   1040 <puts@plt>
lea    0x1048(%rip),%rdi
call   1040 <puts@plt>
lea    0x1083(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10fe(%rip),%rdi
call   1040 <puts@plt>
lea    0x113d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"Original rproxy: Copyright (C) 1999-2001 Quality Quorum, Inc.\0A\00"
@.str.1 = [76 x i8] c"GDBproxy adaptation: Copyright (C) 2002 Chris Liechti and Steve Underwood.\0A\00"
@.str.2 = [58 x i8] c"MCremote for MIPS32: Copyright (C) 2010 Serge Vakulenko.\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [68 x i8] c"Redistribution and use in source and binary forms, with or without\0A\00"
@.str.5 = [77 x i8] c"modification, are permitted provided that the following conditions are met:\0A\00"
@.str.6 = [77 x i8] c" 1. Redistributions of source code must retain the above copyright notice,\0A\00"
@.str.7 = [60 x i8] c" this list of conditions and the following disclaimer.\0A\00"
@.str.8 = [72 x i8] c" 2. Redistributions in binary form must reproduce the above copyright\0A\00"
@.str.9 = [74 x i8] c" notice, this list of conditions and the following disclaimer in the\0A\00"
@.str.10 = [75 x i8] c" documentation and/or other materials provided with the distribution.\0A\00"
@.str.11 = [76 x i8] c" 3. The name of the author may not be used to endorse or promote products\0A\00"
@.str.12 = [76 x i8] c" derived from this software without specific prior written permission.\0A\00"
define void @rp_show_copying() {
%1 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [62 x i8] c"Original rproxy: Copyright (C) 1999-2001 Quality Quorum, Inc.\00"
@str.13 = [75 x i8] c"GDBproxy adaptation: Copyright (C) 2002 Chris Liechti and Steve Underwood.\00"
@str.14 = [57 x i8] c"MCremote for MIPS32: Copyright (C) 2010 Serge Vakulenko.\00"
@str.15 = [67 x i8] c"Redistribution and use in source and binary forms, with or without\00"
@str.16 = [76 x i8] c"modification, are permitted provided that the following conditions are met:\00"
@str.17 = [76 x i8] c" 1. Redistributions of source code must retain the above copyright notice,\00"
@str.18 = [59 x i8] c" this list of conditions and the following disclaimer.\00"
@str.19 = [71 x i8] c" 2. Redistributions in binary form must reproduce the above copyright\00"
@str.20 = [73 x i8] c" notice, this list of conditions and the following disclaimer in the\00"
@str.21 = [74 x i8] c" documentation and/or other materials provided with the distribution.\00"
@str.22 = [75 x i8] c" 3. The name of the author may not be used to endorse or promote products\00"
@str.23 = [75 x i8] c" derived from this software without specific prior written permission.\00"
define void @rp_show_copying() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
ret void
}