#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void icmp_help(void) {
  printf("ICMP help:\n"
         " ICMP concerned packet options:\n"
         "  --icmp-ipver     set ip version               ( default 4 )\n"
         "  --icmp-iphlen    set ip header lenght         ( default IPHDR_SIZE "
         ">> 2)\n"
         "  --icmp-iplen     set ip total lengtht         ( default real "
         "lenght )\n"
         "  --icmp-ipid      set ip id                    ( default random )\n"
         "  --icmp-ipproto   set ip protocol              ( default "
         "IPPROTO_TCP )\n"
         "  --icmp-ipsrc     set ip source                ( default 0.0.0.0 )\n"
         "  --icmp-ipdst     set ip destination           ( default 0.0.0.0 )\n"
         "  --icmp-srcport   set tcp/udp source port      ( default random )\n"
         "  --icmp-dstport   set tcp/udp destination port ( default random )\n"
         "  --icmp-cksum     set icmp checksum            ( default the right "
         "cksum)\n");
  exit(0);
}


x86 assembly (clang, -O0):
<icmp_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<icmp_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [737 x i8] c"ICMP help:\0A ICMP concerned packet options:\0A --icmp-ipver set ip version ( default 4 )\0A --icmp-iphlen set ip header lenght ( default IPHDR_SIZE >> 2)\0A --icmp-iplen set ip total lengtht ( default real lenght )\0A --icmp-ipid set ip id ( default random )\0A --icmp-ipproto set ip protocol ( default IPPROTO_TCP )\0A --icmp-ipsrc set ip source ( default 0.0.0.0 )\0A --icmp-ipdst set ip destination ( default 0.0.0.0 )\0A --icmp-srcport set tcp/udp source port ( default random )\0A --icmp-dstport set tcp/udp destination port ( default random )\0A --icmp-cksum set icmp checksum ( default the right cksum)\0A\00"
define void @icmp_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([737 x i8], [737 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [736 x i8] c"ICMP help:\0A ICMP concerned packet options:\0A --icmp-ipver set ip version ( default 4 )\0A --icmp-iphlen set ip header lenght ( default IPHDR_SIZE >> 2)\0A --icmp-iplen set ip total lengtht ( default real lenght )\0A --icmp-ipid set ip id ( default random )\0A --icmp-ipproto set ip protocol ( default IPPROTO_TCP )\0A --icmp-ipsrc set ip source ( default 0.0.0.0 )\0A --icmp-ipdst set ip destination ( default 0.0.0.0 )\0A --icmp-srcport set tcp/udp source port ( default random )\0A --icmp-dstport set tcp/udp destination port ( default random )\0A --icmp-cksum set icmp checksum ( default the right cksum)\00"
define void @icmp_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([736 x i8], [736 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}