#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 */
struct cpu_map {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
struct cpu_map *cpu_map__default_new();
struct cpu_map *cpu_map__trim_new(int, int *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(int *);
int fscanf(int /*<<< orphan*/ *, char *, int *, char *);
int *realloc(int *, int);
struct cpu_map *cpu_map__read_all_cpu_map(void) {
  struct cpu_map *cpus = NULL;
  FILE *onlnf;
  int nr_cpus = 0;
  int *tmp_cpus = NULL, *tmp;
  int max_entries = 0;
  int n, cpu, prev;
  char sep;
  onlnf = fopen("/sys/devices/system/cpu/online", "r");
  if (!onlnf)
    return cpu_map__default_new();
  sep = 0;
  prev = -1;
  for (;;) {
    n = fscanf(onlnf, "%u%c", &cpu, &sep);
    if (n <= 0)
      break;
    if (prev >= 0) {
      int new_max = nr_cpus + cpu - prev - 1;
      if (new_max >= max_entries) {
        max_entries = new_max + 256 / 2;
        tmp = realloc(tmp_cpus, max_entries * sizeof(int));
        if (tmp == NULL)
          goto out_free_tmp;
        tmp_cpus = tmp;
      }
      while (++prev < cpu)
        tmp_cpus[nr_cpus++] = prev;
    }
    if (nr_cpus == max_entries) {
      max_entries += 256;
      tmp = realloc(tmp_cpus, max_entries * sizeof(int));
      if (tmp == NULL)
        goto out_free_tmp;
      tmp_cpus = tmp;
    }
    tmp_cpus[nr_cpus++] = cpu;
    if (n == 2 && sep == '-')
      prev = cpu;
    else
      prev = -1;
    if (n == 1 || sep == '\n')
      break;
  }
  if (nr_cpus > 0)
    cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
  else
    cpus = cpu_map__default_new();
out_free_tmp:
  free(tmp_cpus);
  fclose(onlnf);
  return cpus;
}


x86 assembly (clang, -O0):
<cpu_map__read_all_cpu_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x34(%rbp)
lea    0xe63(%rip),%rdi
lea    0xe7b(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11c8 <cpu_map__read_all_cpu_map+0x58>
mov    $0x0,%al
call   1070 <cpu_map__default_new@plt>
mov    %rax,-0x8(%rbp)
jmp    1386 <cpu_map__read_all_cpu_map+0x216>
movb   $0x0,-0x41(%rbp)
movl   $0xffffffff,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe43(%rip),%rsi
lea    -0x3c(%rbp),%rdx
lea    -0x41(%rbp),%rcx
call   1050 <fscanf@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jg     11fd <cpu_map__read_all_cpu_map+0x8d>
jmp    133d <cpu_map__read_all_cpu_map+0x1cd>
cmpl   $0x0,-0x40(%rbp)
jl     1295 <cpu_map__read_all_cpu_map+0x125>
mov    -0x1c(%rbp),%eax
add    -0x3c(%rbp),%eax
sub    -0x40(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x34(%rbp),%eax
jl     125c <cpu_map__read_all_cpu_map+0xec>
mov    -0x48(%rbp),%eax
add    $0x80,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rdi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%esi
call   1060 <realloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1254 <cpu_map__read_all_cpu_map+0xe4>
jmp    136c <cpu_map__read_all_cpu_map+0x1fc>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    1261 <cpu_map__read_all_cpu_map+0xf1>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
cmp    -0x3c(%rbp),%eax
jge    1290 <cpu_map__read_all_cpu_map+0x120>
mov    -0x40(%rbp),%edx
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x1c(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1261 <cpu_map__read_all_cpu_map+0xf1>
jmp    1295 <cpu_map__read_all_cpu_map+0x125>
mov    -0x1c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jne    12db <cpu_map__read_all_cpu_map+0x16b>
mov    -0x34(%rbp),%eax
add    $0x100,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rdi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%esi
call   1060 <realloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12d3 <cpu_map__read_all_cpu_map+0x163>
jmp    136c <cpu_map__read_all_cpu_map+0x1fc>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x3c(%rbp),%edx
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x1c(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
cmpl   $0x2,-0x38(%rbp)
jne    1315 <cpu_map__read_all_cpu_map+0x1a5>
movsbl -0x41(%rbp),%eax
cmp    $0x2d,%eax
jne    1315 <cpu_map__read_all_cpu_map+0x1a5>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    131c <cpu_map__read_all_cpu_map+0x1ac>
movl   $0xffffffff,-0x40(%rbp)
cmpl   $0x1,-0x38(%rbp)
je     1333 <cpu_map__read_all_cpu_map+0x1c3>
movsbl -0x41(%rbp),%eax
cmp    $0xa,%eax
jne    1338 <cpu_map__read_all_cpu_map+0x1c8>
jmp    133d <cpu_map__read_all_cpu_map+0x1cd>
jmp    11d3 <cpu_map__read_all_cpu_map+0x63>
cmpl   $0x0,-0x1c(%rbp)
jle    135c <cpu_map__read_all_cpu_map+0x1ec>
mov    -0x1c(%rbp),%edi
mov    -0x28(%rbp),%rsi
call   1090 <cpu_map__trim_new@plt>
mov    %rax,-0x10(%rbp)
jmp    1367 <cpu_map__read_all_cpu_map+0x1f7>
mov    $0x0,%al
call   1070 <cpu_map__default_new@plt>
mov    %rax,-0x10(%rbp)
jmp    136c <cpu_map__read_all_cpu_map+0x1fc>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_map__read_all_cpu_map>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xe7b(%rip),%rdi
lea    0xe93(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12d7 <cpu_map__read_all_cpu_map+0x167>
mov    %rax,%r14
movb   $0x0,0xb(%rsp)
mov    $0xffffffff,%r15d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r12d,%r12d
mov    %rax,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
lea    0xe57(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0xb(%rsp),%rcx
call   1050 <fscanf@plt>
test   %eax,%eax
jle    12c7 <cpu_map__read_all_cpu_map+0x157>
mov    %eax,%r13d
test   %r15d,%r15d
js     1265 <cpu_map__read_all_cpu_map+0xf5>
mov    0xc(%rsp),%ecx
mov    %r15d,%r14d
not    %r14d
add    %ebx,%r14d
add    %ecx,%r14d
cmp    %r12d,%r14d
jl     1225 <cpu_map__read_all_cpu_map+0xb5>
lea    0x200(,%r14,4),%esi
mov    %rbp,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     131c <cpu_map__read_all_cpu_map+0x1ac>
sub    $0xffffff80,%r14d
mov    0xc(%rsp),%ecx
mov    %rax,%rbp
mov    %r14d,%r12d
add    $0x1,%r15d
cmp    %ecx,%r15d
mov    0x10(%rsp),%r14
jge    1265 <cpu_map__read_all_cpu_map+0xf5>
movslq %ebx,%rax
lea    0x0(,%rax,4),%rax
add    %rbp,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15d,(%rax)
add    $0x1,%r15d
add    $0x4,%rax
add    $0x1,%ebx
cmp    0xc(%rsp),%r15d
jl     1250 <cpu_map__read_all_cpu_map+0xe0>
cmp    %r12d,%ebx
jne    128c <cpu_map__read_all_cpu_map+0x11c>
lea    0x400(,%rbx,4),%esi
mov    %rbp,%rdi
call   1060 <realloc@plt>
test   %rax,%rax
je     1318 <cpu_map__read_all_cpu_map+0x1a8>
lea    0x100(%rbx),%r12d
mov    %rax,%rbp
mov    0xc(%rsp),%eax
movslq %ebx,%rcx
mov    %eax,0x0(%rbp,%rcx,4)
mov    0xb(%rsp),%al
mov    $0xffffffff,%r15d
mov    $0xffffffff,%ecx
cmp    $0x2d,%al
jne    12ae <cpu_map__read_all_cpu_map+0x13e>
mov    0xc(%rsp),%ecx
add    $0x1,%ebx
cmp    $0x2,%r13d
cmove  %ecx,%r15d
cmp    $0x1,%r13d
je     12c7 <cpu_map__read_all_cpu_map+0x157>
cmp    $0xa,%al
jne    11c0 <cpu_map__read_all_cpu_map+0x50>
test   %ebx,%ebx
jle    12ec <cpu_map__read_all_cpu_map+0x17c>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1090 <cpu_map__trim_new@plt>
jmp    12f3 <cpu_map__read_all_cpu_map+0x183>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <cpu_map__default_new@plt>
xor    %eax,%eax
call   1070 <cpu_map__default_new@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ebx,%ebx
jmp    12f6 <cpu_map__read_all_cpu_map+0x186>
mov    0x10(%rsp),%r14
xor    %ebx,%ebx
jmp    12f6 <cpu_map__read_all_cpu_map+0x186>

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

LLVM IR (-O2):
%struct.cpu_map = type { i32 }
@.str = [31 x i8] c"/sys/devices/system/cpu/online\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [5 x i8] c"%u%c\00"
define %struct.cpu_map* @cpu_map__read_all_cpu_map() {
%1 = alloca i32
%2 = alloca i8
%3 = bitcast i32* %1 to i8*
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = tail call %struct.cpu_map* (...) @cpu_map__default_new()
br label %88
8: ; preds = %0
store i8 0, i8* %2
br label %9
9: ; preds = %59, %8
%10 = phi i32 [ 0, %8 ], [ %63, %59 ]
%11 = phi i32* [ null, %8 ], [ %60, %59 ]
%12 = phi i32 [ 0, %8 ], [ %61, %59 ]
%13 = phi i32 [ -1, %8 ], [ %71, %59 ]
%14 = call i32 @fscanf(i32* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i8* %2)
%15 = icmp slt i32 %14, 1
br i1 %15, label %75, label %16
16: ; preds = %9
%17 = icmp sgt i32 %13, -1
br i1 %17, label %18, label %49
18: ; preds = %16
%19 = load i32, i32* %1
%20 = xor i32 %13, -1
%21 = add i32 %10, %20
%22 = add i32 %21, %19
%23 = icmp slt i32 %22, %12
br i1 %23, label %31, label %24
24: ; preds = %18
%25 = add nsw i32 %22, 128
%26 = shl i32 %25, 2
%27 = call i32* @realloc(i32* %11, i32 %26)
%28 = icmp eq i32* %27, null
br i1 %28, label %83, label %29
29: ; preds = %24
%30 = load i32, i32* %1
br label %31
31: ; preds = %29, %18
%32 = phi i32 [ %19, %18 ], [ %30, %29 ]
%33 = phi i32* [ %11, %18 ], [ %27, %29 ]
%34 = phi i32 [ %12, %18 ], [ %25, %29 ]
%35 = add nuw nsw i32 %13, 1
%36 = icmp slt i32 %35, %32
br i1 %36, label %37, label %49
37: ; preds = %31
%38 = sext i32 %10 to i64
br label %39
39: ; preds = %37, %39
%40 = phi i64 [ %38, %37 ], [ %42, %39 ]
%41 = phi i32 [ %35, %37 ], [ %44, %39 ]
%42 = add nsw i64 %40, 1
%43 = getelementptr inbounds i32, i32* %33, i64 %40
store i32 %41, i32* %43
%44 = add nsw i32 %41, 1
%45 = load i32, i32* %1
%46 = icmp slt i32 %44, %45
br i1 %46, label %39, label %47
47: ; preds = %39
%48 = trunc i64 %42 to i32
br label %49
49: ; preds = %47, %31, %16
%50 = phi i32 [ %10, %16 ], [ %10, %31 ], [ %48, %47 ]
%51 = phi i32* [ %11, %16 ], [ %33, %31 ], [ %33, %47 ]
%52 = phi i32 [ %12, %16 ], [ %34, %31 ], [ %34, %47 ]
%53 = icmp eq i32 %50, %52
br i1 %53, label %54, label %59
54: ; preds = %49
%55 = add nsw i32 %50, 256
%56 = shl i32 %55, 2
%57 = call i32* @realloc(i32* %51, i32 %56)
%58 = icmp eq i32* %57, null
br i1 %58, label %83, label %59
59: ; preds = %54, %49
%60 = phi i32* [ %51, %49 ], [ %57, %54 ]
%61 = phi i32 [ %52, %49 ], [ %55, %54 ]
%62 = load i32, i32* %1
%63 = add nsw i32 %50, 1
%64 = sext i32 %50 to i64
%65 = getelementptr inbounds i32, i32* %60, i64 %64
store i32 %62, i32* %65
%66 = icmp eq i32 %14, 2
%67 = load i8, i8* %2
%68 = icmp eq i8 %67, 45
%69 = select i1 %66, i1 %68, i1 false
%70 = load i32, i32* %1
%71 = select i1 %69, i32 %70, i32 -1
%72 = icmp eq i32 %14, 1
%73 = icmp eq i8 %67, 10
%74 = select i1 %72, i1 true, i1 %73
br i1 %74, label %75, label %9
75: ; preds = %59, %9
%76 = phi i32 [ %10, %9 ], [ %63, %59 ]
%77 = phi i32* [ %11, %9 ], [ %60, %59 ]
%78 = icmp sgt i32 %76, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call %struct.cpu_map* @cpu_map__trim_new(i32 %76, i32* %77)
br label %83
81: ; preds = %75
%82 = call %struct.cpu_map* (...) @cpu_map__default_new()
br label %83
83: ; preds = %24, %54, %79, %81
%84 = phi i32* [ %77, %79 ], [ %77, %81 ], [ %11, %24 ], [ %51, %54 ]
%85 = phi %struct.cpu_map* [ %80, %79 ], [ %82, %81 ], [ null, %54 ], [ null, %24 ]
%86 = call i32 @free(i32* %84)
%87 = call i32 @fclose(i32* %4)
br label %88
88: ; preds = %83, %6
%89 = phi %struct.cpu_map* [ %85, %83 ], [ %7, %6 ]
ret %struct.cpu_map* %89
}