#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int);
scalar_t__ fclose(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int fscanf(int /*<<< orphan*/ *, char *, char *);
int sscanf(char *, char *, unsigned int *, ...);
int /*<<< orphan*/ stderr;
int strlen(char *);
int /*<<< orphan*/ *strstr(char *, char const *);
void fill_property30(char array[0x110000], const char *proplist_filename,
                     const char *property_name) {
  unsigned int i;
  FILE *stream;
  char buf[100 + 1];
  for (i = 0; i < 0x110000; i++)
    array[i] = 0;
  stream = fopen(proplist_filename, "r");
  if (stream == NULL) {
    fprintf(stderr, "error during fopen of '%s'\n", proplist_filename);
    exit(1);
  }
  do {
    if (fscanf(stream, "%100[^\n]\n", buf) < 1) {
      fprintf(stderr, "no property found in '%s'\n", proplist_filename);
      exit(1);
    }
  } while (strstr(buf, property_name) == NULL);
  for (;;) {
    unsigned int i1, i2;
    if (fscanf(stream, "%100[^\n]\n", buf) < 1)
      break;
    if (buf[0] == '*')
      break;
    if (strlen(buf) >= 10 && buf[4] == '.' && buf[5] == '.') {
      if (sscanf(buf, "%4X..%4X", &i1, &i2) < 2) {
        fprintf(stderr, "parse error in property in '%s'\n", proplist_filename);
        exit(1);
      }
    } else if (strlen(buf) >= 4) {
      if (sscanf(buf, "%4X", &i1) < 1) {
        fprintf(stderr, "parse error in property in '%s'\n", proplist_filename);
        exit(1);
      }
      i2 = i1;
    } else {
      fprintf(stderr, "parse error in property in '%s'\n", proplist_filename);
      exit(1);
    }
    if (!(i1 <= i2 && i2 < 0x110000))
      abort();
    for (i = i1; i <= i2; i++)
      array[i] = 1;
  }
  if (ferror(stream) || fclose(stream)) {
    fprintf(stderr, "error reading from '%s'\n", proplist_filename);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<fill_property30>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x110000,-0x1c(%rbp)
jae    11e4 <fill_property30+0x44>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11be <fill_property30+0x1e>
mov    -0x10(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1226 <fill_property30+0x86>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdeb(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    122b <fill_property30+0x8b>
mov    -0x28(%rbp),%rdi
lea    -0x90(%rbp),%rdx
lea    0xde1(%rip),%rsi
call   1070 <fscanf@plt>
cmp    $0x1,%eax
jge    126e <fill_property30+0xce>
mov    0x2d8e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdc9(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    1273 <fill_property30+0xd3>
lea    -0x90(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10c0 <strstr@plt>
cmp    $0x0,%rax
je     122b <fill_property30+0x8b>
jmp    1292 <fill_property30+0xf2>
mov    -0x28(%rbp),%rdi
lea    -0x90(%rbp),%rdx
lea    0xd7a(%rip),%rsi
call   1070 <fscanf@plt>
cmp    $0x1,%eax
jge    12b7 <fill_property30+0x117>
jmp    144a <fill_property30+0x2aa>
movsbl -0x90(%rbp),%eax
cmp    $0x2a,%eax
jne    12cc <fill_property30+0x12c>
jmp    144a <fill_property30+0x2aa>
lea    -0x90(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jl     1355 <fill_property30+0x1b5>
movsbl -0x8c(%rbp),%eax
cmp    $0x2e,%eax
jne    1355 <fill_property30+0x1b5>
movsbl -0x8b(%rbp),%eax
cmp    $0x2e,%eax
jne    1355 <fill_property30+0x1b5>
lea    -0x90(%rbp),%rdi
lea    0xd34(%rip),%rsi
lea    -0x94(%rbp),%rdx
lea    -0x98(%rbp),%rcx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jge    1350 <fill_property30+0x1b0>
mov    0x2cac(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd0b(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    13eb <fill_property30+0x24b>
lea    -0x90(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x4,%eax
jl     13c3 <fill_property30+0x223>
lea    -0x90(%rbp),%rdi
lea    0xcd0(%rip),%rsi
lea    -0x94(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x1,%eax
jge    13b2 <fill_property30+0x212>
mov    0x2c4a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xca9(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x94(%rbp),%eax
mov    %eax,-0x98(%rbp)
jmp    13e6 <fill_property30+0x246>
mov    0x2c16(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xc75(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    13eb <fill_property30+0x24b>
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
ja     140d <fill_property30+0x26d>
cmpl   $0x110000,-0x98(%rbp)
jb     1414 <fill_property30+0x274>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x94(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x98(%rbp),%eax
ja     1445 <fill_property30+0x2a5>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
movb   $0x1,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    141d <fill_property30+0x27d>
jmp    1292 <fill_property30+0xf2>
mov    -0x28(%rbp),%rdi
call   1040 <ferror@plt>
cmp    $0x0,%rax
jne    1470 <fill_property30+0x2d0>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
cmp    $0x0,%rax
je     1493 <fill_property30+0x2f3>
mov    0x2b69(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xbe9(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fill_property30>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rdx,%r12
mov    %rsi,%rbx
mov    %rdi,%r15
mov    $0x110000,%edx
xor    %esi,%esi
call   1070 <memset@plt>
lea    0xe33(%rip),%rsi
mov    %rbx,0x8(%rsp)
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     151b <fill_property30+0x36b>
mov    %rax,%rbx
lea    0xe31(%rip),%r14
lea    0x20(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1080 <fscanf@plt>
test   %eax,%eax
jle    14cc <fill_property30+0x31c>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10d0 <strstr@plt>
test   %rax,%rax
je     1210 <fill_property30+0x60>
lea    0xdf1(%rip),%rsi
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
call   1080 <fscanf@plt>
test   %eax,%eax
jle    14a0 <fill_property30+0x2f0>
cmpb   $0x2a,0x20(%rsp)
je     14a0 <fill_property30+0x2f0>
lea    0x20(%rsp),%r12
lea    0xdea(%rip),%r13
lea    0x4(%rsp),%rbp
movabs $0x101010101010101,%r14
01 01 01
mov    %rbx,0x18(%rsp)
nopl   (%rax)
mov    %r12,%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jl     12d0 <fill_property30+0x120>
cmpb   $0x2e,0x24(%rsp)
jne    12d0 <fill_property30+0x120>
cmpb   $0x2e,0x25(%rsp)
jne    12d0 <fill_property30+0x120>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
lea    0x14(%rsp),%rcx
xor    %eax,%eax
call   10a0 <sscanf@plt>
cmp    $0x2,%eax
jl     14de <fill_property30+0x32e>
mov    0x4(%rsp),%eax
mov    0x14(%rsp),%r11d
jmp    130a <fill_property30+0x15a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r12,%rdi
call   1060 <strlen@plt>
cmp    $0x4,%eax
jl     14de <fill_property30+0x32e>
mov    %r12,%rdi
lea    0xd6d(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10a0 <sscanf@plt>
test   %eax,%eax
jle    14de <fill_property30+0x32e>
mov    0x4(%rsp),%r11d
mov    %r11d,0x14(%rsp)
mov    %r11d,%eax
cmp    %r11d,%eax
ja     1502 <fill_property30+0x352>
cmp    $0x10ffff,%r11d
ja     1502 <fill_property30+0x352>
lea    0x1(%rax),%r8d
lea    0x1(%r11),%r9d
cmp    %r9d,%r8d
mov    %r9d,%r10d
cmova  %r8d,%r10d
sub    %eax,%r10d
cmp    $0x8,%r10d
jae    1350 <fill_property30+0x1a0>
mov    %eax,%edx
jmp    1470 <fill_property30+0x2c0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %r9d,%r8d
mov    %r9d,%ecx
cmova  %r8d,%ecx
add    $0xffffffff,%ecx
cmp    %eax,%ecx
jae    1370 <fill_property30+0x1c0>
mov    %eax,%edx
jmp    1470 <fill_property30+0x2c0>
nopl   0x0(%rax,%rax,1)
xor    %esi,%esi
cmp    $0x20,%r10d
movaps 0xc83(%rip),%xmm0
jb     1431 <fill_property30+0x281>
mov    %r10d,%esi
and    $0xffffffe0,%esi
lea    -0x20(%rsi),%ecx
mov    %ecx,%edi
shr    $0x5,%edi
add    $0x1,%edi
mov    %edi,%edx
and    $0x3,%edx
xor    %ebp,%ebp
cmp    $0x60,%ecx
jb     13f3 <fill_property30+0x243>
and    $0xfffffffc,%edi
xor    %ebp,%ebp
mov    %eax,%ecx
nopw   0x0(%rax,%rax,1)
mov    %ecx,%r13d
movups %xmm0,(%r15,%r13,1)
movups %xmm0,0x10(%r15,%r13,1)
lea    0x20(%rcx),%ebx
movups %xmm0,(%r15,%rbx,1)
movups %xmm0,0x10(%r15,%rbx,1)
lea    0x40(%rcx),%ebx
movups %xmm0,(%r15,%rbx,1)
movups %xmm0,0x10(%r15,%rbx,1)
lea    0x60(%rcx),%ebx
movups %xmm0,(%r15,%rbx,1)
movups %xmm0,0x10(%r15,%rbx,1)
sub    $0xffffff80,%ebp
sub    $0xffffff80,%ecx
add    $0xfffffffc,%edi
jne    13b0 <fill_property30+0x200>
test   %edx,%edx
je     1415 <fill_property30+0x265>
add    %eax,%ebp
nopl   0x0(%rax)
mov    %ebp,%ecx
movups %xmm0,(%r15,%rcx,1)
movups %xmm0,0x10(%r15,%rcx,1)
add    $0x20,%ebp
add    $0xffffffff,%edx
jne    1400 <fill_property30+0x250>
cmp    %esi,%r10d
mov    0x18(%rsp),%rbx
lea    0xc2f(%rip),%r13
lea    0x4(%rsp),%rbp
je     147f <fill_property30+0x2cf>
test   $0x18,%r10b
je     1465 <fill_property30+0x2b5>
cmp    %r9d,%r8d
cmova  %r8d,%r9d
sub    %eax,%r9d
mov    %r9d,%ecx
and    $0xfffffff8,%ecx
lea    (%rax,%rcx,1),%edx
add    %esi,%eax
sub    %ecx,%esi
nopl   0x0(%rax,%rax,1)
mov    %eax,%edi
mov    %r14,(%r15,%rdi,1)
add    $0x8,%eax
add    $0x8,%esi
jne    1450 <fill_property30+0x2a0>
cmp    %ecx,%r9d
jne    1470 <fill_property30+0x2c0>
jmp    147f <fill_property30+0x2cf>
add    %esi,%eax
mov    %eax,%edx
nopl   0x0(%rax)
mov    %edx,%eax
movb   $0x1,(%r15,%rax,1)
add    $0x1,%edx
cmp    %r11d,%edx
jbe    1470 <fill_property30+0x2c0>
mov    %rbx,%rdi
lea    0xba5(%rip),%rsi
mov    %r12,%rdx
call   1080 <fscanf@plt>
test   %eax,%eax
jle    14a0 <fill_property30+0x2f0>
cmpb   $0x2a,0x20(%rsp)
jne    1280 <fill_property30+0xd0>
mov    %rbx,%rdi
call   1040 <ferror@plt>
test   %rax,%rax
jne    1509 <fill_property30+0x359>
mov    %rbx,%rdi
call   1050 <fclose@plt>
test   %rax,%rax
jne    1509 <fill_property30+0x359>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b0d(%rip),%rax
mov    (%rax),%edi
lea    0xb5c(%rip),%rsi
jmp    14ee <fill_property30+0x33e>
mov    0x2afb(%rip),%rax
mov    (%rax),%edi
lea    0xb6e(%rip),%rsi
mov    0x8(%rsp),%rdx
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>
mov    0x2ad0(%rip),%rax
mov    (%rax),%edi
lea    0xb64(%rip),%rsi
jmp    14ee <fill_property30+0x33e>
mov    0x2abe(%rip),%rax
mov    (%rax),%edi
lea    0xae7(%rip),%rsi
jmp    14ee <fill_property30+0x33e>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [28 x i8] c"error during fopen of '%s'\0A\00"
@.str.2 = [10 x i8] c"%100[^\0A]\0A\00"
@.str.3 = [27 x i8] c"no property found in '%s'\0A\00"
@.str.4 = [9 x i8] c"%4X..%4X\00"
@.str.5 = [33 x i8] c"parse error in property in '%s'\0A\00"
@.str.6 = [4 x i8] c"%4X\00"
@.str.7 = [25 x i8] c"error reading from '%s'\0A\00"
define void @fill_property30(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca [101 x i8]
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32 0, i32* %7
br label %12
12: ; preds = %20, %3
%13 = load i32, i32* %7
%14 = icmp ult i32 %13, 1114112
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = load i8*, i8** %4
%17 = load i32, i32* %7
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
store i8 0, i8* %19
br label %20
20: ; preds = %15
%21 = load i32, i32* %7
%22 = add i32 %21, 1
store i32 %22, i32* %7
br label %12
23: ; preds = %12
%24 = load i8*, i8** %5
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %25, i32** %8
%26 = load i32*, i32** %8
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %33
28: ; preds = %23
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %5
%31 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %30)
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %23
br label %34
34: ; preds = %45, %33
%35 = load i32*, i32** %8
%36 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%37 = call i32 @fscanf(i32* %35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %36)
%38 = icmp slt i32 %37, 1
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = load i32, i32* @stderr
%41 = load i8*, i8** %5
%42 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %41)
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %34
br label %45
45: ; preds = %44
%46 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%47 = load i8*, i8** %6
%48 = call i32* @strstr(i8* %46, i8* %47)
%49 = icmp eq i32* %48, null
br i1 %49, label %34, label %50
50: ; preds = %45
br label %51
51: ; preds = %131, %50
%52 = load i32*, i32** %8
%53 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%54 = call i32 @fscanf(i32* %52, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %53)
%55 = icmp slt i32 %54, 1
br i1 %55, label %56, label %57
56: ; preds = %51
br label %132
57: ; preds = %51
%58 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 42
br i1 %61, label %62, label %63
62: ; preds = %57
br label %132
63: ; preds = %57
%64 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%65 = call i32 @strlen(i8* %64)
%66 = icmp sge i32 %65, 10
br i1 %66, label %67, label %87
67: ; preds = %63
%68 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 4
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 46
br i1 %71, label %72, label %87
72: ; preds = %67
%73 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 5
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 46
br i1 %76, label %77, label %87
77: ; preds = %72
%78 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%79 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %78, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %10, i32* %11)
%80 = icmp slt i32 %79, 2
br i1 %80, label %81, label %86
81: ; preds = %77
%82 = load i32, i32* @stderr
%83 = load i8*, i8** %5
%84 = call i32 @fprintf(i32 %82, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %83)
%85 = call i32 @exit(i32 1)
unreachable
86: ; preds = %77
br label %108
87: ; preds = %72, %67, %63
%88 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%89 = call i32 @strlen(i8* %88)
%90 = icmp sge i32 %89, 4
br i1 %90, label %91, label %102
91: ; preds = %87
%92 = getelementptr inbounds [101 x i8], [101 x i8]* %9, i64 0, i64 0
%93 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%94 = icmp slt i32 %93, 1
br i1 %94, label %95, label %100
95: ; preds = %91
%96 = load i32, i32* @stderr
%97 = load i8*, i8** %5
%98 = call i32 @fprintf(i32 %96, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %97)
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %91
%101 = load i32, i32* %10
store i32 %101, i32* %11
br label %107
102: ; preds = %87
%103 = load i32, i32* @stderr
%104 = load i8*, i8** %5
%105 = call i32 @fprintf(i32 %103, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %104)
%106 = call i32 @exit(i32 1)
unreachable
107: ; preds = %100
br label %108
108: ; preds = %107, %86
%109 = load i32, i32* %10
%110 = load i32, i32* %11
%111 = icmp ule i32 %109, %110
br i1 %111, label %112, label %115
112: ; preds = %108
%113 = load i32, i32* %11
%114 = icmp ult i32 %113, 1114112
br i1 %114, label %117, label %115
115: ; preds = %112, %108
%116 = call i32 (...) @abort()
unreachable
117: ; preds = %112
%118 = load i32, i32* %10
store i32 %118, i32* %7
br label %119
119: ; preds = %128, %117
%120 = load i32, i32* %7
%121 = load i32, i32* %11
%122 = icmp ule i32 %120, %121
br i1 %122, label %123, label %131
123: ; preds = %119
%124 = load i8*, i8** %4
%125 = load i32, i32* %7
%126 = zext i32 %125 to i64
%127 = getelementptr inbounds i8, i8* %124, i64 %126
store i8 1, i8* %127
br label %128
128: ; preds = %123
%129 = load i32, i32* %7
%130 = add i32 %129, 1
store i32 %130, i32* %7
br label %119
131: ; preds = %119
br label %51
132: ; preds = %62, %56
%133 = load i32*, i32** %8
%134 = call i64 @ferror(i32* %133)
%135 = icmp ne i64 %134, 0
br i1 %135, label %140, label %136
136: ; preds = %132
%137 = load i32*, i32** %8
%138 = call i64 @fclose(i32* %137)
%139 = icmp ne i64 %138, 0
br i1 %139, label %140, label %145
140: ; preds = %136, %132
%141 = load i32, i32* @stderr
%142 = load i8*, i8** %5
%143 = call i32 @fprintf(i32 %141, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %142)
%144 = call i32 @exit(i32 1)
unreachable
145: ; preds = %136
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [28 x i8] c"error during fopen of '%s'\0A\00"
@.str.2 = [10 x i8] c"%100[^\0A]\0A\00"
@.str.3 = [27 x i8] c"no property found in '%s'\0A\00"
@.str.4 = [9 x i8] c"%4X..%4X\00"
@.str.5 = [33 x i8] c"parse error in property in '%s'\0A\00"
@.str.6 = [4 x i8] c"%4X\00"
@.str.7 = [25 x i8] c"error reading from '%s'\0A\00"
define void @fill_property30(i8* nocapture writeonly %0, i8* %1, i8* nocapture %2) {
%4 = alloca [101 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = getelementptr inbounds [101 x i8], [101 x i8]* %4, i64 0, i64 0
%8 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %3, %21
%15 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%16 = icmp slt i32 %15, 1
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %1)
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %14
%22 = call i32* @strstr(i8* %7, i8* dereferenceable(1) %2)
%23 = icmp eq i32* %22, null
br i1 %23, label %14, label %24
24: ; preds = %21
%25 = bitcast i32* %5 to i8*
%26 = bitcast i32* %6 to i8*
%27 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%28 = icmp slt i32 %27, 1
%29 = load i8, i8* %7
%30 = icmp eq i8 %29, 42
%31 = select i1 %28, i1 true, i1 %30
br i1 %31, label %187, label %32
32: ; preds = %24
%33 = getelementptr inbounds [101 x i8], [101 x i8]* %4, i64 0, i64 4
%34 = getelementptr inbounds [101 x i8], [101 x i8]* %4, i64 0, i64 5
br label %35
35: ; preds = %32, %181
%36 = call i32 @strlen(i8* %7)
%37 = icmp sgt i32 %36, 9
%38 = load i8, i8* %33
%39 = icmp eq i8 %38, 46
%40 = select i1 %37, i1 %39, i1 false
%41 = load i8, i8* %34
%42 = icmp eq i8 %41, 46
%43 = select i1 %40, i1 %42, i1 false
br i1 %43, label %44, label %54
44: ; preds = %35
%45 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %5, i32* %6)
%46 = icmp slt i32 %45, 2
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = load i32, i32* %5
%49 = load i32, i32* %6
br label %70
50: ; preds = %44
%51 = load i32, i32* @stderr
%52 = call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%53 = call i32 @exit(i32 1)
unreachable
54: ; preds = %35
%55 = call i32 @strlen(i8* %7)
%56 = icmp sgt i32 %55, 3
br i1 %56, label %57, label %66
57: ; preds = %54
%58 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%59 = icmp slt i32 %58, 1
br i1 %59, label %60, label %64
60: ; preds = %57
%61 = load i32, i32* @stderr
%62 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%63 = call i32 @exit(i32 1)
unreachable
64: ; preds = %57
%65 = load i32, i32* %5
store i32 %65, i32* %6
br label %70
66: ; preds = %54
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %47, %64
%71 = phi i32 [ %49, %47 ], [ %65, %64 ]
%72 = phi i32 [ %48, %47 ], [ %65, %64 ]
%73 = icmp ule i32 %72, %71
%74 = icmp ult i32 %71, 1114112
%75 = and i1 %73, %74
br i1 %75, label %76, label %173
76: ; preds = %70
%77 = add i32 %72, 1
%78 = add nuw i32 %71, 1
%79 = call i32 @llvm.umax.i32(i32 %77, i32 %78)
%80 = sub i32 %79, %72
%81 = icmp ult i32 %80, 8
br i1 %81, label %171, label %82
82: ; preds = %76
%83 = add i32 %72, 1
%84 = add nuw i32 %71, 1
%85 = call i32 @llvm.umax.i32(i32 %83, i32 %84)
%86 = add i32 %85, -1
%87 = icmp ult i32 %86, %72
br i1 %87, label %171, label %88
88: ; preds = %82
%89 = icmp ult i32 %80, 32
br i1 %89, label %153, label %90
90: ; preds = %88
%91 = and i32 %80, -32
%92 = add i32 %91, -32
%93 = lshr exact i32 %92, 5
%94 = add nuw nsw i32 %93, 1
%95 = and i32 %94, 3
%96 = icmp ult i32 %92, 96
br i1 %96, label %132, label %97
97: ; preds = %90
%98 = and i32 %94, 268435452
br label %99
99: ; preds = %99, %97
%100 = phi i32 [ 0, %97 ], [ %129, %99 ]
%101 = phi i32 [ 0, %97 ], [ %130, %99 ]
%102 = add i32 %72, %100
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds i8, i8* %0, i64 %103
%105 = bitcast i8* %104 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %105
%106 = getelementptr inbounds i8, i8* %104, i64 16
%107 = bitcast i8* %106 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %107
%108 = or i32 %100, 32
%109 = add i32 %72, %108
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %0, i64 %110
%112 = bitcast i8* %111 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %112
%113 = getelementptr inbounds i8, i8* %111, i64 16
%114 = bitcast i8* %113 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %114
%115 = or i32 %100, 64
%116 = add i32 %72, %115
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds i8, i8* %0, i64 %117
%119 = bitcast i8* %118 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %119
%120 = getelementptr inbounds i8, i8* %118, i64 16
%121 = bitcast i8* %120 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %121
%122 = or i32 %100, 96
%123 = add i32 %72, %122
%124 = zext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %0, i64 %124
%126 = bitcast i8* %125 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %126
%127 = getelementptr inbounds i8, i8* %125, i64 16
%128 = bitcast i8* %127 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %128
%129 = add nuw i32 %100, 128
%130 = add i32 %101, 4
%131 = icmp eq i32 %130, %98
br i1 %131, label %132, label %99
132: ; preds = %99, %90
%133 = phi i32 [ 0, %90 ], [ %129, %99 ]
%134 = icmp eq i32 %95, 0
br i1 %134, label %147, label %135
135: ; preds = %132, %135
%136 = phi i32 [ %144, %135 ], [ %133, %132 ]
%137 = phi i32 [ %145, %135 ], [ 0, %132 ]
%138 = add i32 %72, %136
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %0, i64 %139
%141 = bitcast i8* %140 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %141
%142 = getelementptr inbounds i8, i8* %140, i64 16
%143 = bitcast i8* %142 to <16 x i8>*
store <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <16 x i8>* %143
%144 = add nuw i32 %136, 32
%145 = add i32 %137, 1
%146 = icmp eq i32 %145, %95
br i1 %146, label %147, label %135
147: ; preds = %135, %132
%148 = icmp eq i32 %80, %91
br i1 %148, label %181, label %149
149: ; preds = %147
%150 = add i32 %72, %91
%151 = and i32 %80, 24
%152 = icmp eq i32 %151, 0
br i1 %152, label %171, label %153
153: ; preds = %88, %149
%154 = phi i32 [ %91, %149 ], [ 0, %88 ]
%155 = add i32 %72, 1
%156 = add nuw i32 %71, 1
%157 = call i32 @llvm.umax.i32(i32 %155, i32 %156)
%158 = sub i32 %157, %72
%159 = and i32 %158, -8
%160 = add i32 %72, %159
br label %161
161: ; preds = %161, %153
%162 = phi i32 [ %154, %153 ], [ %167, %161 ]
%163 = add i32 %72, %162
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds i8, i8* %0, i64 %164
%166 = bitcast i8* %165 to <8 x i8>*
store <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, <8 x i8>* %166
%167 = add nuw i32 %162, 8
%168 = icmp eq i32 %167, %159
br i1 %168, label %169, label %161
169: ; preds = %161
%170 = icmp eq i32 %158, %159
br i1 %170, label %181, label %171
171: ; preds = %82, %76, %149, %169
%172 = phi i32 [ %72, %76 ], [ %72, %82 ], [ %150, %149 ], [ %160, %169 ]
br label %175
173: ; preds = %70
%174 = call i32 (...) @abort()
unreachable
175: ; preds = %171, %175
%176 = phi i32 [ %179, %175 ], [ %172, %171 ]
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds i8, i8* %0, i64 %177
store i8 1, i8* %178
%179 = add i32 %176, 1
%180 = icmp ugt i32 %179, %71
br i1 %180, label %181, label %175
181: ; preds = %175, %169, %147
%182 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%183 = icmp slt i32 %182, 1
%184 = load i8, i8* %7
%185 = icmp eq i8 %184, 42
%186 = select i1 %183, i1 true, i1 %185
br i1 %186, label %187, label %35
187: ; preds = %181, %24
%188 = call i64 @ferror(i32* %8)
%189 = icmp eq i64 %188, 0
br i1 %189, label %190, label %193
190: ; preds = %187
%191 = call i64 @fclose(i32* %8)
%192 = icmp eq i64 %191, 0
br i1 %192, label %197, label %193
193: ; preds = %190, %187
%194 = load i32, i32* @stderr
%195 = call i32 @fprintf(i32 %194, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %1)
%196 = call i32 @exit(i32 1)
unreachable
197: ; preds = %190
ret void
}