#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void print_help() {
  fprintf(
      stderr, "%s",
      "loop_udp -i <infile> [-s] [-f <filter>] [-n]\n"
      "\n"
      "Print specific information on all udp packets in input capture file.\n"
      "It shows the following information\n"
      "  seq(#) 	  - sequence number\n"
      "  time(sec.usec)  - time of packet\n"
      "  ipv4_src        - source ip\n"
      "  udp_port 	  - udp port\n"
      "  ipv4_dst 	  - destination ip\n"
      "  udp_dst 	  - destination port\n"
      "  data_len 	  - length of UDP payload\n"
      "  data		  - hexadecimal dump of UDP payload.\n"
      "\n"
      "By default, IP fragments are reassembled into packets, this requires "
      "that fragments have been\n"
      "captured and are present in the capture file.\n"
      "\n"
      "For whatever reason I could not bring tshark to show packet data, so i "
      "did my own, by using libpcap;\n"
      "\n"
      " -i <infile>	- input capture file\n"
      " -s		- don't show header line\n"
      " -f <filter>	- filter expression (for syntax see man "
      "pcap-filter(7))\n"
      " -n		- don't reassemble IP fragments, (default is to "
      "reassemble them)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xec8(%rip),%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
lea    0xecb(%rip),%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [864 x i8] c"loop_udp -i <infile> [-s] [-f <filter>] [-n]\0A\0APrint specific information on all udp packets in input capture file.\0AIt shows the following information\0A seq(#) \09 - sequence number\0A time(sec.usec) - time of packet\0A ipv4_src - source ip\0A udp_port \09 - udp port\0A ipv4_dst \09 - destination ip\0A udp_dst \09 - destination port\0A data_len \09 - length of UDP payload\0A data\09\09 - hexadecimal dump of UDP payload.\0A\0ABy default, IP fragments are reassembled into packets, this requires that fragments have been\0Acaptured and are present in the capture file.\0A\0AFor whatever reason I could not bring tshark to show packet data, so i did my own, by using libpcap;\0A\0A -i <infile>\09- input capture file\0A -s\09\09- don't show header line\0A -f <filter>\09- filter expression (for syntax see man pcap-filter(7))\0A -n\09\09- don't reassemble IP fragments, (default is to reassemble them)\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([864 x i8], [864 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [864 x i8] c"loop_udp -i <infile> [-s] [-f <filter>] [-n]\0A\0APrint specific information on all udp packets in input capture file.\0AIt shows the following information\0A seq(#) \09 - sequence number\0A time(sec.usec) - time of packet\0A ipv4_src - source ip\0A udp_port \09 - udp port\0A ipv4_dst \09 - destination ip\0A udp_dst \09 - destination port\0A data_len \09 - length of UDP payload\0A data\09\09 - hexadecimal dump of UDP payload.\0A\0ABy default, IP fragments are reassembled into packets, this requires that fragments have been\0Acaptured and are present in the capture file.\0A\0AFor whatever reason I could not bring tshark to show packet data, so i did my own, by using libpcap;\0A\0A -i <infile>\09- input capture file\0A -s\09\09- don't show header line\0A -f <filter>\09- filter expression (for syntax see man pcap-filter(7))\0A -n\09\09- don't reassemble IP fragments, (default is to reassemble them)\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([864 x i8], [864 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}