#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("\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");
  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    0x1034(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0x1010(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
call   1030 <printf@plt>
lea    0x102a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1123(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa4(%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>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf3f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf76(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfac(%rip),%rdi
call   1040 <puts@plt>
lea    0xfec(%rip),%rdi
call   1040 <puts@plt>
lea    0x101b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
lea    0x1093(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1110(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@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 = [2 x i8] c"\0A\00"
@.str.3 = [68 x i8] c"Redistribution and use in source and binary forms, with or without\0A\00"
@.str.4 = [77 x i8] c"modification, are permitted provided that the following conditions are met:\0A\00"
@.str.5 = [77 x i8] c" 1. Redistributions of source code must retain the above copyright notice,\0A\00"
@.str.6 = [60 x i8] c" this list of conditions and the following disclaimer.\0A\00"
@.str.7 = [72 x i8] c" 2. Redistributions in binary form must reproduce the above copyright\0A\00"
@.str.8 = [74 x i8] c" notice, this list of conditions and the following disclaimer in the\0A\00"
@.str.9 = [75 x i8] c" documentation and/or other materials provided with the distribution.\0A\00"
@.str.10 = [76 x i8] c" 3. The name of the author may not be used to endorse or promote products\0A\00"
@.str.11 = [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 ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 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 ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, 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.12 = [75 x i8] c"GDBproxy adaptation: Copyright (C) 2002 Chris Liechti and Steve Underwood.\00"
@str.13 = [67 x i8] c"Redistribution and use in source and binary forms, with or without\00"
@str.14 = [76 x i8] c"modification, are permitted provided that the following conditions are met:\00"
@str.15 = [76 x i8] c" 1. Redistributions of source code must retain the above copyright notice,\00"
@str.16 = [59 x i8] c" this list of conditions and the following disclaimer.\00"
@str.17 = [71 x i8] c" 2. Redistributions in binary form must reproduce the above copyright\00"
@str.18 = [73 x i8] c" notice, this list of conditions and the following disclaimer in the\00"
@str.19 = [74 x i8] c" documentation and/or other materials provided with the distribution.\00"
@str.20 = [75 x i8] c" 3. The name of the author may not be used to endorse or promote products\00"
@str.21 = [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.12, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @putchar(i32 10)
ret void
}