#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*/ printf(char *, ...);
void usage(char *progname) {
  printf("  usage: %s options\n    where options:\n", progname);
  printf("       [-c:sec]             Dump cycle in sec (10)\n");
  printf("       [-f:file[-e:program]] Results into a file [and exec "
         "program](-)\n");
  printf("       [-n:db]              Execute just db cycle (0)\n");
  printf("       [-l:lineno]          Print lineno lines of hosts(25)\n");
  printf("       [-k]                 Sort result by packet count (size)\n");
  printf("       [-1]                 Ignore source IP (don't ignore)\n");
  printf("       [-2]                 Ignore destination IP (don't ignore)\n");
  printf("       [-h]                 Print just the header(use -a!)\n");
  printf("       [-a]                 Print packet info&data (-)\n");
  printf("       [-p]                 Print just summary info (-)\n");
  printf("            Otherwise print sum&ip pairs\n");
  printf(
      "       [-t:[tcp|udp|icmp|....|number]] Filter on IP protocoll (ALL)\n");
  printf("       [-g]                 Make GRE encapsulation trasparent (-)\n");
  printf("       [-v]                 Skip VLAN headers (-)\n");
  printf("       [-sa:IP[/Net]]       Filter on source address (-)/net\n");
  printf("       [-sp:Port]           Filter on source port (-)\n");
  printf("       [-da:IP[/Net]]       Filter on dest address/net (-)\n");
  printf("       [-dp:Port]           Filter on dest port(-)\n");
  printf("       [-xa:IP[/Net]]       Filter on src|dest address/net (-)\n");
  printf("       [-xp:Port]           Filter on src|dest port (-)\n");
  printf("       [-pa:pattern]        String match (0), last param!!!\n");
  printf("       [-i:int[,int]]       Capture on this interface (eth0)\n");
  printf("             Filtering rules:  t && (sa|da|xa) && (sp|dp|xp)");
  printf("\nVer. %d.%d  (c):2000-2006, P l¢czi-Horv th J nos\n", 2, 6);
  exit(5);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1088(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1106(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1160(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1190(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x120d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x123f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x126a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1299(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12f8(%rip),%rdi
mov    $0x2,%esi
mov    $0x6,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0x100f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1042(%rip),%rdi
call   1030 <puts@plt>
lea    0x1072(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a7(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1101(%rip),%rdi
call   1030 <puts@plt>
lea    0x112d(%rip),%rdi
call   1030 <puts@plt>
lea    0x114a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1182(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b8(%rip),%rdi
call   1030 <puts@plt>
lea    0x11de(%rip),%rdi
call   1030 <puts@plt>
lea    0x120f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1239(%rip),%rdi
call   1030 <puts@plt>
lea    0x1268(%rip),%rdi
call   1030 <puts@plt>
lea    0x128f(%rip),%rdi
call   1030 <puts@plt>
lea    0x12c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x12ee(%rip),%rdi
call   1030 <puts@plt>
lea    0x131e(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe06(%rip),%rdi
mov    $0x2,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x5,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [40 x i8] c" usage: %s options\0A where options:\0A\00"
@.str.1 = [52 x i8] c" [-c:sec] Dump cycle in sec (10)\0A\00"
@.str.2 = [72 x i8] c" [-f:file[-e:program]] Results into a file [and exec program](-)\0A\00"
@.str.3 = [55 x i8] c" [-n:db] Execute just db cycle (0)\0A\00"
@.str.4 = [61 x i8] c" [-l:lineno] Print lineno lines of hosts(25)\0A\00"
@.str.5 = [64 x i8] c" [-k] Sort result by packet count (size)\0A\00"
@.str.6 = [61 x i8] c" [-1] Ignore source IP (don't ignore)\0A\00"
@.str.7 = [66 x i8] c" [-2] Ignore destination IP (don't ignore)\0A\00"
@.str.8 = [60 x i8] c" [-h] Print just the header(use -a!)\0A\00"
@.str.9 = [56 x i8] c" [-a] Print packet info&data (-)\0A\00"
@.str.10 = [57 x i8] c" [-p] Print just summary info (-)\0A\00"
@.str.11 = [42 x i8] c" Otherwise print sum&ip pairs\0A\00"
@.str.12 = [69 x i8] c" [-t:[tcp|udp|icmp|....|number]] Filter on IP protocoll (ALL)\0A\00"
@.str.13 = [67 x i8] c" [-g] Make GRE encapsulation trasparent (-)\0A\00"
@.str.14 = [51 x i8] c" [-v] Skip VLAN headers (-)\0A\00"
@.str.15 = [62 x i8] c" [-sa:IP[/Net]] Filter on source address (-)/net\0A\00"
@.str.16 = [55 x i8] c" [-sp:Port] Filter on source port (-)\0A\00"
@.str.17 = [60 x i8] c" [-da:IP[/Net]] Filter on dest address/net (-)\0A\00"
@.str.18 = [52 x i8] c" [-dp:Port] Filter on dest port(-)\0A\00"
@.str.19 = [64 x i8] c" [-xa:IP[/Net]] Filter on src|dest address/net (-)\0A\00"
@.str.20 = [57 x i8] c" [-xp:Port] Filter on src|dest port (-)\0A\00"
@.str.21 = [61 x i8] c" [-pa:pattern] String match (0), last param!!!\0A\00"
@.str.22 = [62 x i8] c" [-i:int[,int]] Capture on this interface (eth0)\0A\00"
@.str.23 = [61 x i8] c" Filtering rules: t && (sa|da|xa) && (sp|dp|xp)\00"
@.str.24 = [55 x i8] c"\0AVer. %d.%d (c):2000-2006, P\C2\A0l\C2\A2czi-Horv\C2\A0th J\C2\A0nos\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.23, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0), i32 2, i32 6)
%29 = call i32 @exit(i32 5)
unreachable
}

LLVM IR (-O2):
@.str = [40 x i8] c" usage: %s options\0A where options:\0A\00"
@.str.23 = [61 x i8] c" Filtering rules: t && (sa|da|xa) && (sp|dp|xp)\00"
@.str.24 = [55 x i8] c"\0AVer. %d.%d (c):2000-2006, P\C2\A0l\C2\A2czi-Horv\C2\A0th J\C2\A0nos\0A\00"
@str = [51 x i8] c" [-c:sec] Dump cycle in sec (10)\00"
@str.25 = [71 x i8] c" [-f:file[-e:program]] Results into a file [and exec program](-)\00"
@str.26 = [54 x i8] c" [-n:db] Execute just db cycle (0)\00"
@str.27 = [60 x i8] c" [-l:lineno] Print lineno lines of hosts(25)\00"
@str.28 = [63 x i8] c" [-k] Sort result by packet count (size)\00"
@str.29 = [60 x i8] c" [-1] Ignore source IP (don't ignore)\00"
@str.30 = [65 x i8] c" [-2] Ignore destination IP (don't ignore)\00"
@str.31 = [59 x i8] c" [-h] Print just the header(use -a!)\00"
@str.32 = [55 x i8] c" [-a] Print packet info&data (-)\00"
@str.33 = [56 x i8] c" [-p] Print just summary info (-)\00"
@str.34 = [41 x i8] c" Otherwise print sum&ip pairs\00"
@str.35 = [68 x i8] c" [-t:[tcp|udp|icmp|....|number]] Filter on IP protocoll (ALL)\00"
@str.36 = [66 x i8] c" [-g] Make GRE encapsulation trasparent (-)\00"
@str.37 = [50 x i8] c" [-v] Skip VLAN headers (-)\00"
@str.38 = [61 x i8] c" [-sa:IP[/Net]] Filter on source address (-)/net\00"
@str.39 = [54 x i8] c" [-sp:Port] Filter on source port (-)\00"
@str.40 = [59 x i8] c" [-da:IP[/Net]] Filter on dest address/net (-)\00"
@str.41 = [51 x i8] c" [-dp:Port] Filter on dest port(-)\00"
@str.42 = [63 x i8] c" [-xa:IP[/Net]] Filter on src|dest address/net (-)\00"
@str.43 = [56 x i8] c" [-xp:Port] Filter on src|dest port (-)\00"
@str.44 = [60 x i8] c" [-pa:pattern] String match (0), last param!!!\00"
@str.45 = [61 x i8] c" [-i:int[,int]] Capture on this interface (eth0)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.25, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.26, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.27, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.28, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.29, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.30, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.31, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.32, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.33, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.34, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.35, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.36, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.37, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.38, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.39, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.40, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.41, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.42, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.43, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.44, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.45, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.23, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0), i32 2, i32 6)
%27 = tail call i32 @exit(i32 5)
unreachable
}