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

/* Variables and functions */
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int getline(char **, size_t *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char, char);
int strlen(char *);
long strtol(char *, char **, int);
char *xmalloc(int);
int extract_resources(char *input_file, float output[]) {
  FILE *f = fopen(input_file, "r");
  if (!f) {
    perror("fopen");
    return -1;
  }
  char *line = xmalloc(256);
  size_t linesize = 256;
  ssize_t linelen;
  int outputptr = 0;
  while ((linelen = getline(&line, &linesize, f)) != -1) {
    size_t i;
    if (*line == '!' || *line == '\n') {
      continue;
    }
    for (i = 0; i < linesize && line[i] != '#'; i++)
      ;
    if (i == linesize) {
      continue;
    }
    line += i;
    if (strlen(line) < 7) {
      continue;
    }
    int j;
    for (j = 0; j < 3; j++) {
      char colorstr[3];
      snprintf(colorstr, 3, "%c%c", line[2 * j + 1], line[2 * j + 2]);
      char *endptr = NULL;
      long color = strtol(colorstr, &endptr, 16);
      if (*endptr != '\0') {
        break;
      }
      float ratio = ((float)color) / 255.0f;
      output[outputptr] = ratio;
      outputptr++;
    }
    line = xmalloc(256);
    linesize = 256;
  }
  if (fclose(f)) {
    perror("fclose");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<extract_resources>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11c7 <extract_resources+0x47>
lea    0xe50(%rip),%rdi
call   1090 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c3 <extract_resources+0x243>
mov    $0x100,%edi
call   1060 <xmalloc@plt>
mov    %rax,-0x28(%rbp)
movq   $0x100,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   10a0 <getline@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     1391 <extract_resources+0x211>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x21,%eax
je     1221 <extract_resources+0xa1>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    1226 <extract_resources+0xa6>
jmp    11e4 <extract_resources+0x64>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rcx
xor    %eax,%eax
cmp    -0x30(%rbp),%rcx
mov    %al,-0x5d(%rbp)
jae    1256 <extract_resources+0xd6>
mov    -0x28(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x23,%eax
setne  %al
mov    %al,-0x5d(%rbp)
mov    -0x5d(%rbp),%al
test   $0x1,%al
jne    1266 <extract_resources+0xe6>
jmp    127c <extract_resources+0xfc>
jmp    126b <extract_resources+0xeb>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    122e <extract_resources+0xae>
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
jne    128f <extract_resources+0x10f>
jmp    11e4 <extract_resources+0x64>
mov    -0x40(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x7,%eax
jge    12b2 <extract_resources+0x132>
jmp    11e4 <extract_resources+0x64>
movl   $0x0,-0x44(%rbp)
cmpl   $0x3,-0x44(%rbp)
jge    1376 <extract_resources+0x1f6>
lea    -0x47(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    -0x44(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x28(%rbp),%rax
mov    -0x44(%rbp),%edx
shl    $0x1,%edx
add    $0x2,%edx
movslq %edx,%r8
mov    $0x3,%esi
lea    0xd16(%rip),%rdx
movsbl %cl,%ecx
movsbl (%rax,%r8,1),%r8d
call   1050 <snprintf@plt>
movq   $0x0,-0x50(%rbp)
lea    -0x47(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x10,%edx
call   1070 <strtol@plt>
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1336 <extract_resources+0x1b6>
jmp    1376 <extract_resources+0x1f6>
cvtsi2ssq -0x58(%rbp),%xmm0
movss  0xcbc(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x5c(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12b9 <extract_resources+0x139>
mov    $0x100,%edi
call   1060 <xmalloc@plt>
mov    %rax,-0x28(%rbp)
movq   $0x100,-0x30(%rbp)
jmp    11e4 <extract_resources+0x64>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
cmp    $0x0,%rax
je     13bc <extract_resources+0x23c>
lea    0xc66(%rip),%rdi
call   1090 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c3 <extract_resources+0x243>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract_resources>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
lea    0xe6c(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1403 <extract_resources+0x283>
mov    %rax,%rbx
mov    %rbp,0x18(%rsp)
mov    $0x100,%edi
call   1060 <xmalloc@plt>
mov    %rax,0x8(%rsp)
movq   $0x100,0x10(%rsp)
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %rbx,%rdx
call   10a0 <getline@plt>
cmp    $0xffffffff,%eax
je     13e2 <extract_resources+0x262>
xor    %r13d,%r13d
lea    0x8(%rsp),%r15
lea    0x10(%rsp),%r12
lea    0x25(%rsp),%rbp
jmp    1237 <extract_resources+0xb7>
add    $0x1,%r13
mov    $0x100,%edi
call   1060 <xmalloc@plt>
mov    %rax,0x8(%rsp)
movq   $0x100,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   10a0 <getline@plt>
cmp    $0xffffffff,%eax
je     13e2 <extract_resources+0x262>
mov    0x8(%rsp),%rdi
mov    (%rdi),%dl
cmp    $0xa,%dl
je     1220 <extract_resources+0xa0>
cmp    $0x21,%dl
je     1220 <extract_resources+0xa0>
mov    0x10(%rsp),%rax
test   %rax,%rax
je     128a <extract_resources+0x10a>
mov    $0x0,%ecx
cmp    $0x23,%dl
je     1283 <extract_resources+0x103>
lea    -0x1(%rax),%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %rsi,%rdx
je     1220 <extract_resources+0xa0>
lea    0x1(%rsi),%rcx
cmpb   $0x23,0x1(%rdi,%rsi,1)
mov    %rcx,%rsi
jne    1270 <extract_resources+0xf0>
cmp    %rax,%rcx
je     1220 <extract_resources+0xa0>
jmp    1291 <extract_resources+0x111>
xor    %ecx,%ecx
cmp    %rax,%rcx
je     1220 <extract_resources+0xa0>
add    %rcx,%rdi
mov    %rdi,0x8(%rsp)
call   1040 <strlen@plt>
cmp    $0x7,%eax
jl     1220 <extract_resources+0xa0>
movslq %r13d,%r13
mov    0x8(%rsp),%rax
movsbl 0x1(%rax),%ecx
movsbl 0x2(%rax),%r8d
mov    %rbp,%rdi
mov    $0x3,%esi
lea    0xd45(%rip),%r14
mov    %r14,%rdx
call   1050 <snprintf@plt>
movq   $0x0,(%rsp)
mov    %rbp,%rdi
mov    %rsp,%rsi
mov    $0x10,%edx
call   1070 <strtol@plt>
mov    (%rsp),%rcx
cmpb   $0x0,(%rcx)
jne    11f9 <extract_resources+0x79>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0xcfc(%rip),%xmm1
divss  %xmm1,%xmm0
mov    0x18(%rsp),%rax
movss  %xmm0,(%rax,%r13,4)
mov    0x8(%rsp),%rax
movsbl 0x3(%rax),%ecx
movsbl 0x4(%rax),%r8d
mov    %rbp,%rdi
mov    $0x3,%esi
mov    %r14,%rdx
call   1050 <snprintf@plt>
movq   $0x0,(%rsp)
mov    %rbp,%rdi
mov    %rsp,%rsi
mov    $0x10,%edx
call   1070 <strtol@plt>
mov    (%rsp),%rcx
cmpb   $0x0,(%rcx)
jne    11f5 <extract_resources+0x75>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  0xc9a(%rip),%xmm0
mov    0x18(%rsp),%rax
movss  %xmm0,0x4(%rax,%r13,4)
mov    0x8(%rsp),%rax
movsbl 0x5(%rax),%ecx
movsbl 0x6(%rax),%r8d
mov    %rbp,%rdi
mov    $0x3,%esi
mov    %r14,%rdx
call   1050 <snprintf@plt>
movq   $0x0,(%rsp)
mov    %rbp,%r14
mov    %rbp,%rdi
mov    %rsp,%rsi
mov    $0x10,%edx
call   1070 <strtol@plt>
mov    (%rsp),%rcx
cmpb   $0x0,(%rcx)
je     13ba <extract_resources+0x23a>
add    $0x2,%r13
jmp    13da <extract_resources+0x25a>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
divss  0xc36(%rip),%xmm0
mov    0x18(%rsp),%rax
movss  %xmm0,0x8(%rax,%r13,4)
add    $0x3,%r13
mov    %r14,%rbp
jmp    11f9 <extract_resources+0x79>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    140c <extract_resources+0x28c>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbfc(%rip),%rdi
jmp    1413 <extract_resources+0x293>
lea    0xbfe(%rip),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%eax
jmp    13f4 <extract_resources+0x274>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"fopen\00"
@.str.2 = [5 x i8] c"%c%c\00"
@.str.3 = [7 x i8] c"fclose\00"
define i32 @extract_resources(i8* %0, float* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca float*
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i64
%12 = alloca i32
%13 = alloca [3 x i8]
%14 = alloca i8*
%15 = alloca i64
%16 = alloca float
store i8* %0, i8** %4
store float* %1, float** %5
%17 = load i8*, i8** %4
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %18, i32** %6
%19 = load i32*, i32** %6
%20 = icmp ne i32* %19, null
br i1 %20, label %23, label %21
21: ; preds = %2
%22 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %122
23: ; preds = %2
%24 = call i8* @xmalloc(i32 256)
store i8* %24, i8** %7
store i64 256, i64* %8
store i32 0, i32* %10
br label %25
25: ; preds = %113, %70, %62, %39, %23
%26 = load i32*, i32** %6
%27 = call i32 @getline(i8** %7, i64* %8, i32* %26)
store i32 %27, i32* %9
%28 = icmp ne i32 %27, -1
br i1 %28, label %29, label %115
29: ; preds = %25
%30 = load i8*, i8** %7
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 33
br i1 %33, label %39, label %34
34: ; preds = %29
%35 = load i8*, i8** %7
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 10
br i1 %38, label %39, label %40
39: ; preds = %34, %29
br label %25
40: ; preds = %34
store i64 0, i64* %11
br label %41
41: ; preds = %55, %40
%42 = load i64, i64* %11
%43 = load i64, i64* %8
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %52
45: ; preds = %41
%46 = load i8*, i8** %7
%47 = load i64, i64* %11
%48 = getelementptr inbounds i8, i8* %46, i64 %47
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 35
br label %52
52: ; preds = %45, %41
%53 = phi i1 [ false, %41 ], [ %51, %45 ]
br i1 %53, label %54, label %58
54: ; preds = %52
br label %55
55: ; preds = %54
%56 = load i64, i64* %11
%57 = add i64 %56, 1
store i64 %57, i64* %11
br label %41
58: ; preds = %52
%59 = load i64, i64* %11
%60 = load i64, i64* %8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
br label %25
63: ; preds = %58
%64 = load i64, i64* %11
%65 = load i8*, i8** %7
%66 = getelementptr inbounds i8, i8* %65, i64 %64
store i8* %66, i8** %7
%67 = load i8*, i8** %7
%68 = call i32 @strlen(i8* %67)
%69 = icmp slt i32 %68, 7
br i1 %69, label %70, label %71
70: ; preds = %63
br label %25
71: ; preds = %63
store i32 0, i32* %12
br label %72
72: ; preds = %110, %71
%73 = load i32, i32* %12
%74 = icmp slt i32 %73, 3
br i1 %74, label %75, label %113
75: ; preds = %72
%76 = getelementptr inbounds [3 x i8], [3 x i8]* %13, i64 0, i64 0
%77 = load i8*, i8** %7
%78 = load i32, i32* %12
%79 = mul nsw i32 2, %78
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, i8* %77, i64 %81
%83 = load i8, i8* %82
%84 = load i8*, i8** %7
%85 = load i32, i32* %12
%86 = mul nsw i32 2, %85
%87 = add nsw i32 %86, 2
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* %84, i64 %88
%90 = load i8, i8* %89
%91 = call i32 @snprintf(i8* %76, i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8 signext %83, i8 signext %90)
store i8* null, i8** %14
%92 = getelementptr inbounds [3 x i8], [3 x i8]* %13, i64 0, i64 0
%93 = call i64 @strtol(i8* %92, i8** %14, i32 16)
store i64 %93, i64* %15
%94 = load i8*, i8** %14
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %75
br label %113
99: ; preds = %75
%100 = load i64, i64* %15
%101 = sitofp i64 %100 to float
%102 = fdiv float %101, 2.550000e+02
store float %102, float* %16
%103 = load float, float* %16
%104 = load float*, float** %5
%105 = load i32, i32* %10
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds float, float* %104, i64 %106
store float %103, float* %107
%108 = load i32, i32* %10
%109 = add nsw i32 %108, 1
store i32 %109, i32* %10
br label %110
110: ; preds = %99
%111 = load i32, i32* %12
%112 = add nsw i32 %111, 1
store i32 %112, i32* %12
br label %72
113: ; preds = %98, %72
%114 = call i8* @xmalloc(i32 256)
store i8* %114, i8** %7
store i64 256, i64* %8
br label %25
115: ; preds = %25
%116 = load i32*, i32** %6
%117 = call i64 @fclose(i32* %116)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %122
121: ; preds = %115
store i32 0, i32* %3
br label %122
122: ; preds = %121, %119, %21
%123 = load i32, i32* %3
ret i32 %123
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"fopen\00"
@.str.2 = [5 x i8] c"%c%c\00"
@.str.3 = [7 x i8] c"fclose\00"
define i32 @extract_resources(i8* nocapture %0, float* nocapture writeonly %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca [3 x i8]
%6 = alloca i8*
%7 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %108
11: ; preds = %2
%12 = bitcast i8** %3 to i8*
%13 = tail call i8* @xmalloc(i32 256)
store i8* %13, i8** %3
%14 = bitcast i64* %4 to i8*
store i64 256, i64* %4
%15 = call i32 @getline(i8** %3, i64* %4, i32* %7)
%16 = icmp eq i32 %15, -1
br i1 %16, label %101, label %17
17: ; preds = %11
%18 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%19 = bitcast i8** %6 to i8*
br label %20
20: ; preds = %17, %97
%21 = phi i32 [ 0, %17 ], [ %98, %97 ]
%22 = load i8*, i8** %3
%23 = load i8, i8* %22
switch i8 %23, label %24 [
i8 33, label %97
i8 10, label %97
]
24: ; preds = %20
%25 = load i64, i64* %4
%26 = icmp eq i64 %25, 0
%27 = icmp eq i8 %23, 35
%28 = select i1 %26, i1 true, i1 %27
br i1 %28, label %37, label %29
29: ; preds = %24, %33
%30 = phi i64 [ %31, %33 ], [ 0, %24 ]
%31 = add nuw i64 %30, 1
%32 = icmp eq i64 %31, %25
br i1 %32, label %97, label %33
33: ; preds = %29
%34 = getelementptr inbounds i8, i8* %22, i64 %31
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, 35
br i1 %36, label %37, label %29
37: ; preds = %33, %24
%38 = phi i64 [ 0, %24 ], [ %31, %33 ]
%39 = icmp eq i64 %38, %25
br i1 %39, label %97, label %40
40: ; preds = %37
%41 = getelementptr inbounds i8, i8* %22, i64 %38
store i8* %41, i8** %3
%42 = call i32 @strlen(i8* %41)
%43 = icmp slt i32 %42, 7
br i1 %43, label %97, label %44
44: ; preds = %40
%45 = sext i32 %21 to i64
%46 = load i8*, i8** %3
%47 = getelementptr inbounds i8, i8* %46, i64 1
%48 = load i8, i8* %47
%49 = getelementptr inbounds i8, i8* %46, i64 2
%50 = load i8, i8* %49
%51 = call i32 @snprintf(i8* %18, i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8 signext %48, i8 signext %50)
store i8* null, i8** %6
%52 = call i64 @strtol(i8* %18, i8** %6, i32 16)
%53 = load i8*, i8** %6
%54 = load i8, i8* %53
%55 = icmp eq i8 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %73, %58, %44
%57 = phi i64 [ %45, %44 ], [ %62, %58 ], [ %77, %73 ]
br label %93
58: ; preds = %44
%59 = sitofp i64 %52 to float
%60 = fdiv float %59, 2.550000e+02
%61 = getelementptr inbounds float, float* %1, i64 %45
store float %60, float* %61
%62 = add nsw i64 %45, 1
%63 = load i8*, i8** %3
%64 = getelementptr inbounds i8, i8* %63, i64 3
%65 = load i8, i8* %64
%66 = getelementptr inbounds i8, i8* %63, i64 4
%67 = load i8, i8* %66
%68 = call i32 @snprintf(i8* %18, i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8 signext %65, i8 signext %67)
store i8* null, i8** %6
%69 = call i64 @strtol(i8* %18, i8** %6, i32 16)
%70 = load i8*, i8** %6
%71 = load i8, i8* %70
%72 = icmp eq i8 %71, 0
br i1 %72, label %73, label %56
73: ; preds = %58
%74 = sitofp i64 %69 to float
%75 = fdiv float %74, 2.550000e+02
%76 = getelementptr inbounds float, float* %1, i64 %62
store float %75, float* %76
%77 = add nsw i64 %45, 2
%78 = load i8*, i8** %3
%79 = getelementptr inbounds i8, i8* %78, i64 5
%80 = load i8, i8* %79
%81 = getelementptr inbounds i8, i8* %78, i64 6
%82 = load i8, i8* %81
%83 = call i32 @snprintf(i8* %18, i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8 signext %80, i8 signext %82)
store i8* null, i8** %6
%84 = call i64 @strtol(i8* %18, i8** %6, i32 16)
%85 = load i8*, i8** %6
%86 = load i8, i8* %85
%87 = icmp eq i8 %86, 0
br i1 %87, label %88, label %56
88: ; preds = %73
%89 = sitofp i64 %84 to float
%90 = fdiv float %89, 2.550000e+02
%91 = getelementptr inbounds float, float* %1, i64 %77
store float %90, float* %91
%92 = add nsw i64 %45, 3
br label %93
93: ; preds = %88, %56
%94 = phi i64 [ %57, %56 ], [ %92, %88 ]
%95 = trunc i64 %94 to i32
%96 = call i8* @xmalloc(i32 256)
store i8* %96, i8** %3
store i64 256, i64* %4
br label %97
97: ; preds = %29, %40, %37, %20, %20, %93
%98 = phi i32 [ %95, %93 ], [ %21, %20 ], [ %21, %20 ], [ %21, %37 ], [ %21, %40 ], [ %21, %29 ]
%99 = call i32 @getline(i8** %3, i64* %4, i32* %7)
%100 = icmp eq i32 %99, -1
br i1 %100, label %101, label %20
101: ; preds = %97, %11
%102 = call i64 @fclose(i32* %7)
%103 = icmp eq i64 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %106
106: ; preds = %101, %104
%107 = phi i32 [ -1, %104 ], [ 0, %101 ]
br label %108
108: ; preds = %106, %9
%109 = phi i32 [ %107, %106 ], [ -1, %9 ]
ret i32 %109
}