#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 usage_en_arithmetic(void) {
  printf("Subnet arithmetic\n");
  printf("-----------------\n");
  printf("relation [IP1] [IP2]       : prints a relationship between IP1 and "
         "IP2\n");
  printf("split [S], [l1,l2,..]      : split subnet S l1 times, the result l2 "
         "times, and so on..\n");
  printf("split2 [S], [m1,m2,..]     : split subnet S with mask m1, then m2, "
         "and so on...\n");
  printf("removesub [TYPE] [O1] [S1] : remove subnet S from Object O1; if "
         "TYPE=file O1=file, if TYPE=subnet 01=subnet\n");
  printf(
      "removefile [FILE1] [FILE2] : remove all subnets in FILE2 from FILE1\n");
  printf("ipinfo [IP|all|IPvX]       : prints information about IP, or all "
         "known subnets (all, IPv4 or IPv6)\n");
}


x86 assembly (clang, -O0):
<usage_en_arithmetic>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage_en_arithmetic>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1030 <puts@plt>
lea    0x101e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1056(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Subnet arithmetic\0A\00"
@.str.1 = [19 x i8] c"-----------------\0A\00"
@.str.2 = [72 x i8] c"relation [IP1] [IP2] : prints a relationship between IP1 and IP2\0A\00"
@.str.3 = [88 x i8] c"split [S], [l1,l2,..] : split subnet S l1 times, the result l2 times, and so on..\0A\00"
@.str.4 = [81 x i8] c"split2 [S], [m1,m2,..] : split subnet S with mask m1, then m2, and so on...\0A\00"
@.str.5 = [109 x i8] c"removesub [TYPE] [O1] [S1] : remove subnet S from Object O1; if TYPE=file O1=file, if TYPE=subnet 01=subnet\0A\00"
@.str.6 = [69 x i8] c"removefile [FILE1] [FILE2] : remove all subnets in FILE2 from FILE1\0A\00"
@.str.7 = [100 x i8] c"ipinfo [IP|all|IPvX] : prints information about IP, or all known subnets (all, IPv4 or IPv6)\0A\00"
define void @usage_en_arithmetic() {
%1 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [18 x i8] c"Subnet arithmetic\00"
@str.8 = [18 x i8] c"-----------------\00"
@str.9 = [71 x i8] c"relation [IP1] [IP2] : prints a relationship between IP1 and IP2\00"
@str.10 = [87 x i8] c"split [S], [l1,l2,..] : split subnet S l1 times, the result l2 times, and so on..\00"
@str.11 = [80 x i8] c"split2 [S], [m1,m2,..] : split subnet S with mask m1, then m2, and so on...\00"
@str.12 = [108 x i8] c"removesub [TYPE] [O1] [S1] : remove subnet S from Object O1; if TYPE=file O1=file, if TYPE=subnet 01=subnet\00"
@str.13 = [68 x i8] c"removefile [FILE1] [FILE2] : remove all subnets in FILE2 from FILE1\00"
@str.14 = [99 x i8] c"ipinfo [IP|all|IPvX] : prints information about IP, or all known subnets (all, IPv4 or IPv6)\00"
define void @usage_en_arithmetic() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.14, i64 0, i64 0))
ret void
}