#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*/ checketh(char *);
int /*<<< orphan*/ checkip(char *);
int main() {
  checkip("1.1.1.1");
  checkip("0.0.0.0");
  checkip("255.255.255.255");
  checkip("0.255.255.0");
  checkip("255.0.0.255");
  checkip("  1.1.1.1");
  checkip("  255.0.0.1");
  checkip("1.1.1.1  ");
  checkip("1.0.0.255  ");
  checkip(" 255.1.1.255  ");
  checkip("256.0.0.0");
  checkip("0.0.0.256");
  checkip("x.0.0.1");
  checkip("1.0.0.x");
  checkip("x 1.1.1.1");
  checkip("1.1.1.1 x");
  checkip("x1.1.1.1");
  checkip("1.1.1.1x");
  checketh("00:00:00:00:00:00");
  checketh("ff:ff:ff:ff:ff:ff");
  checketh("01:01:01:01:01:01");
  checketh("ff:00:00:00:00:ff");
  checketh("00:ff:ff:ff:ff:00");
  checketh("  01:01:01:01:01:01");
  checketh("01:01:01:01:01:01  ");
  checketh("  01:01:01:01:01:01  ");
  checketh("01:01:01:01:01:256");
  checketh("01:01:01:01:01:100");
  checketh("-1:01:01:01:01:01");
  checketh("100:01:01:01:01:01");
  checketh("256:01:01:01:01:01");
  checketh("x01:01:01:01:01:01");
  checketh("x 01:01:01:01:01:01");
  checketh("01:01:01:01:01:01x");
  checketh("01:01:01:01:01:01 x");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xf07(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec9(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec5(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec9(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec9(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec9(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec7(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec7(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec5(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec5(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec6(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec4(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec0(%rip),%rdi
call   1030 <checkip@plt>
lea    0xebc(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeba(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeb8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeb5(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeb2(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeb8(%rip),%rdi
call   1040 <checketh@plt>
lea    0xee4(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeb2(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeb8(%rip),%rdi
call   1040 <checketh@plt>
lea    0xebe(%rip),%rdi
call   1040 <checketh@plt>
lea    0xec8(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeba(%rip),%rdi
call   1040 <checketh@plt>
lea    0xec4(%rip),%rdi
call   1040 <checketh@plt>
lea    0xecb(%rip),%rdi
call   1040 <checketh@plt>
lea    0xed2(%rip),%rdi
call   1040 <checketh@plt>
lea    0xed8(%rip),%rdi
call   1040 <checketh@plt>
lea    0xedf(%rip),%rdi
call   1040 <checketh@plt>
lea    0xee6(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeed(%rip),%rdi
call   1040 <checketh@plt>
lea    0xef5(%rip),%rdi
call   1040 <checketh@plt>
lea    0xefc(%rip),%rdi
call   1040 <checketh@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf0a(%rip),%rdi
call   1030 <checkip@plt>
lea    0xecc(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xecc(%rip),%rdi
call   1030 <checkip@plt>
lea    0xecc(%rip),%rdi
call   1030 <checkip@plt>
lea    0xecc(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeca(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeca(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xecb(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec9(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec7(%rip),%rdi
call   1030 <checkip@plt>
lea    0xec3(%rip),%rdi
call   1030 <checkip@plt>
lea    0xebf(%rip),%rdi
call   1030 <checkip@plt>
lea    0xebd(%rip),%rdi
call   1030 <checkip@plt>
lea    0xebb(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeb8(%rip),%rdi
call   1030 <checkip@plt>
lea    0xeb5(%rip),%rdi
call   1040 <checketh@plt>
lea    0xebb(%rip),%rdi
call   1040 <checketh@plt>
lea    0xee7(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeb5(%rip),%rdi
call   1040 <checketh@plt>
lea    0xebb(%rip),%rdi
call   1040 <checketh@plt>
lea    0xec1(%rip),%rdi
call   1040 <checketh@plt>
lea    0xecb(%rip),%rdi
call   1040 <checketh@plt>
lea    0xebd(%rip),%rdi
call   1040 <checketh@plt>
lea    0xec7(%rip),%rdi
call   1040 <checketh@plt>
lea    0xece(%rip),%rdi
call   1040 <checketh@plt>
lea    0xed5(%rip),%rdi
call   1040 <checketh@plt>
lea    0xedb(%rip),%rdi
call   1040 <checketh@plt>
lea    0xee2(%rip),%rdi
call   1040 <checketh@plt>
lea    0xee9(%rip),%rdi
call   1040 <checketh@plt>
lea    0xef0(%rip),%rdi
call   1040 <checketh@plt>
lea    0xef8(%rip),%rdi
call   1040 <checketh@plt>
lea    0xeff(%rip),%rdi
call   1040 <checketh@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"1.1.1.1\00"
@.str.1 = [8 x i8] c"0.0.0.0\00"
@.str.2 = [16 x i8] c"255.255.255.255\00"
@.str.3 = [12 x i8] c"0.255.255.0\00"
@.str.4 = [12 x i8] c"255.0.0.255\00"
@.str.5 = [10 x i8] c" 1.1.1.1\00"
@.str.6 = [12 x i8] c" 255.0.0.1\00"
@.str.7 = [10 x i8] c"1.1.1.1 \00"
@.str.8 = [12 x i8] c"1.0.0.255 \00"
@.str.9 = [15 x i8] c" 255.1.1.255 \00"
@.str.10 = [10 x i8] c"256.0.0.0\00"
@.str.11 = [10 x i8] c"0.0.0.256\00"
@.str.12 = [8 x i8] c"x.0.0.1\00"
@.str.13 = [8 x i8] c"1.0.0.x\00"
@.str.14 = [10 x i8] c"x 1.1.1.1\00"
@.str.15 = [10 x i8] c"1.1.1.1 x\00"
@.str.16 = [9 x i8] c"x1.1.1.1\00"
@.str.17 = [9 x i8] c"1.1.1.1x\00"
@.str.18 = [18 x i8] c"00:00:00:00:00:00\00"
@.str.19 = [18 x i8] c"ff:ff:ff:ff:ff:ff\00"
@.str.20 = [18 x i8] c"01:01:01:01:01:01\00"
@.str.21 = [18 x i8] c"ff:00:00:00:00:ff\00"
@.str.22 = [18 x i8] c"00:ff:ff:ff:ff:00\00"
@.str.23 = [20 x i8] c" 01:01:01:01:01:01\00"
@.str.24 = [20 x i8] c"01:01:01:01:01:01 \00"
@.str.25 = [22 x i8] c" 01:01:01:01:01:01 \00"
@.str.26 = [19 x i8] c"01:01:01:01:01:256\00"
@.str.27 = [19 x i8] c"01:01:01:01:01:100\00"
@.str.28 = [18 x i8] c"-1:01:01:01:01:01\00"
@.str.29 = [19 x i8] c"100:01:01:01:01:01\00"
@.str.30 = [19 x i8] c"256:01:01:01:01:01\00"
@.str.31 = [19 x i8] c"x01:01:01:01:01:01\00"
@.str.32 = [20 x i8] c"x 01:01:01:01:01:01\00"
@.str.33 = [19 x i8] c"01:01:01:01:01:01x\00"
@.str.34 = [20 x i8] c"01:01:01:01:01:01 x\00"
define i32 @main() {
%1 = call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @checkip(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @checkip(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @checkip(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @checkip(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @checketh(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0))
%33 = call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0))
%34 = call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0))
%35 = call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"1.1.1.1\00"
@.str.1 = [8 x i8] c"0.0.0.0\00"
@.str.2 = [16 x i8] c"255.255.255.255\00"
@.str.3 = [12 x i8] c"0.255.255.0\00"
@.str.4 = [12 x i8] c"255.0.0.255\00"
@.str.5 = [10 x i8] c" 1.1.1.1\00"
@.str.6 = [12 x i8] c" 255.0.0.1\00"
@.str.7 = [10 x i8] c"1.1.1.1 \00"
@.str.8 = [12 x i8] c"1.0.0.255 \00"
@.str.9 = [15 x i8] c" 255.1.1.255 \00"
@.str.10 = [10 x i8] c"256.0.0.0\00"
@.str.11 = [10 x i8] c"0.0.0.256\00"
@.str.12 = [8 x i8] c"x.0.0.1\00"
@.str.13 = [8 x i8] c"1.0.0.x\00"
@.str.14 = [10 x i8] c"x 1.1.1.1\00"
@.str.15 = [10 x i8] c"1.1.1.1 x\00"
@.str.16 = [9 x i8] c"x1.1.1.1\00"
@.str.17 = [9 x i8] c"1.1.1.1x\00"
@.str.18 = [18 x i8] c"00:00:00:00:00:00\00"
@.str.19 = [18 x i8] c"ff:ff:ff:ff:ff:ff\00"
@.str.20 = [18 x i8] c"01:01:01:01:01:01\00"
@.str.21 = [18 x i8] c"ff:00:00:00:00:ff\00"
@.str.22 = [18 x i8] c"00:ff:ff:ff:ff:00\00"
@.str.23 = [20 x i8] c" 01:01:01:01:01:01\00"
@.str.24 = [20 x i8] c"01:01:01:01:01:01 \00"
@.str.25 = [22 x i8] c" 01:01:01:01:01:01 \00"
@.str.26 = [19 x i8] c"01:01:01:01:01:256\00"
@.str.27 = [19 x i8] c"01:01:01:01:01:100\00"
@.str.28 = [18 x i8] c"-1:01:01:01:01:01\00"
@.str.29 = [19 x i8] c"100:01:01:01:01:01\00"
@.str.30 = [19 x i8] c"256:01:01:01:01:01\00"
@.str.31 = [19 x i8] c"x01:01:01:01:01:01\00"
@.str.32 = [20 x i8] c"x 01:01:01:01:01:01\00"
@.str.33 = [19 x i8] c"01:01:01:01:01:01x\00"
@.str.34 = [20 x i8] c"01:01:01:01:01:01 x\00"
define i32 @main() {
%1 = tail call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @checkip(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @checkip(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @checkip(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @checkip(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @checkip(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @checkip(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @checkip(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0))
%23 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
%24 = tail call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0))
%25 = tail call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.24, i64 0, i64 0))
%26 = tail call i32 @checketh(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%27 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.26, i64 0, i64 0))
%28 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.27, i64 0, i64 0))
%29 = tail call i32 @checketh(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
%30 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.29, i64 0, i64 0))
%31 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
%32 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.31, i64 0, i64 0))
%33 = tail call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0))
%34 = tail call i32 @checketh(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0))
%35 = tail call i32 @checketh(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
ret i32 0
}