#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*/ free(char *);
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ puts(char *);
int readField(int, char **, char);
int sendRequest(int, char *, char *, int);
scalar_t__ strcmpi(char *, char *);
int strtol(char *, int /*<<< orphan*/ *, int);
int headsf(int sd, char argv[]) {
  int status = sendRequest(sd, "HEADS", argv, 1);
  if (status > 0) {
    char *buf = NULL;
    if ((status = readField(sd, &buf, ':')) > 0 && strcmpi("OK", buf) == 0) {
      char *id = NULL;
      char *from = NULL;
      char *subject = NULL;
      char *date = NULL;
      int n;
      free(buf);
      if ((status = readField(sd, &buf, ':')) > 0) {
        n = strtol(buf, NULL, 10);
        free(buf);
        printf("%-3s\t%-15s\t%-20s\t%s\t\n", "ID", "FROM", "DATE", "SUBJECT");
        puts("-----------------------------------------------------------------"
             "---------------");
        while (n-- && status > 0) {
          if ((status = readField(sd, &id, ':')) > 0 &&
              (status = readField(sd, &from, ':')) > 0 &&
              (status = readField(sd, &date, ':')) > 0 &&
              (status = readField(sd, &subject, ':')) > 0) {
            printf("%-3s\t%-15s\t%-20s\t%s\t\n", id, from, date, subject);
            free(id);
            free(from);
            free(date);
            free(subject);
          }
        }
        puts("");
      }
    } else {
      free(buf);
      if ((status = readField(sd, &buf, ':')) > 0) {
        printf("-%s\n", buf);
      }
      free(buf);
    }
    if (status < 0)
      status = -3;
  }
  return status;
}


x86 assembly (clang, -O0):
<headsf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xe73(%rip),%rsi
mov    $0x1,%ecx
call   1090 <sendRequest@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    13d3 <headsf+0x263>
movq   $0x0,-0x20(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    137c <headsf+0x20c>
mov    -0x20(%rbp),%rsi
lea    0xe32(%rip),%rdi
call   1070 <strcmpi@plt>
cmp    $0x0,%rax
jne    137c <headsf+0x20c>
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    1377 <headsf+0x207>
mov    -0x20(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %eax,-0x44(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
lea    0xdbb(%rip),%rdi
lea    0xdca(%rip),%rsi
lea    0xdc6(%rip),%rdx
lea    0xdc4(%rip),%rcx
lea    0xdc2(%rip),%r8
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdbc(%rip),%rdi
call   1040 <puts@plt>
mov    -0x44(%rbp),%ecx
mov    %ecx,%eax
add    $0xffffffff,%eax
mov    %eax,-0x44(%rbp)
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x45(%rbp)
je     12a0 <headsf+0x130>
cmpl   $0x0,-0x14(%rbp)
setg   %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    12b0 <headsf+0x140>
jmp    136b <headsf+0x1fb>
mov    -0x4(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    1366 <headsf+0x1f6>
mov    -0x4(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    1366 <headsf+0x1f6>
mov    -0x4(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    1366 <headsf+0x1f6>
mov    -0x4(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    1366 <headsf+0x1f6>
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x38(%rbp),%r8
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
jmp    127d <headsf+0x10d>
lea    0xcac(%rip),%rdi
call   1040 <puts@plt>
jmp    13bd <headsf+0x24d>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x3a,%edx
call   1060 <readField@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jle    13b4 <headsf+0x244>
mov    -0x20(%rbp),%rsi
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x14(%rbp)
jge    13ce <headsf+0x25e>
movl   $0xfffffffd,-0x14(%rbp)
jmp    13d3 <headsf+0x263>
mov    -0x14(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<headsf>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rdx
mov    %edi,%ebx
lea    0xe66(%rip),%rsi
mov    $0x1,%ecx
call   10a0 <sendRequest@plt>
test   %eax,%eax
jle    121b <headsf+0x9b>
movq   $0x0,(%rsp)
mov    %rsp,%rsi
mov    %ebx,%edi
mov    $0x3a,%edx
call   1070 <readField@plt>
test   %eax,%eax
jle    11d8 <headsf+0x58>
mov    (%rsp),%rsi
lea    0xe38(%rip),%rdi
call   1080 <strcmpi@plt>
test   %rax,%rax
je     122a <headsf+0xaa>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %rsp,%rsi
mov    %ebx,%edi
mov    $0x3a,%edx
call   1070 <readField@plt>
mov    %eax,%ebp
test   %eax,%eax
jle    1208 <headsf+0x88>
mov    (%rsp),%rsi
lea    0xe84(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
test   %ebp,%ebp
mov    $0xfffffffd,%eax
cmovns %ebp,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movq   $0x0,0x20(%rsp)
movq   $0x0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %rsp,%rsi
mov    %ebx,%edi
mov    $0x3a,%edx
call   1070 <readField@plt>
mov    %eax,%ebp
test   %eax,%eax
jle    1211 <headsf+0x91>
mov    (%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %eax,%r14d
mov    (%rsp),%rdi
call   1030 <free@plt>
lea    0xd7a(%rip),%rdi
lea    0xd89(%rip),%rsi
lea    0xd85(%rip),%rdx
lea    0xd83(%rip),%rcx
lea    0xd81(%rip),%r8
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd7b(%rip),%rdi
call   1050 <puts@plt>
test   %r14d,%r14d
je     1393 <headsf+0x213>
lea    0x20(%rsp),%r15
lea    0x18(%rsp),%r12
lea    0x8(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0x3a,%edx
call   1070 <readField@plt>
test   %eax,%eax
jle    1391 <headsf+0x211>
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x3a,%edx
call   1070 <readField@plt>
test   %eax,%eax
jle    1391 <headsf+0x211>
mov    %ebx,%edi
mov    %r13,%rsi
mov    $0x3a,%edx
call   1070 <readField@plt>
test   %eax,%eax
jle    1391 <headsf+0x211>
mov    %ebx,%edi
lea    0x10(%rsp),%rsi
mov    $0x3a,%edx
call   1070 <readField@plt>
mov    %eax,%ebp
test   %eax,%eax
jle    1393 <headsf+0x213>
add    $0xffffffff,%r14d
mov    0x20(%rsp),%rsi
mov    0x18(%rsp),%rdx
mov    0x8(%rsp),%rcx
mov    0x10(%rsp),%r8
lea    0xcb2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
test   %r14d,%r14d
jne    12e0 <headsf+0x160>
jmp    1393 <headsf+0x213>
mov    %eax,%ebp
mov    $0xa,%edi
call   1040 <putchar@plt>
jmp    1211 <headsf+0x91>

LLVM IR (-O0):
@.str = [6 x i8] c"HEADS\00"
@.str.1 = [3 x i8] c"OK\00"
@.str.2 = [22 x i8] c"%-3s\09%-15s\09%-20s\09%s\09\0A\00"
@.str.3 = [3 x i8] c"ID\00"
@.str.4 = [5 x i8] c"FROM\00"
@.str.5 = [5 x i8] c"DATE\00"
@.str.6 = [8 x i8] c"SUBJECT\00"
@.str.7 = [81 x i8] c"--------------------------------------------------------------------------------\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [5 x i8] c"-%s\0A\00"
define i32 @headsf(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%12 = load i32, i32* %3
%13 = load i8*, i8** %4
%14 = call i32 @sendRequest(i32 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %13, i32 1)
store i32 %14, i32* %5
%15 = load i32, i32* %5
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %98
17: ; preds = %2
store i8* null, i8** %6
%18 = load i32, i32* %3
%19 = call i32 @readField(i32 %18, i8** %6, i8 signext 58)
store i32 %19, i32* %5
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %81
21: ; preds = %17
%22 = load i8*, i8** %6
%23 = call i64 @strcmpi(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %81
25: ; preds = %21
store i8* null, i8** %7
store i8* null, i8** %8
store i8* null, i8** %9
store i8* null, i8** %10
%26 = load i8*, i8** %6
%27 = call i32 @free(i8* %26)
%28 = load i32, i32* %3
%29 = call i32 @readField(i32 %28, i8** %6, i8 signext 58)
store i32 %29, i32* %5
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %80
31: ; preds = %25
%32 = load i8*, i8** %6
%33 = call i32 @strtol(i8* %32, i32* null, i32 10)
store i32 %33, i32* %11
%34 = load i8*, i8** %6
%35 = call i32 @free(i8* %34)
%36 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%37 = call i32 @puts(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0))
br label %38
38: ; preds = %77, %31
%39 = load i32, i32* %11
%40 = add nsw i32 %39, -1
store i32 %40, i32* %11
%41 = icmp ne i32 %39, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i32, i32* %5
%44 = icmp sgt i32 %43, 0
br label %45
45: ; preds = %42, %38
%46 = phi i1 [ false, %38 ], [ %44, %42 ]
br i1 %46, label %47, label %78
47: ; preds = %45
%48 = load i32, i32* %3
%49 = call i32 @readField(i32 %48, i8** %7, i8 signext 58)
store i32 %49, i32* %5
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %77
51: ; preds = %47
%52 = load i32, i32* %3
%53 = call i32 @readField(i32 %52, i8** %8, i8 signext 58)
store i32 %53, i32* %5
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %77
55: ; preds = %51
%56 = load i32, i32* %3
%57 = call i32 @readField(i32 %56, i8** %10, i8 signext 58)
store i32 %57, i32* %5
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %77
59: ; preds = %55
%60 = load i32, i32* %3
%61 = call i32 @readField(i32 %60, i8** %9, i8 signext 58)
store i32 %61, i32* %5
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %77
63: ; preds = %59
%64 = load i8*, i8** %7
%65 = load i8*, i8** %8
%66 = load i8*, i8** %10
%67 = load i8*, i8** %9
%68 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %64, i8* %65, i8* %66, i8* %67)
%69 = load i8*, i8** %7
%70 = call i32 @free(i8* %69)
%71 = load i8*, i8** %8
%72 = call i32 @free(i8* %71)
%73 = load i8*, i8** %10
%74 = call i32 @free(i8* %73)
%75 = load i8*, i8** %9
%76 = call i32 @free(i8* %75)
br label %77
77: ; preds = %63, %59, %55, %51, %47
br label %38
78: ; preds = %45
%79 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %80
80: ; preds = %78, %25
br label %93
81: ; preds = %21, %17
%82 = load i8*, i8** %6
%83 = call i32 @free(i8* %82)
%84 = load i32, i32* %3
%85 = call i32 @readField(i32 %84, i8** %6, i8 signext 58)
store i32 %85, i32* %5
%86 = icmp sgt i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %81
%88 = load i8*, i8** %6
%89 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %87, %81
%91 = load i8*, i8** %6
%92 = call i32 @free(i8* %91)
br label %93
93: ; preds = %90, %80
%94 = load i32, i32* %5
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %93
store i32 -3, i32* %5
br label %97
97: ; preds = %96, %93
br label %98
98: ; preds = %97, %2
%99 = load i32, i32* %5
ret i32 %99
}

LLVM IR (-O2):
@.str = [6 x i8] c"HEADS\00"
@.str.1 = [3 x i8] c"OK\00"
@.str.2 = [22 x i8] c"%-3s\09%-15s\09%-20s\09%s\09\0A\00"
@.str.3 = [3 x i8] c"ID\00"
@.str.4 = [5 x i8] c"FROM\00"
@.str.5 = [5 x i8] c"DATE\00"
@.str.6 = [8 x i8] c"SUBJECT\00"
@.str.7 = [81 x i8] c"--------------------------------------------------------------------------------\00"
@.str.9 = [5 x i8] c"-%s\0A\00"
define i32 @headsf(i32 %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = tail call i32 @sendRequest(i32 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %1, i32 1)
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %84
10: ; preds = %2
%11 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%12 = call i32 @readField(i32 %0, i8** %3, i8 signext 58)
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %69
14: ; preds = %10
%15 = load i8*, i8** %3
%16 = call i64 @strcmpi(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %69
18: ; preds = %14
%19 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%20 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%21 = bitcast i8** %6 to i8*
store i8* null, i8** %6
%22 = bitcast i8** %7 to i8*
store i8* null, i8** %7
%23 = load i8*, i8** %3
%24 = call i32 @free(i8* %23)
%25 = call i32 @readField(i32 %0, i8** %3, i8 signext 58)
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %67
27: ; preds = %18
%28 = load i8*, i8** %3
%29 = call i32 @strtol(i8* nocapture %28, i32* null, i32 10)
%30 = load i8*, i8** %3
%31 = call i32 @free(i8* %30)
%32 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0))
%34 = icmp eq i32 %29, 0
br i1 %34, label %64, label %35
35: ; preds = %27, %49
%36 = phi i32 [ %37, %49 ], [ %29, %27 ]
%37 = add nsw i32 %36, -1
%38 = call i32 @readField(i32 %0, i8** %4, i8 signext 58)
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %64
40: ; preds = %35
%41 = call i32 @readField(i32 %0, i8** %5, i8 signext 58)
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %64
43: ; preds = %40
%44 = call i32 @readField(i32 %0, i8** %7, i8 signext 58)
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %64
46: ; preds = %43
%47 = call i32 @readField(i32 %0, i8** %6, i8 signext 58)
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %64
49: ; preds = %46
%50 = load i8*, i8** %4
%51 = load i8*, i8** %5
%52 = load i8*, i8** %7
%53 = load i8*, i8** %6
%54 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %50, i8* %51, i8* %52, i8* %53)
%55 = load i8*, i8** %4
%56 = call i32 @free(i8* %55)
%57 = load i8*, i8** %5
%58 = call i32 @free(i8* %57)
%59 = load i8*, i8** %7
%60 = call i32 @free(i8* %59)
%61 = load i8*, i8** %6
%62 = call i32 @free(i8* %61)
%63 = icmp eq i32 %37, 0
br i1 %63, label %64, label %35
64: ; preds = %35, %40, %43, %46, %49, %27
%65 = phi i32 [ %25, %27 ], [ %47, %46 ], [ %44, %43 ], [ %41, %40 ], [ %38, %35 ], [ %47, %49 ]
%66 = call i32 @putchar(i32 10)
br label %67
67: ; preds = %64, %18
%68 = phi i32 [ %65, %64 ], [ %25, %18 ]
br label %80
69: ; preds = %14, %10
%70 = load i8*, i8** %3
%71 = call i32 @free(i8* %70)
%72 = call i32 @readField(i32 %0, i8** %3, i8 signext 58)
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %69
%75 = load i8*, i8** %3
%76 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %74, %69
%78 = load i8*, i8** %3
%79 = call i32 @free(i8* %78)
br label %80
80: ; preds = %77, %67
%81 = phi i32 [ %68, %67 ], [ %72, %77 ]
%82 = icmp slt i32 %81, 0
%83 = select i1 %82, i32 -3, i32 %81
br label %84
84: ; preds = %80, %2
%85 = phi i32 [ %83, %80 ], [ %8, %2 ]
ret i32 %85
}