#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 */
char *basename(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ show_version(char *);
void show_usage(char *prog) {
  prog = basename(prog);
  if (prog == NULL) {
    prog = "vpncwatch";
  }
  show_version(prog);
  printf("Usage: %s [options] [--] <vpnc executable> <vpnc args>\n\n", prog);
  printf("Options:\n");
  printf("    -c HOST    Hostname or IP address on the VPN to check ");
  printf("periodically for\n");
  printf("               connectivity.  If the test fails, ");
  printf("vpnc will be restarted.\n");
  printf("    -p PORT    TCP port number to test on HOST.\n");
  printf("    -i SECS    Interval in seconds between VPN host check ");
  printf("(default: 3600).\n");
  printf("    -?         Show this screen.\n");
  printf("    -V         Show version.\n\n");
  printf("Examples:\n");
  printf("    %s vpnc /etc/vpnc/vpnc.conf\n", prog);
  printf("    %s -- /usr/etc/vpnc --gateway 1.2.3.4 --id ID\n", prog);
  printf(
      "    %s -c intranet.corp.redhat.com -p 80 vpnc /etc/vpnc/vpnc.conf\n\n",
      prog);
  printf(
      "See the man page for vpnc(8) for more information.  Please note that\n");
  printf(
      "the vpnc executable and vpnc argument list need be at the end of the\n");
  printf("%s command line.\n", prog);
  printf(
      "Use -- before the vpnc executable to separate its arguments from the\n");
  printf("arguments to %s.\n", prog);
  return;
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <basename@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    115f <show_usage+0x2f>
lea    0xea5(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <show_version@plt>
mov    -0x8(%rbp),%rsi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x102e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x1062(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1066(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x109a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rbx
call   1060 <basename@plt>
test   %rax,%rax
lea    0xeb0(%rip),%rbx
cmovne %rax,%rbx
mov    %rbx,%rdi
call   1030 <show_version@plt>
lea    0xea7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1033(%rip),%rdi
call   1040 <puts@plt>
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1022(%rip),%rdi
call   1040 <puts@plt>
lea    0xee4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1019(%rip),%rdi
call   1040 <puts@plt>
lea    0x1025(%rip),%rdi
call   1040 <puts@plt>
lea    0xef0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x103b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1040(%rip),%rdi
call   1040 <puts@plt>
lea    0x1055(%rip),%rdi
call   1040 <puts@plt>
lea    0x1067(%rip),%rdi
call   1040 <puts@plt>
lea    0xeed(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xefd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1032(%rip),%rdi
call   1040 <puts@plt>
lea    0x106b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1093(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"vpncwatch\00"
@.str.1 = [57 x i8] c"Usage: %s [options] [--] <vpnc executable> <vpnc args>\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [59 x i8] c" -c HOST Hostname or IP address on the VPN to check \00"
@.str.4 = [18 x i8] c"periodically for\0A\00"
@.str.5 = [50 x i8] c" connectivity. If the test fails, \00"
@.str.6 = [25 x i8] c"vpnc will be restarted.\0A\00"
@.str.7 = [49 x i8] c" -p PORT TCP port number to test on HOST.\0A\00"
@.str.8 = [59 x i8] c" -i SECS Interval in seconds between VPN host check \00"
@.str.9 = [18 x i8] c"(default: 3600).\0A\00"
@.str.10 = [34 x i8] c" -? Show this screen.\0A\00"
@.str.11 = [31 x i8] c" -V Show version.\0A\0A\00"
@.str.12 = [11 x i8] c"Examples:\0A\00"
@.str.13 = [33 x i8] c" %s vpnc /etc/vpnc/vpnc.conf\0A\00"
@.str.14 = [51 x i8] c" %s -- /usr/etc/vpnc --gateway 1.2.3.4 --id ID\0A\00"
@.str.15 = [68 x i8] c" %s -c intranet.corp.redhat.com -p 80 vpnc /etc/vpnc/vpnc.conf\0A\0A\00"
@.str.16 = [70 x i8] c"See the man page for vpnc(8) for more information. Please note that\0A\00"
@.str.17 = [70 x i8] c"the vpnc executable and vpnc argument list need be at the end of the\0A\00"
@.str.18 = [18 x i8] c"%s command line.\0A\00"
@.str.19 = [70 x i8] c"Use -- before the vpnc executable to separate its arguments from the\0A\00"
@.str.20 = [18 x i8] c"arguments to %s.\0A\00"
define void @show_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @basename(i8* %3)
store i8* %4, i8** %2
%5 = load i8*, i8** %2
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
8: ; preds = %7, %1
%9 = load i8*, i8** %2
%10 = call i32 @show_version(i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%24 = load i8*, i8** %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0), i8* %24)
%26 = load i8*, i8** %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0), i8* %26)
%28 = load i8*, i8** %2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.15, i64 0, i64 0), i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.17, i64 0, i64 0))
%32 = load i8*, i8** %2
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.19, i64 0, i64 0))
%35 = load i8*, i8** %2
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %35)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"vpncwatch\00"
@.str.1 = [57 x i8] c"Usage: %s [options] [--] <vpnc executable> <vpnc args>\0A\0A\00"
@.str.3 = [59 x i8] c" -c HOST Hostname or IP address on the VPN to check \00"
@.str.5 = [50 x i8] c" connectivity. If the test fails, \00"
@.str.8 = [59 x i8] c" -i SECS Interval in seconds between VPN host check \00"
@.str.13 = [33 x i8] c" %s vpnc /etc/vpnc/vpnc.conf\0A\00"
@.str.14 = [51 x i8] c" %s -- /usr/etc/vpnc --gateway 1.2.3.4 --id ID\0A\00"
@.str.15 = [68 x i8] c" %s -c intranet.corp.redhat.com -p 80 vpnc /etc/vpnc/vpnc.conf\0A\0A\00"
@.str.18 = [18 x i8] c"%s command line.\0A\00"
@.str.20 = [18 x i8] c"arguments to %s.\0A\00"
@str = [9 x i8] c"Options:\00"
@str.21 = [17 x i8] c"periodically for\00"
@str.22 = [24 x i8] c"vpnc will be restarted.\00"
@str.23 = [48 x i8] c" -p PORT TCP port number to test on HOST.\00"
@str.24 = [17 x i8] c"(default: 3600).\00"
@str.25 = [33 x i8] c" -? Show this screen.\00"
@str.26 = [30 x i8] c" -V Show version.\0A\00"
@str.27 = [10 x i8] c"Examples:\00"
@str.28 = [69 x i8] c"See the man page for vpnc(8) for more information. Please note that\00"
@str.29 = [69 x i8] c"the vpnc executable and vpnc argument list need be at the end of the\00"
@str.30 = [69 x i8] c"Use -- before the vpnc executable to separate its arguments from the\00"
define void @show_usage(i8* %0) {
%2 = tail call i8* @basename(i8* %0)
%3 = icmp eq i8* %2, null
%4 = select i1 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %2
%5 = tail call i32 @show_version(i8* %4)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.25, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.26, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.27, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0), i8* %4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0), i8* %4)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.15, i64 0, i64 0), i8* %4)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.28, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.29, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %4)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.30, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8* %4)
ret void
}