#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*/ uint32_t;
typedef unsigned long uint16_t;
typedef int /*<<< orphan*/ off_t;
typedef int /*<<< orphan*/ c;

/* Variables and functions */
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned long);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
scalar_t__ get_address(int const, int /*<<< orphan*/ *);
scalar_t__ get_count(int const, unsigned long *);
int /*<<< orphan*/ get_ela(int const);
scalar_t__ get_start(int const);
scalar_t__ get_type(int const, char *);
int /*<<< orphan*/ isspace(char);
int /*<<< orphan*/ lseek(int const, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, unsigned long);
int read(int const, char *, int);
int /*<<< orphan*/ stderr;
int analyze(const int fd) {
  static unsigned long rec = 0;
  static unsigned long total = 0;
  if (get_start(fd)) {
    fprintf(stderr, "Error: expected start @ rec %u\n", rec);
    return -1;
  }
  uint16_t count;
  if (get_count(fd, &count)) {
    fprintf(stderr, "Error: unexpected byte count @ rec %u\n", rec);
    return -1;
  }
  uint32_t address;
  if (get_address(fd, &address)) {
    fprintf(stderr, "Error: unexpected address @ rec %u\n", rec);
    return -1;
  }
  char type;
  if (get_type(fd, &type)) {
    fprintf(stderr, "Error: unexpected record type @ rec %u\n", rec);
    return -1;
  }
  switch (type) {
  case '0':
    total += count;
    break;
  case '1':
    printf("%lu bytes\n", total);
    return 1;
  case '2':
    fputs("Warning: extended segment address", stderr);
    break;
  case '3':
    fputs("Warning: start segment address", stderr);
    break;
  case '4':
    if (get_ela(fd)) {
      fprintf(stderr, "Error: unable to parse ELA @ %u\n", rec);
      return -1;
    }
    off_t foo = lseek(fd, -4, SEEK_CUR);
    break;
  case '5':
    break;
  default:
    fprintf(stderr, "Error: unexpected record type @ rec %u\n", rec);
    return -1;
  }
  lseek(fd, count * 2 + 2, SEEK_CUR);
  char c;
  while (read(fd, &c, sizeof(c)) == sizeof(c)) {
    if (!isspace(c)) {
      lseek(fd, -1, SEEK_CUR);
      break;
    }
  }
  rec++;
  return 0;
}


x86 assembly (clang, -O0):
<analyze>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1070 <get_start@plt>
cmp    $0x0,%rax
je     11f5 <analyze+0x45>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
mov    0x2ea3(%rip),%rdx
lea    0xe34(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    -0x8(%rbp),%edi
lea    -0x10(%rbp),%rsi
call   10d0 <get_count@plt>
cmp    $0x0,%rax
je     1233 <analyze+0x83>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
mov    0x2e65(%rip),%rdx
lea    0xe16(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    -0x8(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1030 <get_address@plt>
cmp    $0x0,%rax
je     1271 <analyze+0xc1>
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
mov    0x2e27(%rip),%rdx
lea    0xdff(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    -0x8(%rbp),%edi
lea    -0x15(%rbp),%rsi
call   10c0 <get_type@plt>
cmp    $0x0,%rax
je     12af <analyze+0xff>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
mov    0x2de9(%rip),%rdx
lea    0xde5(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
movsbl -0x15(%rbp),%eax
add    $0xffffffd0,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5,%eax
ja     139f <analyze+0x1ef>
mov    -0x28(%rbp),%rax
lea    0xd30(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
add    0x2da4(%rip),%rax
mov    %rax,0x2d9d(%rip)
jmp    13c7 <analyze+0x217>
mov    0x2d91(%rip),%rsi
lea    0xdad(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    0x2cc2(%rip),%rax
mov    (%rax),%esi
lea    0xd97(%rip),%rdi
call   1060 <fputs@plt>
jmp    13c7 <analyze+0x217>
mov    0x2ca8(%rip),%rax
mov    (%rax),%esi
lea    0xd9f(%rip),%rdi
call   1060 <fputs@plt>
jmp    13c7 <analyze+0x217>
mov    -0x8(%rbp),%edi
call   10a0 <get_ela@plt>
cmp    $0x0,%eax
je     137c <analyze+0x1cc>
mov    0x2c7d(%rip),%rax
mov    (%rax),%edi
mov    0x2d1c(%rip),%rdx
lea    0xd8c(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    -0x8(%rbp),%edi
mov    0x2c62(%rip),%rax
mov    (%rax),%edx
mov    $0xfffffffc,%esi
call   1050 <lseek@plt>
mov    %eax,-0x1c(%rbp)
jmp    13c7 <analyze+0x217>
jmp    13c7 <analyze+0x217>
mov    0x2c32(%rip),%rax
mov    (%rax),%edi
mov    0x2cd1(%rip),%rdx
lea    0xccd(%rip),%rsi
call   10b0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    144e <analyze+0x29e>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
add    $0x2,%rax
mov    %eax,%esi
mov    0x2c09(%rip),%rax
mov    (%rax),%edx
call   1050 <lseek@plt>
mov    -0x8(%rbp),%edi
lea    -0x1d(%rbp),%rsi
mov    $0x1,%edx
call   1090 <read@plt>
cltq
cmp    $0x1,%rax
jne    1435 <analyze+0x285>
movsbl -0x1d(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%eax
jne    1430 <analyze+0x280>
mov    -0x8(%rbp),%edi
mov    0x2bc9(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%esi
call   1050 <lseek@plt>
jmp    1435 <analyze+0x285>
jmp    13e6 <analyze+0x236>
mov    0x2c44(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2c39(%rip)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<analyze>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %edi,%ebx
call   1070 <get_start@plt>
test   %rax,%rax
je     11de <analyze+0x2e>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
mov    0x2eab(%rip),%rdx
lea    0xe3c(%rip),%rsi
jmp    125a <analyze+0xaa>
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
call   10d0 <get_count@plt>
test   %rax,%rax
je     1208 <analyze+0x58>
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
mov    0x2e81(%rip),%rdx
lea    0xe32(%rip),%rsi
jmp    125a <analyze+0xaa>
lea    0x1c(%rsp),%rsi
mov    %ebx,%edi
call   1030 <get_address@plt>
test   %rax,%rax
je     1232 <analyze+0x82>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
mov    0x2e57(%rip),%rdx
lea    0xe2f(%rip),%rsi
jmp    125a <analyze+0xaa>
lea    0xf(%rsp),%rsi
mov    %ebx,%edi
call   10c0 <get_type@plt>
test   %rax,%rax
je     126e <analyze+0xbe>
mov    0x2d8e(%rip),%rax
mov    (%rax),%edi
mov    0x2e2d(%rip),%rdx
lea    0xe29(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
movsbl 0xf(%rsp),%eax
add    $0xffffffd0,%eax
cmp    $0x5,%eax
ja     1243 <analyze+0x93>
lea    0xd7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x10(%rsp),%rax
add    %rax,0x2df1(%rip)
jmp    1320 <analyze+0x170>
mov    0x2de5(%rip),%rsi
lea    0xe01(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%eax
jmp    1264 <analyze+0xb4>
mov    0x2d1b(%rip),%rax
mov    (%rax),%esi
lea    0xdf0(%rip),%rdi
call   1060 <fputs@plt>
jmp    1320 <analyze+0x170>
mov    0x2d04(%rip),%rax
mov    (%rax),%esi
lea    0xdfb(%rip),%rdi
call   1060 <fputs@plt>
jmp    1320 <analyze+0x170>
mov    %ebx,%edi
call   10a0 <get_ela@plt>
test   %eax,%eax
je     130b <analyze+0x15b>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
mov    0x2d81(%rip),%rdx
lea    0xdf1(%rip),%rsi
jmp    125a <analyze+0xaa>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    $0xfffffffc,%esi
call   1050 <lseek@plt>
mov    0x10(%rsp),%eax
lea    (%rax,%rax,1),%esi
add    $0x2,%esi
mov    0x2cb7(%rip),%r15
mov    (%r15),%edx
mov    %ebx,%edi
call   1050 <lseek@plt>
lea    0xe(%rsp),%r14
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1090 <read@plt>
cmp    $0x1,%eax
jne    1371 <analyze+0x1c1>
movsbl 0xe(%rsp),%edi
call   1080 <isspace@plt>
test   %eax,%eax
jne    1340 <analyze+0x190>
mov    (%r15),%edx
mov    %ebx,%edi
mov    $0xffffffff,%esi
call   1050 <lseek@plt>
addq   $0x1,0x2d07(%rip)
01
xor    %eax,%eax
jmp    1264 <analyze+0xb4>

LLVM IR (-O0):
@analyze.rec = internal global i64 0
@analyze.total = internal global i64 0
@stderr = global i32 0
@.str = [32 x i8] c"Error: expected start @ rec %u\0A\00"
@.str.1 = [39 x i8] c"Error: unexpected byte count @ rec %u\0A\00"
@.str.2 = [36 x i8] c"Error: unexpected address @ rec %u\0A\00"
@.str.3 = [40 x i8] c"Error: unexpected record type @ rec %u\0A\00"
@.str.4 = [11 x i8] c"%lu bytes\0A\00"
@.str.5 = [34 x i8] c"Warning: extended segment address\00"
@.str.6 = [31 x i8] c"Warning: start segment address\00"
@.str.7 = [33 x i8] c"Error: unable to parse ELA @ %u\0A\00"
@SEEK_CUR = global i32 0
define i32 @analyze(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
%8 = alloca i8
store i32 %0, i32* %3
%9 = load i32, i32* %3
%10 = call i64 @get_start(i32 %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %1
%13 = load i32, i32* @stderr
%14 = load i64, i64* @analyze.rec
%15 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i64 %14)
store i32 -1, i32* %2
br label %98
16: ; preds = %1
%17 = load i32, i32* %3
%18 = call i64 @get_count(i32 %17, i64* %4)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, i32* @stderr
%22 = load i64, i64* @analyze.rec
%23 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i64 %22)
store i32 -1, i32* %2
br label %98
24: ; preds = %16
%25 = load i32, i32* %3
%26 = call i64 @get_address(i32 %25, i32* %5)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i32, i32* @stderr
%30 = load i64, i64* @analyze.rec
%31 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i64 %30)
store i32 -1, i32* %2
br label %98
32: ; preds = %24
%33 = load i32, i32* %3
%34 = call i64 @get_type(i32 %33, i8* %6)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = load i32, i32* @stderr
%38 = load i64, i64* @analyze.rec
%39 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i64 %38)
store i32 -1, i32* %2
br label %98
40: ; preds = %32
%41 = load i8, i8* %6
%42 = sext i8 %41 to i32
switch i32 %42, label %69 [
i32 48, label %43
i32 49, label %47
i32 50, label %50
i32 51, label %53
i32 52, label %56
i32 53, label %68
]
43: ; preds = %40
%44 = load i64, i64* %4
%45 = load i64, i64* @analyze.total
%46 = add i64 %45, %44
store i64 %46, i64* @analyze.total
br label %73
47: ; preds = %40
%48 = load i64, i64* @analyze.total
%49 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %48)
store i32 1, i32* %2
br label %98
50: ; preds = %40
%51 = load i32, i32* @stderr
%52 = call i32 @fputs(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 %51)
br label %73
53: ; preds = %40
%54 = load i32, i32* @stderr
%55 = call i32 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %54)
br label %73
56: ; preds = %40
%57 = load i32, i32* %3
%58 = call i32 @get_ela(i32 %57)
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = load i64, i64* @analyze.rec
%63 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i64 %62)
store i32 -1, i32* %2
br label %98
64: ; preds = %56
%65 = load i32, i32* %3
%66 = load i32, i32* @SEEK_CUR
%67 = call i32 @lseek(i32 %65, i32 -4, i32 %66)
store i32 %67, i32* %7
br label %73
68: ; preds = %40
br label %73
69: ; preds = %40
%70 = load i32, i32* @stderr
%71 = load i64, i64* @analyze.rec
%72 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i64 %71)
store i32 -1, i32* %2
br label %98
73: ; preds = %68, %64, %53, %50, %43
%74 = load i32, i32* %3
%75 = load i64, i64* %4
%76 = mul i64 %75, 2
%77 = add i64 %76, 2
%78 = trunc i64 %77 to i32
%79 = load i32, i32* @SEEK_CUR
%80 = call i32 @lseek(i32 %74, i32 %78, i32 %79)
br label %81
81: ; preds = %94, %73
%82 = load i32, i32* %3
%83 = call i32 @read(i32 %82, i8* %8, i32 1)
%84 = sext i32 %83 to i64
%85 = icmp eq i64 %84, 1
br i1 %85, label %86, label %95
86: ; preds = %81
%87 = load i8, i8* %8
%88 = call i32 @isspace(i8 signext %87)
%89 = icmp ne i32 %88, 0
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = load i32, i32* %3
%92 = load i32, i32* @SEEK_CUR
%93 = call i32 @lseek(i32 %91, i32 -1, i32 %92)
br label %95
94: ; preds = %86
br label %81
95: ; preds = %90, %81
%96 = load i64, i64* @analyze.rec
%97 = add i64 %96, 1
store i64 %97, i64* @analyze.rec
store i32 0, i32* %2
br label %98
98: ; preds = %95, %69, %60, %47, %36, %28, %20, %12
%99 = load i32, i32* %2
ret i32 %99
}

LLVM IR (-O2):
@analyze.rec = internal unnamed_addr global i64 0
@analyze.total = internal unnamed_addr global i64 0
@stderr = global i32 0
@.str = [32 x i8] c"Error: expected start @ rec %u\0A\00"
@.str.1 = [39 x i8] c"Error: unexpected byte count @ rec %u\0A\00"
@.str.2 = [36 x i8] c"Error: unexpected address @ rec %u\0A\00"
@.str.3 = [40 x i8] c"Error: unexpected record type @ rec %u\0A\00"
@.str.4 = [11 x i8] c"%lu bytes\0A\00"
@.str.5 = [34 x i8] c"Warning: extended segment address\00"
@.str.6 = [31 x i8] c"Warning: start segment address\00"
@.str.7 = [33 x i8] c"Error: unable to parse ELA @ %u\0A\00"
@SEEK_CUR = global i32 0
define i32 @analyze(i32 %0) {
%2 = alloca i64
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8
%6 = tail call i64 @get_start(i32 %0)
%7 = icmp eq i64 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = load i64, i64* @analyze.rec
%11 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i64 %10)
br label %91
12: ; preds = %1
%13 = bitcast i64* %2 to i8*
%14 = call i64 @get_count(i32 %0, i64* %2)
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i32, i32* @stderr
%18 = load i64, i64* @analyze.rec
%19 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i64 %18)
br label %89
20: ; preds = %12
%21 = bitcast i32* %3 to i8*
%22 = call i64 @get_address(i32 %0, i32* %3)
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load i32, i32* @stderr
%26 = load i64, i64* @analyze.rec
%27 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i64 %26)
br label %87
28: ; preds = %20
%29 = call i64 @get_type(i32 %0, i8* %4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = load i32, i32* @stderr
%33 = load i64, i64* @analyze.rec
%34 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i64 %33)
br label %85
35: ; preds = %28
%36 = load i8, i8* %4
%37 = sext i8 %36 to i32
switch i32 %37, label %61 [
i32 48, label %38
i32 49, label %42
i32 50, label %45
i32 51, label %48
i32 52, label %51
i32 53, label %65
]
38: ; preds = %35
%39 = load i64, i64* %2
%40 = load i64, i64* @analyze.total
%41 = add i64 %40, %39
store i64 %41, i64* @analyze.total
br label %65
42: ; preds = %35
%43 = load i64, i64* @analyze.total
%44 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %43)
br label %85
45: ; preds = %35
%46 = load i32, i32* @stderr
%47 = call i32 @fputs(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 %46)
br label %65
48: ; preds = %35
%49 = load i32, i32* @stderr
%50 = call i32 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %49)
br label %65
51: ; preds = %35
%52 = call i32 @get_ela(i32 %0)
%53 = icmp eq i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %51
%55 = load i32, i32* @stderr
%56 = load i64, i64* @analyze.rec
%57 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i64 %56)
br label %85
58: ; preds = %51
%59 = load i32, i32* @SEEK_CUR
%60 = call i32 @lseek(i32 %0, i32 -4, i32 %59)
br label %65
61: ; preds = %35
%62 = load i32, i32* @stderr
%63 = load i64, i64* @analyze.rec
%64 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i64 %63)
br label %85
65: ; preds = %35, %58, %48, %45, %38
%66 = load i64, i64* %2
%67 = trunc i64 %66 to i32
%68 = shl i32 %67, 1
%69 = add i32 %68, 2
%70 = load i32, i32* @SEEK_CUR
%71 = call i32 @lseek(i32 %0, i32 %69, i32 %70)
br label %72
72: ; preds = %75, %65
%73 = call i32 @read(i32 %0, i8* %5, i32 1)
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %82
75: ; preds = %72
%76 = load i8, i8* %5
%77 = call i32 @isspace(i8 signext %76)
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %72
79: ; preds = %75
%80 = load i32, i32* @SEEK_CUR
%81 = call i32 @lseek(i32 %0, i32 -1, i32 %80)
br label %82
82: ; preds = %72, %79
%83 = load i64, i64* @analyze.rec
%84 = add i64 %83, 1
store i64 %84, i64* @analyze.rec
br label %85
85: ; preds = %82, %61, %54, %42, %31
%86 = phi i32 [ -1, %31 ], [ -1, %61 ], [ 0, %82 ], [ -1, %54 ], [ 1, %42 ]
br label %87
87: ; preds = %85, %24
%88 = phi i32 [ -1, %24 ], [ %86, %85 ]
br label %89
89: ; preds = %87, %16
%90 = phi i32 [ -1, %16 ], [ %88, %87 ]
br label %91
91: ; preds = %89, %8
%92 = phi i32 [ -1, %8 ], [ %90, %89 ]
ret i32 %92
}