#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 *, char const *, char *, char *, int, char *,
                          char *, char *);
int dcc_show_version(const char *prog) {
  printf("%s %s %s\n"
         "  (protocols 1, 2 and 3) (default port %d)\n"
         "  built %s %s\n"
         "Copyright (C) 2002, 2003, 2004 by Martin Pool.\n"
         "Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes "
         "Oberhumer.\n"
         "Portions Copyright (C) 2007-2008 Google.\n"
         "\n"
         "distcc comes with ABSOLUTELY NO WARRANTY.  distcc is free software, "
         "and\n"
         "you may use, modify and redistribute it under the terms of the GNU \n"
         "General Public License version 2 or later.\n"
         "\n"
         "Please report bugs to %s\n"
         "\n",
         prog, "2.18.3-17gg-pump6", "x86_64-unknown-linux-gnu", 3632,
         "Mar 17 2022", "08:43:15", "distcc-pump@google.com");
  return 0;
}


x86 assembly (clang, -O0):
<dcc_show_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
lea    0x1089(%rip),%rdx
lea    0x1094(%rip),%rcx
mov    $0xe30,%r8d
lea    0x10a0(%rip),%r9
lea    0x10a5(%rip),%r10
lea    0x10a7(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcc_show_version>:
push   %rax
mov    %rdi,%rsi
lea    0x10dc(%rip),%rax
lea    0x10cc(%rip),%r10
lea    0xed7(%rip),%rdi
lea    0x1087(%rip),%rdx
lea    0x1092(%rip),%rcx
lea    0x10a4(%rip),%r9
mov    $0xe30,%r8d
push   %rax
push   %r10
call   1030 <printf@plt>
add    $0x10,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [439 x i8] c"%s %s %s\0A (protocols 1, 2 and 3) (default port %d)\0A built %s %s\0ACopyright (C) 2002, 2003, 2004 by Martin Pool.\0AIncludes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.\0APortions Copyright (C) 2007-2008 Google.\0A\0Adistcc comes with ABSOLUTELY NO WARRANTY. distcc is free software, and\0Ayou may use, modify and redistribute it under the terms of the GNU \0AGeneral Public License version 2 or later.\0A\0APlease report bugs to %s\0A\0A\00"
@.str.1 = [18 x i8] c"2.18.3-17gg-pump6\00"
@.str.2 = [25 x i8] c"x86_64-unknown-linux-gnu\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [9 x i8] c"08:43:15\00"
@.str.5 = [23 x i8] c"distcc-pump@google.com\00"
define i32 @dcc_show_version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([439 x i8], [439 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 3632, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [439 x i8] c"%s %s %s\0A (protocols 1, 2 and 3) (default port %d)\0A built %s %s\0ACopyright (C) 2002, 2003, 2004 by Martin Pool.\0AIncludes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.\0APortions Copyright (C) 2007-2008 Google.\0A\0Adistcc comes with ABSOLUTELY NO WARRANTY. distcc is free software, and\0Ayou may use, modify and redistribute it under the terms of the GNU \0AGeneral Public License version 2 or later.\0A\0APlease report bugs to %s\0A\0A\00"
@.str.1 = [18 x i8] c"2.18.3-17gg-pump6\00"
@.str.2 = [25 x i8] c"x86_64-unknown-linux-gnu\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [9 x i8] c"08:43:15\00"
@.str.5 = [23 x i8] c"distcc-pump@google.com\00"
define i32 @dcc_show_version(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([439 x i8], [439 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 3632, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}