#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 timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
scalar_t__ FD_ISSET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
int O_NOCTTY;
int O_RDWR;
int /*<<< orphan*/ close(int);
int open(char *, int);
int /*<<< orphan*/ printf(char *, int);
scalar_t__ read(int, char *, int);
scalar_t__ select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                  int /*<<< orphan*/ *, struct timeval *);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
scalar_t__ write(int, char *, int);
void uartloopback_main(int argc, char *argv[]) {
  static char buf[16];
  int port;
  int ret = 0;
  for (port = 1; port < 5; port++) {
    snprintf(buf, 16, "/dev/ttyS%d", port);
    int fd = open(buf, O_RDWR | O_NOCTTY);
    if (fd < 0) {
      ret = 1;
    } else {
      char buf_tx[255] = "Hello";
      if (write(fd, buf_tx, 5) < 0) {
        ret = 1;
      }
      char buf_rx[255] = {
          0,
      };
      struct timeval tv;
      fd_set readfds;
      FD_ZERO(&readfds);
      FD_SET(fd, &readfds);
      tv.tv_sec = 1;
      tv.tv_usec = 0;
      if (select(fd + 1, &readfds, NULL, NULL, &tv) < 0) {
        ret = 1;
      } else if (FD_ISSET(fd, &readfds)) {
        if (read(fd, buf_rx, 5) < 0) {
          ret = 1;
        }
      }
      int i;
      for (i = 0; i < 5; i++) {
        if (buf_tx[i] != buf_rx[i]) {
          ret = 1;
        }
      }
      if (ret) {
        printf("UART%d LOOPBACK FAIL!!!\n", port);
        if (fd > 0) {
          close(fd);
        }
        ret = 0;
      } else {
        printf("UART%d LOOPBACK PASS!!!\n", port);
        close(fd);
      }
    }
  }
}


x86 assembly (clang, -O0):
<uartloopback_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jge    140b <uartloopback_main+0x25b>
mov    -0x14(%rbp),%ecx
lea    0x2eac(%rip),%rdi
mov    $0x10,%esi
lea    0xe10(%rip),%rdx
call   1060 <snprintf@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%esi
mov    0x2dd3(%rip),%rax
or     (%rax),%esi
lea    0x2e82(%rip),%rdi
call   10c0 <open@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    122c <uartloopback_main+0x7c>
movl   $0x1,-0x18(%rbp)
jmp    13f8 <uartloopback_main+0x248>
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1070 <memset@plt>
movb   $0x48,-0x120(%rbp)
movb   $0x65,-0x11f(%rbp)
movb   $0x6c,-0x11e(%rbp)
movb   $0x6c,-0x11d(%rbp)
movb   $0x6f,-0x11c(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x120(%rbp),%rsi
mov    $0x5,%edx
call   1030 <write@plt>
cmp    $0x0,%rax
jge    1287 <uartloopback_main+0xd7>
movl   $0x1,-0x18(%rbp)
lea    -0x220(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1070 <memset@plt>
lea    -0x234(%rbp),%rdi
call   10a0 <FD_ZERO@plt>
mov    -0x1c(%rbp),%edi
lea    -0x234(%rbp),%rsi
call   10d0 <FD_SET@plt>
movl   $0x1,-0x230(%rbp)
movq   $0x0,-0x228(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
lea    -0x234(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x230(%rbp),%r8
mov    %rcx,%rdx
call   10b0 <select@plt>
cmp    $0x0,%rax
jge    1300 <uartloopback_main+0x150>
movl   $0x1,-0x18(%rbp)
jmp    1348 <uartloopback_main+0x198>
mov    -0x1c(%rbp),%edi
lea    -0x234(%rbp),%rsi
call   1040 <FD_ISSET@plt>
cmp    $0x0,%rax
je     1343 <uartloopback_main+0x193>
mov    -0x1c(%rbp),%edi
lea    -0x220(%rbp),%rsi
mov    $0x5,%edx
call   1090 <read@plt>
cmp    $0x0,%rax
jge    133e <uartloopback_main+0x18e>
movl   $0x1,-0x18(%rbp)
jmp    1343 <uartloopback_main+0x193>
jmp    1348 <uartloopback_main+0x198>
movl   $0x0,-0x238(%rbp)
cmpl   $0x5,-0x238(%rbp)
jge    13a5 <uartloopback_main+0x1f5>
movslq -0x238(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
movslq -0x238(%rbp),%rcx
movsbl -0x220(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
je     138c <uartloopback_main+0x1dc>
movl   $0x1,-0x18(%rbp)
jmp    1391 <uartloopback_main+0x1e1>
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
jmp    1352 <uartloopback_main+0x1a2>
cmpl   $0x0,-0x18(%rbp)
je     13dc <uartloopback_main+0x22c>
mov    -0x14(%rbp),%esi
lea    0xc53(%rip),%rdi
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
jle    13d0 <uartloopback_main+0x220>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
movl   $0x0,-0x18(%rbp)
jmp    13f3 <uartloopback_main+0x243>
mov    -0x14(%rbp),%esi
lea    0xc3f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
jmp    13f8 <uartloopback_main+0x248>
jmp    13fd <uartloopback_main+0x24d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d0 <uartloopback_main+0x20>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uartloopback_main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x228,%rsp
xor    %r14d,%r14d
lea    0xc(%rsp),%rbx
mov    $0x1,%r13d
jmp    11fa <uartloopback_main+0x5a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xe4e(%rip),%rdi
mov    %r13d,%esi
call   1050 <printf@plt>
mov    %r15d,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x1,%r13d
mov    %eax,%r14d
cmp    $0x5,%r13d
je     1447 <uartloopback_main+0x2a7>
mov    %rbx,%rbp
lea    0x2e7c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x10,%esi
lea    0xded(%rip),%rdx
mov    %r13d,%ecx
call   1060 <snprintf@plt>
mov    0x2db6(%rip),%rax
mov    (%rax),%esi
mov    0x2dbd(%rip),%rax
or     (%rax),%esi
mov    %rbx,%rdi
mov    %rbp,%rbx
call   10b0 <open@plt>
mov    %eax,%r15d
mov    $0x1,%eax
test   %r15d,%r15d
js     11e9 <uartloopback_main+0x49>
xorps  %xmm0,%xmm0
movaps %xmm0,0x120(%rsp)
movups %xmm0,0x20f(%rsp)
movaps %xmm0,0x200(%rsp)
movaps %xmm0,0x1f0(%rsp)
movaps %xmm0,0x1e0(%rsp)
movaps %xmm0,0x1d0(%rsp)
movaps %xmm0,0x1c0(%rsp)
movaps %xmm0,0x1b0(%rsp)
movaps %xmm0,0x1a0(%rsp)
movaps %xmm0,0x190(%rsp)
movaps %xmm0,0x180(%rsp)
movaps %xmm0,0x170(%rsp)
movaps %xmm0,0x160(%rsp)
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x130(%rsp)
movl   $0x6c6c6548,0x120(%rsp)
48 65 6c 6c
movb   $0x6f,0x124(%rsp)
6f
mov    %r15d,%edi
lea    0x120(%rsp),%rsi
mov    $0x5,%edx
call   1030 <write@plt>
test   %rax,%rax
mov    $0x1,%ebp
cmovs  %ebp,%r14d
xorps  %xmm0,%xmm0
movups %xmm0,0x10f(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
mov    %rbx,%rdi
call   1090 <FD_ZERO@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
call   10c0 <FD_SET@plt>
movl   $0x1,0x10(%rsp)
movq   $0x0,0x18(%rsp)
lea    0x1(%r15),%edi
xor    %r12d,%r12d
mov    %rbx,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
lea    0x10(%rsp),%r8
call   10a0 <select@plt>
test   %rax,%rax
js     1400 <uartloopback_main+0x260>
mov    %r15d,%edi
mov    %rbx,%rsi
call   1040 <FD_ISSET@plt>
test   %rax,%rax
je     140d <uartloopback_main+0x26d>
mov    %r15d,%edi
lea    0x20(%rsp),%rsi
mov    $0x5,%edx
call   1080 <read@plt>
test   %rax,%rax
mov    $0x1,%eax
cmovs  %eax,%r14d
movzbl 0x20(%rsp),%eax
mov    0x21(%rsp),%r12d
mov    %r14d,%ebp
cmp    $0x6f6c6c65,%r12d
je     141e <uartloopback_main+0x27e>
jmp    142a <uartloopback_main+0x28a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
cmp    $0x6f6c6c65,%r12d
je     141e <uartloopback_main+0x27e>
jmp    142a <uartloopback_main+0x28a>
xor    %eax,%eax
mov    %r14d,%ebp
xor    %r12d,%r12d
cmp    $0x6f6c6c65,%r12d
jne    142a <uartloopback_main+0x28a>
cmp    $0x48,%al
jne    142a <uartloopback_main+0x28a>
test   %ebp,%ebp
je     11d0 <uartloopback_main+0x30>
lea    0xbdb(%rip),%rdi
mov    %r13d,%esi
call   1050 <printf@plt>
test   %r15d,%r15d
jne    11df <uartloopback_main+0x3f>
jmp    11e7 <uartloopback_main+0x47>
add    $0x228,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
@uartloopback_main.buf = internal global [16 x i8] zeroinitializer
@.str = [12 x i8] c"/dev/ttyS%d\00"
@O_RDWR = global i32 0
@O_NOCTTY = global i32 0
@.str.1 = [25 x i8] c"UART%d LOOPBACK FAIL!!!\0A\00"
@.str.2 = [25 x i8] c"UART%d LOOPBACK PASS!!!\0A\00"
define void @uartloopback_main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [255 x i8]
%9 = alloca [255 x i8]
%10 = alloca %struct.timeval
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 0, i32* %6
store i32 1, i32* %5
br label %13
13: ; preds = %103, %2
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 5
br i1 %15, label %16, label %106
16: ; preds = %13
%17 = load i32, i32* %5
%18 = call i32 @snprintf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @uartloopback_main.buf, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @O_RDWR
%20 = load i32, i32* @O_NOCTTY
%21 = or i32 %19, %20
%22 = call i32 @open(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @uartloopback_main.buf, i64 0, i64 0), i32 %21)
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %16
store i32 1, i32* %6
br label %102
26: ; preds = %16
%27 = bitcast [255 x i8]* %8 to i8*
%28 = bitcast i8* %27 to [255 x i8]*
%29 = getelementptr inbounds [255 x i8], [255 x i8]* %28, i32 0, i32 0
store i8 72, i8* %29
%30 = getelementptr inbounds [255 x i8], [255 x i8]* %28, i32 0, i32 1
store i8 101, i8* %30
%31 = getelementptr inbounds [255 x i8], [255 x i8]* %28, i32 0, i32 2
store i8 108, i8* %31
%32 = getelementptr inbounds [255 x i8], [255 x i8]* %28, i32 0, i32 3
store i8 108, i8* %32
%33 = getelementptr inbounds [255 x i8], [255 x i8]* %28, i32 0, i32 4
store i8 111, i8* %33
%34 = load i32, i32* %7
%35 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%36 = call i64 @write(i32 %34, i8* %35, i32 5)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %26
store i32 1, i32* %6
br label %39
39: ; preds = %38, %26
%40 = bitcast [255 x i8]* %9 to i8*
%41 = call i32 @FD_ZERO(i32* %11)
%42 = load i32, i32* %7
%43 = call i32 @FD_SET(i32 %42, i32* %11)
%44 = getelementptr inbounds %struct.timeval, %struct.timeval* %10, i32 0, i32 0
store i32 1, i32* %44
%45 = getelementptr inbounds %struct.timeval, %struct.timeval* %10, i32 0, i32 1
store i64 0, i64* %45
%46 = load i32, i32* %7
%47 = add nsw i32 %46, 1
%48 = call i64 @select(i32 %47, i32* %11, i32* null, i32* null, %struct.timeval* %10)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %39
store i32 1, i32* %6
br label %63
51: ; preds = %39
%52 = load i32, i32* %7
%53 = call i64 @FD_ISSET(i32 %52, i32* %11)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %62
55: ; preds = %51
%56 = load i32, i32* %7
%57 = getelementptr inbounds [255 x i8], [255 x i8]* %9, i64 0, i64 0
%58 = call i64 @read(i32 %56, i8* %57, i32 5)
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %55
store i32 1, i32* %6
br label %61
61: ; preds = %60, %55
br label %62
62: ; preds = %61, %51
br label %63
63: ; preds = %62, %50
store i32 0, i32* %12
br label %64
64: ; preds = %81, %63
%65 = load i32, i32* %12
%66 = icmp slt i32 %65, 5
br i1 %66, label %67, label %84
67: ; preds = %64
%68 = load i32, i32* %12
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = load i32, i32* %12
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [255 x i8], [255 x i8]* %9, i64 0, i64 %74
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %72, %77
br i1 %78, label %79, label %80
79: ; preds = %67
store i32 1, i32* %6
br label %80
80: ; preds = %79, %67
br label %81
81: ; preds = %80
%82 = load i32, i32* %12
%83 = add nsw i32 %82, 1
store i32 %83, i32* %12
br label %64
84: ; preds = %64
%85 = load i32, i32* %6
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %84
%88 = load i32, i32* %5
%89 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %7
%91 = icmp sgt i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %87
%93 = load i32, i32* %7
%94 = call i32 @close(i32 %93)
br label %95
95: ; preds = %92, %87
store i32 0, i32* %6
br label %101
96: ; preds = %84
%97 = load i32, i32* %5
%98 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %97)
%99 = load i32, i32* %7
%100 = call i32 @close(i32 %99)
br label %101
101: ; preds = %96, %95
br label %102
102: ; preds = %101, %25
br label %103
103: ; preds = %102
%104 = load i32, i32* %5
%105 = add nsw i32 %104, 1
store i32 %105, i32* %5
br label %13
106: ; preds = %13
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
@uartloopback_main.buf = internal global [16 x i8] zeroinitializer
@.str = [12 x i8] c"/dev/ttyS%d\00"
@O_RDWR = global i32 0
@O_NOCTTY = global i32 0
@.str.1 = [25 x i8] c"UART%d LOOPBACK FAIL!!!\0A\00"
@.str.2 = [25 x i8] c"UART%d LOOPBACK PASS!!!\0A\00"
define void @uartloopback_main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [255 x i8]
%4 = alloca [255 x i8]
%5 = alloca %struct.timeval
%6 = alloca i32
%7 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 1
%9 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 2
%10 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 3
%11 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 4
%12 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 0
%13 = bitcast %struct.timeval* %5 to i8*
%14 = bitcast i32* %6 to i8*
%15 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%16 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%17 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 1
%18 = bitcast i8* %17 to i32*
br label %19
19: ; preds = %2, %63
%20 = phi i32 [ 1, %2 ], [ %65, %63 ]
%21 = phi i32 [ 0, %2 ], [ %64, %63 ]
%22 = call i32 @snprintf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @uartloopback_main.buf, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %20)
%23 = load i32, i32* @O_RDWR
%24 = load i32, i32* @O_NOCTTY
%25 = or i32 %24, %23
%26 = call i32 @open(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @uartloopback_main.buf, i64 0, i64 0), i32 %25)
%27 = icmp slt i32 %26, 0
br i1 %27, label %63, label %28
28: ; preds = %19
store i8 72, i8* %7
store i8 101, i8* %8
store i8 108, i8* %9
store i8 108, i8* %10
store i8 111, i8* %11
%29 = call i64 @write(i32 %26, i8* %7, i32 5)
%30 = icmp slt i64 %29, 0
%31 = select i1 %30, i32 1, i32 %21
%32 = call i32 @FD_ZERO(i32* %6)
%33 = call i32 @FD_SET(i32 %26, i32* %6)
store i32 1, i32* %15
store i64 0, i64* %16
%34 = add nuw nsw i32 %26, 1
%35 = call i64 @select(i32 %34, i32* %6, i32* null, i32* null, %struct.timeval* %5)
%36 = icmp slt i64 %35, 0
br i1 %36, label %46, label %37
37: ; preds = %28
%38 = call i64 @FD_ISSET(i32 %26, i32* %6)
%39 = icmp eq i64 %38, 0
br i1 %39, label %46, label %40
40: ; preds = %37
%41 = call i64 @read(i32 %26, i8* %12, i32 5)
%42 = icmp slt i64 %41, 0
%43 = select i1 %42, i32 1, i32 %31
%44 = load i8, i8* %12
%45 = load i32, i32* %18
br label %46
46: ; preds = %40, %28, %37
%47 = phi i8 [ 0, %37 ], [ 0, %28 ], [ %44, %40 ]
%48 = phi i32 [ %31, %37 ], [ 1, %28 ], [ %43, %40 ]
%49 = phi i32 [ 0, %37 ], [ 0, %28 ], [ %45, %40 ]
%50 = icmp eq i8 %47, 72
%51 = icmp eq i32 %48, 0
%52 = icmp eq i32 %49, 1869376613
%53 = select i1 %52, i1 %50, i1 false
%54 = and i1 %53, %51
br i1 %54, label %58, label %55
55: ; preds = %46
%56 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%57 = icmp eq i32 %26, 0
br i1 %57, label %62, label %60
58: ; preds = %46
%59 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %20)
br label %60
60: ; preds = %55, %58
%61 = call i32 @close(i32 %26)
br label %62
62: ; preds = %60, %55
br label %63
63: ; preds = %19, %62
%64 = phi i32 [ 0, %62 ], [ 1, %19 ]
%65 = add nuw nsw i32 %20, 1
%66 = icmp eq i32 %65, 5
br i1 %66, label %67, label %19
67: ; preds = %63
ret void
}