#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*/ check(char *, int);
int main(void) {
  check("0.1.2.3", false);
  check("10.11.12.133", false);
  check("127.0.0.1", false);
  check("169.254.12.42", false);
  check("172.20.123.45", false);
  check("192.168.234.123", false);
  check("232.11.22.33", false);
  check("255.255.255.255", false);
  check("192.0.2.10", true);
  check("9.8.7.6", true);
  check("11.12.13.14", true);
  check("126.127.128.129", true);
  check("192.167.255.255", true);
  check("223.255.255.254", true);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xed4(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xed3(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xecf(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xecf(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xecf(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xed1(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xed0(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xed2(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xecc(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xec3(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xebe(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xebd(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xebc(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xee2(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xee1(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xedd(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xedd(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xedd(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xedf(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xede(%rip),%rdi
xor    %esi,%esi
call   1030 <check@plt>
lea    0xee0(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xed1(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xecc(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xecb(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
lea    0xeca(%rip),%rdi
mov    $0x1,%esi
call   1030 <check@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"0.1.2.3\00"
@.str.1 = [13 x i8] c"10.11.12.133\00"
@.str.2 = [10 x i8] c"127.0.0.1\00"
@.str.3 = [14 x i8] c"169.254.12.42\00"
@.str.4 = [14 x i8] c"172.20.123.45\00"
@.str.5 = [16 x i8] c"192.168.234.123\00"
@.str.6 = [13 x i8] c"232.11.22.33\00"
@.str.7 = [16 x i8] c"255.255.255.255\00"
@.str.8 = [11 x i8] c"192.0.2.10\00"
@.str.9 = [8 x i8] c"9.8.7.6\00"
@.str.10 = [12 x i8] c"11.12.13.14\00"
@.str.11 = [16 x i8] c"126.127.128.129\00"
@.str.12 = [16 x i8] c"192.167.255.255\00"
@.str.13 = [16 x i8] c"223.255.255.254\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @check(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = call i32 @check(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 0)
%4 = call i32 @check(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = call i32 @check(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = call i32 @check(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 0)
%7 = call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 0)
%8 = call i32 @check(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 0)
%9 = call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 0)
%10 = call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 1)
%11 = call i32 @check(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 1)
%12 = call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 1)
%13 = call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 1)
%14 = call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 1)
%15 = call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 1)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"0.1.2.3\00"
@.str.1 = [13 x i8] c"10.11.12.133\00"
@.str.2 = [10 x i8] c"127.0.0.1\00"
@.str.3 = [14 x i8] c"169.254.12.42\00"
@.str.4 = [14 x i8] c"172.20.123.45\00"
@.str.5 = [16 x i8] c"192.168.234.123\00"
@.str.6 = [13 x i8] c"232.11.22.33\00"
@.str.7 = [16 x i8] c"255.255.255.255\00"
@.str.8 = [11 x i8] c"192.0.2.10\00"
@.str.9 = [8 x i8] c"9.8.7.6\00"
@.str.10 = [12 x i8] c"11.12.13.14\00"
@.str.11 = [16 x i8] c"126.127.128.129\00"
@.str.12 = [16 x i8] c"192.167.255.255\00"
@.str.13 = [16 x i8] c"223.255.255.254\00"
define i32 @main() {
%1 = tail call i32 @check(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @check(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @check(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @check(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = tail call i32 @check(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 0)
%6 = tail call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 0)
%7 = tail call i32 @check(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 0)
%8 = tail call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 0)
%9 = tail call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 1)
%10 = tail call i32 @check(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 1)
%11 = tail call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 1)
%12 = tail call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 1)
%13 = tail call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 1)
%14 = tail call i32 @check(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 1)
ret i32 0
}