#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 _showUsage(char *programName) {
  printf("%s: CCNx packet dissector.\n", programName);
  printf("\n");
  printf("Usage: %s [-h] [-c <device>] [-f <pcap filter>] [-i <file name>] [-d "
         "<alg>] [-o (json | csv)]\n",
         programName);
  printf("\n");
  printf("  -c <device>:                the device from which to capture live "
         "packets \n");
  printf("  -f <traffic filter string>: filter traffic for the live capture "
         "with this filter string (see pcap_filter() for details).\n");
  printf("  -i <file name>:             name of the file from which to read "
         "packets.\n");
  printf("  -d <alg>:                   flag to output the message digest.\n");
  printf("  -o <format>:                output the packet data in <format>, "
         "where <format> is JSON or CSV. \n");
  printf("  -h:                         display this usage message\n");
}


x86 assembly (clang, -O0):
<_showUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10df(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_showUsage>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec6(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfba(%rip),%rdi
call   1040 <puts@plt>
lea    0xff9(%rip),%rdi
call   1040 <puts@plt>
lea    0x102e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1084(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"%s: CCNx packet dissector.\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [95 x i8] c"Usage: %s [-h] [-c <device>] [-f <pcap filter>] [-i <file name>] [-d <alg>] [-o (json | csv)]\0A\00"
@.str.3 = [78 x i8] c" -c <device>: the device from which to capture live packets \0A\00"
@.str.4 = [124 x i8] c" -f <traffic filter string>: filter traffic for the live capture with this filter string (see pcap_filter() for details).\0A\00"
@.str.5 = [76 x i8] c" -i <file name>: name of the file from which to read packets.\0A\00"
@.str.6 = [66 x i8] c" -d <alg>: flag to output the message digest.\0A\00"
@.str.7 = [99 x i8] c" -o <format>: output the packet data in <format>, where <format> is JSON or CSV. \0A\00"
@.str.8 = [58 x i8] c" -h: display this usage message\0A\00"
define void @_showUsage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"%s: CCNx packet dissector.\0A\00"
@.str.2 = [95 x i8] c"Usage: %s [-h] [-c <device>] [-f <pcap filter>] [-i <file name>] [-d <alg>] [-o (json | csv)]\0A\00"
@str = [77 x i8] c" -c <device>: the device from which to capture live packets \00"
@str.9 = [123 x i8] c" -f <traffic filter string>: filter traffic for the live capture with this filter string (see pcap_filter() for details).\00"
@str.10 = [75 x i8] c" -i <file name>: name of the file from which to read packets.\00"
@str.11 = [65 x i8] c" -d <alg>: flag to output the message digest.\00"
@str.12 = [98 x i8] c" -o <format>: output the packet data in <format>, where <format> is JSON or CSV. \00"
@str.13 = [57 x i8] c" -h: display this usage message\00"
define void @_showUsage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([123 x i8], [123 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.10, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.11, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.12, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.13, i64 0, i64 0))
ret void
}