#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 *);
int /*<<< orphan*/ puts(char *);
void print_usage(void) {
  printf("Ident2 version %s, Copyright (C) 1999-2004 Michael Bacarella\n",
         "1.05-FINAL");
  puts("Example command lines:");
  puts("		ident2 -r		sends random replies, always");
  puts(
      "		ident2 -i -y .reply	allows user replies, which are read\n"
      "					from the file ~/.reply");
  puts(
      "		ident2 -m 5 -o 10	ultra secure mode. no more than\n"
      "					5 connections at once, each "
      "connection\n"
      "					is killed after 10 seconds "
      "regardless.");
  puts("		ident2 -s		stop ident2 from trying to "
       "change it's\n"
       "					userid if it discovers that "
       "it's running\n"
       "					as a root process.");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xf0c(%rip),%rsi
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xffe(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xf0f(%rip),%rsi
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0x1001(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [62 x i8] c"Ident2 version %s, Copyright (C) 1999-2004 Michael Bacarella\0A\00"
@.str.1 = [11 x i8] c"1.05-FINAL\00"
@.str.2 = [23 x i8] c"Example command lines:\00"
@.str.3 = [42 x i8] c"\09\09ident2 -r\09\09sends random replies, always\00"
@.str.4 = [86 x i8] c"\09\09ident2 -i -y .reply\09allows user replies, which are read\0A\09\09\09\09\09from the file ~/.reply\00"
@.str.5 = [140 x i8] c"\09\09ident2 -m 5 -o 10\09ultra secure mode. no more than\0A\09\09\09\09\095 connections at once, each connection\0A\09\09\09\09\09is killed after 10 seconds regardless.\00"
@.str.6 = [122 x i8] c"\09\09ident2 -s\09\09stop ident2 from trying to change it's\0A\09\09\09\09\09userid if it discovers that it's running\0A\09\09\09\09\09as a root process.\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [62 x i8] c"Ident2 version %s, Copyright (C) 1999-2004 Michael Bacarella\0A\00"
@.str.1 = [11 x i8] c"1.05-FINAL\00"
@.str.2 = [23 x i8] c"Example command lines:\00"
@.str.3 = [42 x i8] c"\09\09ident2 -r\09\09sends random replies, always\00"
@.str.4 = [86 x i8] c"\09\09ident2 -i -y .reply\09allows user replies, which are read\0A\09\09\09\09\09from the file ~/.reply\00"
@.str.5 = [140 x i8] c"\09\09ident2 -m 5 -o 10\09ultra secure mode. no more than\0A\09\09\09\09\095 connections at once, each connection\0A\09\09\09\09\09is killed after 10 seconds regardless.\00"
@.str.6 = [122 x i8] c"\09\09ident2 -s\09\09stop ident2 from trying to change it's\0A\09\09\09\09\09userid if it discovers that it's running\0A\09\09\09\09\09as a root process.\00"
define void @print_usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([140 x i8], [140 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @.str.6, i64 0, i64 0))
ret void
}