#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 *, char *);
int /*<<< orphan*/ puts(char *);
void io_print_syntax() {
  puts(
      "Soobnets a network and calculates useful network information\n\nUsage:");
  puts("Soobneter -a ADDRESS [-m MASK | -b BITS_BORROWED | -sc SOOBNET_COUNT"
       "| -hc HOST_COUNT] [-s] [-vs SOOBNET_NUM | -vr LOWER_BOUND UPPER_BOUND] "
       "[-q] [-? | --help]\n");
  printf("%-29sSets host address in dotted decimal or slash form.\n",
         "-a  ADDRESS");
  printf("%-29sSets the soobnet mask.\n", "-m  MASK");
  printf("%-29sSets the number of bits borrowed.\n", "-b  BITS_BORROWED");
  printf("%-29sSets the number of usable soobnets required.\n",
         "-sc SOOBNET_COUNT");
  printf("%-29sSets the number of usable hosts/soobnet required.\n",
         "-hc HOST_COUNT");
  printf("%-29sDisplays a network summary.\n", "-s");
  printf("%-29sSpecifies the number of the soobnet to display.\n",
         "-vs SOOBNET_NUM");
  printf("%-29sSpecifies the soobnet range to display, inclusive.\n",
         "-vr LOWER_BOUND UPPER_BOUND");
  printf("%-29sDisables interactive soobnet viewing.\n", "-q");
  printf("%-29sDisplays this help screen.\n", "-? --help");
}


x86 assembly (clang, -O0):
<io_print_syntax>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa1(%rip),%rdi
lea    0xfd3(%rip),%rsi
call   1040 <printf@plt>
lea    0xfd3(%rip),%rdi
lea    0xfe9(%rip),%rsi
call   1040 <printf@plt>
lea    0xfe6(%rip),%rdi
lea    0x1007(%rip),%rsi
call   1040 <printf@plt>
lea    0x100d(%rip),%rdi
lea    0x1039(%rip),%rsi
call   1040 <printf@plt>
lea    0x103f(%rip),%rdi
lea    0x1070(%rip),%rsi
call   1040 <printf@plt>
lea    0x1073(%rip),%rdi
lea    0x108e(%rip),%rsi
call   1040 <printf@plt>
lea    0x1085(%rip),%rdi
lea    0x10b4(%rip),%rsi
call   1040 <printf@plt>
lea    0x10b8(%rip),%rdi
lea    0x10ea(%rip),%rsi
call   1040 <printf@plt>
lea    0x10fa(%rip),%rdi
lea    0x111f(%rip),%rsi
call   1040 <printf@plt>
lea    0x1116(%rip),%rdi
lea    0x1130(%rip),%rsi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_print_syntax>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
lea    0xfd6(%rip),%rsi
call   1040 <printf@plt>
lea    0xfd6(%rip),%rdi
lea    0xfec(%rip),%rsi
call   1040 <printf@plt>
lea    0xfe9(%rip),%rdi
lea    0x100a(%rip),%rsi
call   1040 <printf@plt>
lea    0x1010(%rip),%rdi
lea    0x103c(%rip),%rsi
call   1040 <printf@plt>
lea    0x1042(%rip),%rdi
lea    0x1073(%rip),%rsi
call   1040 <printf@plt>
lea    0x1076(%rip),%rdi
lea    0x1091(%rip),%rsi
call   1040 <printf@plt>
lea    0x1088(%rip),%rdi
lea    0x10b7(%rip),%rsi
call   1040 <printf@plt>
lea    0x10bb(%rip),%rdi
lea    0x10ed(%rip),%rsi
call   1040 <printf@plt>
lea    0x10fd(%rip),%rdi
lea    0x1122(%rip),%rsi
call   1040 <printf@plt>
lea    0x1119(%rip),%rdi
lea    0x1133(%rip),%rsi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"Soobnets a network and calculates useful network information\0A\0AUsage:\00"
@.str.1 = [159 x i8] c"Soobneter -a ADDRESS [-m MASK | -b BITS_BORROWED | -sc SOOBNET_COUNT| -hc HOST_COUNT] [-s] [-vs SOOBNET_NUM | -vr LOWER_BOUND UPPER_BOUND] [-q] [-? | --help]\0A\00"
@.str.2 = [57 x i8] c"%-29sSets host address in dotted decimal or slash form.\0A\00"
@.str.3 = [12 x i8] c"-a ADDRESS\00"
@.str.4 = [29 x i8] c"%-29sSets the soobnet mask.\0A\00"
@.str.5 = [9 x i8] c"-m MASK\00"
@.str.6 = [40 x i8] c"%-29sSets the number of bits borrowed.\0A\00"
@.str.7 = [18 x i8] c"-b BITS_BORROWED\00"
@.str.8 = [51 x i8] c"%-29sSets the number of usable soobnets required.\0A\00"
@.str.9 = [18 x i8] c"-sc SOOBNET_COUNT\00"
@.str.10 = [56 x i8] c"%-29sSets the number of usable hosts/soobnet required.\0A\00"
@.str.11 = [15 x i8] c"-hc HOST_COUNT\00"
@.str.12 = [34 x i8] c"%-29sDisplays a network summary.\0A\00"
@.str.13 = [3 x i8] c"-s\00"
@.str.14 = [54 x i8] c"%-29sSpecifies the number of the soobnet to display.\0A\00"
@.str.15 = [16 x i8] c"-vs SOOBNET_NUM\00"
@.str.16 = [57 x i8] c"%-29sSpecifies the soobnet range to display, inclusive.\0A\00"
@.str.17 = [28 x i8] c"-vr LOWER_BOUND UPPER_BOUND\00"
@.str.18 = [44 x i8] c"%-29sDisables interactive soobnet viewing.\0A\00"
@.str.19 = [3 x i8] c"-q\00"
@.str.20 = [33 x i8] c"%-29sDisplays this help screen.\0A\00"
@.str.21 = [10 x i8] c"-? --help\00"
define void @io_print_syntax() {
%1 = call i32 @puts(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [69 x i8] c"Soobnets a network and calculates useful network information\0A\0AUsage:\00"
@.str.1 = [159 x i8] c"Soobneter -a ADDRESS [-m MASK | -b BITS_BORROWED | -sc SOOBNET_COUNT| -hc HOST_COUNT] [-s] [-vs SOOBNET_NUM | -vr LOWER_BOUND UPPER_BOUND] [-q] [-? | --help]\0A\00"
@.str.2 = [57 x i8] c"%-29sSets host address in dotted decimal or slash form.\0A\00"
@.str.3 = [12 x i8] c"-a ADDRESS\00"
@.str.4 = [29 x i8] c"%-29sSets the soobnet mask.\0A\00"
@.str.5 = [9 x i8] c"-m MASK\00"
@.str.6 = [40 x i8] c"%-29sSets the number of bits borrowed.\0A\00"
@.str.7 = [18 x i8] c"-b BITS_BORROWED\00"
@.str.8 = [51 x i8] c"%-29sSets the number of usable soobnets required.\0A\00"
@.str.9 = [18 x i8] c"-sc SOOBNET_COUNT\00"
@.str.10 = [56 x i8] c"%-29sSets the number of usable hosts/soobnet required.\0A\00"
@.str.11 = [15 x i8] c"-hc HOST_COUNT\00"
@.str.12 = [34 x i8] c"%-29sDisplays a network summary.\0A\00"
@.str.13 = [3 x i8] c"-s\00"
@.str.14 = [54 x i8] c"%-29sSpecifies the number of the soobnet to display.\0A\00"
@.str.15 = [16 x i8] c"-vs SOOBNET_NUM\00"
@.str.16 = [57 x i8] c"%-29sSpecifies the soobnet range to display, inclusive.\0A\00"
@.str.17 = [28 x i8] c"-vr LOWER_BOUND UPPER_BOUND\00"
@.str.18 = [44 x i8] c"%-29sDisables interactive soobnet viewing.\0A\00"
@.str.19 = [3 x i8] c"-q\00"
@.str.20 = [33 x i8] c"%-29sDisplays this help screen.\0A\00"
@.str.21 = [10 x i8] c"-? --help\00"
define void @io_print_syntax() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0))
%11 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
%12 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0))
ret void
}