#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*/ puts(char *);
void usage() {
  puts("QtWine terminal helper version "
       "0.1");
  puts("Copyright (C) 2007 by George Kiagiadakis "
       "<gkiagia@users.sourceforge.net>\n");
  puts("Usage: qtwine-terminal-helper [socket address]\n");
  puts("This is a small C program that does two things: it connects to a unix");
  puts("domain socket and prints to stdout everything that it reads from the "
       "socket");
  puts("and simultaneously it watches stdin for input and when it gets some");
  puts("input from it, it sends the data across the socket.\n");
  puts("The socket must be binded to the filesystem using bind(2) by the "
       "server");
  puts("and this program's first argument (argv[1]) must be the filename of");
  puts("the socket on the filesystem.");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1039(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ad(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1013(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b0(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"QtWine terminal helper version 0.1\00"
@.str.1 = [74 x i8] c"Copyright (C) 2007 by George Kiagiadakis <gkiagia@users.sourceforge.net>\0A\00"
@.str.2 = [48 x i8] c"Usage: qtwine-terminal-helper [socket address]\0A\00"
@.str.3 = [70 x i8] c"This is a small C program that does two things: it connects to a unix\00"
@.str.4 = [76 x i8] c"domain socket and prints to stdout everything that it reads from the socket\00"
@.str.5 = [68 x i8] c"and simultaneously it watches stdin for input and when it gets some\00"
@.str.6 = [53 x i8] c"input from it, it sends the data across the socket.\0A\00"
@.str.7 = [72 x i8] c"The socket must be binded to the filesystem using bind(2) by the server\00"
@.str.8 = [68 x i8] c"and this program's first argument (argv[1]) must be the filename of\00"
@.str.9 = [30 x i8] c"the socket on the filesystem.\00"
define void @usage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"QtWine terminal helper version 0.1\00"
@.str.1 = [74 x i8] c"Copyright (C) 2007 by George Kiagiadakis <gkiagia@users.sourceforge.net>\0A\00"
@.str.2 = [48 x i8] c"Usage: qtwine-terminal-helper [socket address]\0A\00"
@.str.3 = [70 x i8] c"This is a small C program that does two things: it connects to a unix\00"
@.str.4 = [76 x i8] c"domain socket and prints to stdout everything that it reads from the socket\00"
@.str.5 = [68 x i8] c"and simultaneously it watches stdin for input and when it gets some\00"
@.str.6 = [53 x i8] c"input from it, it sends the data across the socket.\0A\00"
@.str.7 = [72 x i8] c"The socket must be binded to the filesystem using bind(2) by the server\00"
@.str.8 = [68 x i8] c"and this program's first argument (argv[1]) must be the filename of\00"
@.str.9 = [30 x i8] c"the socket on the filesystem.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
ret void
}