#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*/ fd_set;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ FD_ISSET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
int /*<<< orphan*/ O_RDONLY;
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int main(void) {
  static const char hex_map[16] = "0123456789ABCDEF";
  int fds[16];
  int i, nfds;
  for (i = 0; i < 16; i++) {
    char name[] = {hex_map[i], '\0'};
    fds[i] = open(name, O_RDONLY);
    if (fds[i] < 0) {
      perror("open");
      return 1;
    }
  }
  nfds = fds[16 - 1] + 1;
  while (1) {
    static char buf[4096];
    fd_set rfds;
    int rc;
    FD_ZERO(&rfds);
    for (i = 0; i < 16; i++)
      FD_SET(fds[i], &rfds);
    rc = select(nfds, &rfds, NULL, NULL, NULL);
    if (rc < 0) {
      perror("select");
      return 1;
    }
    for (i = 0; i < 16; i++) {
      if (!FD_ISSET(fds[i], &rfds)) {
        printf("_:   ");
        continue;
      }
      printf("%X:", i);
      rc = read(fds[i], buf, sizeof(buf));
      if (rc < 0) {
        perror("read");
        return 1;
      }
      printf("%02d ", rc);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x10,-0x54(%rbp)
jge    120b <main+0x8b>
movslq -0x54(%rbp),%rcx
lea    0xe55(%rip),%rax
mov    (%rax,%rcx,1),%al
mov    %al,-0x5a(%rbp)
movb   $0x0,-0x59(%rbp)
lea    -0x5a(%rbp),%rdi
mov    0x2e28(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,%ecx
movslq -0x54(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,4)
movslq -0x54(%rbp),%rax
cmpl   $0x0,-0x50(%rbp,%rax,4)
jge    11f8 <main+0x78>
lea    0xe29(%rip),%rdi
call   1090 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1348 <main+0x1c8>
jmp    11fd <main+0x7d>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1196 <main+0x16>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
lea    -0x60(%rbp),%rdi
call   1060 <FD_ZERO@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x10,-0x54(%rbp)
jge    124d <main+0xcd>
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edi
lea    -0x60(%rbp),%rsi
call   10a0 <FD_SET@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1224 <main+0xa4>
mov    -0x58(%rbp),%edi
lea    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rdx
mov    %r8,%rcx
call   1070 <select@plt>
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jge    1289 <main+0x109>
lea    0xd9d(%rip),%rdi
call   1090 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1348 <main+0x1c8>
movl   $0x0,-0x54(%rbp)
cmpl   $0x10,-0x54(%rbp)
jge    1335 <main+0x1b5>
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edi
lea    -0x60(%rbp),%rsi
call   1030 <FD_ISSET@plt>
cmp    $0x0,%eax
jne    12c7 <main+0x147>
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1327 <main+0x1a7>
mov    -0x54(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edi
lea    0x2d99(%rip),%rsi
mov    $0x1000,%edx
call   1050 <read@plt>
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jge    1316 <main+0x196>
lea    0xd21(%rip),%rdi
call   1090 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1348 <main+0x1c8>
mov    -0x64(%rbp),%esi
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1290 <main+0x110>
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1214 <main+0x94>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
xor    %ebp,%ebp
lea    0xe56(%rip),%r14
mov    0x2e37(%rip),%r15
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
movzbl 0x0(%rbp,%r14,1),%eax
mov    %al,0xc(%rsp)
movb   $0x0,0xd(%rsp)
mov    (%r15),%esi
mov    %rbx,%rdi
call   1090 <open@plt>
mov    %eax,0x50(%rsp,%rbp,4)
test   %eax,%eax
js     140b <main+0x27b>
add    $0x1,%rbp
cmp    $0x10,%rbp
jne    11c0 <main+0x30>
mov    0x8c(%rsp),%eax
mov    %rax,0x90(%rsp)
add    $0x1,%eax
mov    %eax,0x4c(%rsp)
mov    0x50(%rsp),%eax
mov    %eax,0x48(%rsp)
mov    0x54(%rsp),%eax
mov    %eax,0x44(%rsp)
mov    0x58(%rsp),%eax
mov    %eax,0x40(%rsp)
mov    0x5c(%rsp),%eax
mov    %eax,0x3c(%rsp)
mov    0x60(%rsp),%eax
mov    %eax,0x38(%rsp)
mov    0x64(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x68(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x6c(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    0x70(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x74(%rsp),%eax
mov    %eax,0x24(%rsp)
mov    0x78(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x7c(%rsp),%eax
mov    %eax,0x1c(%rsp)
mov    0x80(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x84(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x88(%rsp),%eax
mov    %eax,0x10(%rsp)
lea    0xc(%rsp),%r14
lea    0xd8f(%rip),%r15
lea    0x2df6(%rip),%r12
lea    0xd8a(%rip),%r13
jmp    12ba <main+0x12a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1070 <FD_ZERO@plt>
mov    0x48(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x44(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x40(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x3c(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x38(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x34(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x30(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x2c(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x28(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x24(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x20(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x1c(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x18(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x14(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x10(%rsp),%edi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x90(%rsp),%rdi
mov    %r14,%rsi
call   10b0 <FD_SET@plt>
mov    0x4c(%rsp),%edi
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1080 <select@plt>
test   %eax,%eax
js     1437 <main+0x2a7>
xor    %ebp,%ebp
jmp    13cc <main+0x23c>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xc65(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    $0x10,%rbp
je     12b0 <main+0x120>
mov    0x50(%rsp,%rbp,4),%ebx
mov    %ebx,%edi
mov    %r14,%rsi
call   1040 <FD_ISSET@plt>
test   %eax,%eax
je     13b0 <main+0x220>
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x1000,%edx
call   1060 <read@plt>
test   %eax,%eax
js     1414 <main+0x284>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13be <main+0x22e>
lea    0xbfe(%rip),%rdi
jmp    141b <main+0x28b>
lea    0xc0b(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbd7(%rip),%rdi
jmp    141b <main+0x28b>

LLVM IR (-O0):
@main.hex_map = internal constant [16 x i8] c"0123456789ABCDEF"
@O_RDONLY = global i32 0
@.str = [5 x i8] c"open\00"
@main.buf = internal global [4096 x i8] zeroinitializer
@.str.1 = [7 x i8] c"select\00"
@.str.2 = [6 x i8] c"_: \00"
@.str.3 = [4 x i8] c"%X:\00"
@.str.4 = [5 x i8] c"read\00"
@.str.5 = [6 x i8] c"%02d \00"
@.str.6 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [2 x i8]
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %8
8: ; preds = %32, %0
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %35
11: ; preds = %8
%12 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [16 x i8], [16 x i8]* @main.hex_map, i64 0, i64 %14
%16 = load i8, i8* %15
store i8 %16, i8* %12
%17 = getelementptr inbounds i8, i8* %12, i64 1
store i8 0, i8* %17
%18 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%19 = load i32, i32* @O_RDONLY
%20 = call i32 @open(i8* %18, i32 %19)
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %22
store i32 %20, i32* %23
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %11
%30 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %93
31: ; preds = %11
br label %32
32: ; preds = %31
%33 = load i32, i32* %3
%34 = add nsw i32 %33, 1
store i32 %34, i32* %3
br label %8
35: ; preds = %8
%36 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 15
%37 = load i32, i32* %36
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %39
39: ; preds = %35, %91
%40 = call i32 @FD_ZERO(i32* %6)
store i32 0, i32* %3
br label %41
41: ; preds = %50, %39
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 16
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = call i32 @FD_SET(i32 %48, i32* %6)
br label %50
50: ; preds = %44
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %41
53: ; preds = %41
%54 = load i32, i32* %4
%55 = call i32 @select(i32 %54, i32* %6, i32* null, i32* null, i32* null)
store i32 %55, i32* %7
%56 = load i32, i32* %7
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %53
%59 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %93
60: ; preds = %53
store i32 0, i32* %3
br label %61
61: ; preds = %88, %60
%62 = load i32, i32* %3
%63 = icmp slt i32 %62, 16
br i1 %63, label %64, label %91
64: ; preds = %61
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = call i32 @FD_ISSET(i32 %68, i32* %6)
%70 = icmp ne i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %64
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %88
73: ; preds = %64
%74 = load i32, i32* %3
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = call i32 @read(i32 %79, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @main.buf, i64 0, i64 0), i32 4096)
store i32 %80, i32* %7
%81 = load i32, i32* %7
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %73
%84 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %1
br label %93
85: ; preds = %73
%86 = load i32, i32* %7
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %86)
br label %88
88: ; preds = %85, %71
%89 = load i32, i32* %3
%90 = add nsw i32 %89, 1
store i32 %90, i32* %3
br label %61
91: ; preds = %61
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %39
93: ; preds = %83, %58, %29
%94 = load i32, i32* %1
ret i32 %94
}

LLVM IR (-O2):
@main.hex_map = internal unnamed_addr constant [16 x i8] c"0123456789ABCDEF"
@O_RDONLY = global i32 0
@.str = [5 x i8] c"open\00"
@main.buf = internal global [4096 x i8] zeroinitializer
@.str.1 = [7 x i8] c"select\00"
@.str.2 = [6 x i8] c"_: \00"
@.str.3 = [4 x i8] c"%X:\00"
@.str.4 = [5 x i8] c"read\00"
@.str.5 = [6 x i8] c"%02d \00"
define i32 @main() {
%1 = alloca [16 x i32]
%2 = alloca [2 x i8]
%3 = alloca i32
%4 = bitcast [16 x i32]* %1 to i8*
%5 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 1
br label %7
7: ; preds = %0, %17
%8 = phi i64 [ 0, %0 ], [ %18, %17 ]
%9 = getelementptr inbounds [16 x i8], [16 x i8]* @main.hex_map, i64 0, i64 %8
%10 = load i8, i8* %9
store i8 %10, i8* %5
store i8 0, i8* %6
%11 = load i32, i32* @O_RDONLY
%12 = call i32 @open(i8* %5, i32 %11)
%13 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 %8
store i32 %12, i32* %13
%14 = icmp slt i32 %12, 0
br i1 %14, label %15, label %17
15: ; preds = %7
%16 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %98
17: ; preds = %7
%18 = add nuw nsw i64 %8, 1
%19 = icmp eq i64 %18, 16
br i1 %19, label %20, label %7
20: ; preds = %17
%21 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 15
%22 = load i32, i32* %21
%23 = add nsw i32 %22, 1
%24 = bitcast i32* %3 to i8*
%25 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 0
%26 = load i32, i32* %25
%27 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 1
%28 = load i32, i32* %27
%29 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 2
%30 = load i32, i32* %29
%31 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 3
%32 = load i32, i32* %31
%33 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 4
%34 = load i32, i32* %33
%35 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 5
%36 = load i32, i32* %35
%37 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 6
%38 = load i32, i32* %37
%39 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 7
%40 = load i32, i32* %39
%41 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 8
%42 = load i32, i32* %41
%43 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 9
%44 = load i32, i32* %43
%45 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 10
%46 = load i32, i32* %45
%47 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 11
%48 = load i32, i32* %47
%49 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 12
%50 = load i32, i32* %49
%51 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 13
%52 = load i32, i32* %51
%53 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 14
%54 = load i32, i32* %53
br label %55
55: ; preds = %96, %20
%56 = call i32 @FD_ZERO(i32* %3)
%57 = call i32 @FD_SET(i32 %26, i32* %3)
%58 = call i32 @FD_SET(i32 %28, i32* %3)
%59 = call i32 @FD_SET(i32 %30, i32* %3)
%60 = call i32 @FD_SET(i32 %32, i32* %3)
%61 = call i32 @FD_SET(i32 %34, i32* %3)
%62 = call i32 @FD_SET(i32 %36, i32* %3)
%63 = call i32 @FD_SET(i32 %38, i32* %3)
%64 = call i32 @FD_SET(i32 %40, i32* %3)
%65 = call i32 @FD_SET(i32 %42, i32* %3)
%66 = call i32 @FD_SET(i32 %44, i32* %3)
%67 = call i32 @FD_SET(i32 %46, i32* %3)
%68 = call i32 @FD_SET(i32 %48, i32* %3)
%69 = call i32 @FD_SET(i32 %50, i32* %3)
%70 = call i32 @FD_SET(i32 %52, i32* %3)
%71 = call i32 @FD_SET(i32 %54, i32* %3)
%72 = call i32 @FD_SET(i32 %22, i32* %3)
%73 = call i32 @select(i32 %23, i32* %3, i32* null, i32* null, i32* null)
%74 = icmp slt i32 %73, 0
br i1 %74, label %93, label %75
75: ; preds = %55, %90
%76 = phi i64 [ %91, %90 ], [ 0, %55 ]
%77 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = call i32 @FD_ISSET(i32 %78, i32* %3)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %75
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %90
83: ; preds = %75
%84 = trunc i64 %76 to i32
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %84)
%86 = call i32 @read(i32 %78, i8* getelementptr inbounds ([4096 x i8], [4096 x i8]* @main.buf, i64 0, i64 0), i32 4096)
%87 = icmp slt i32 %86, 0
br i1 %87, label %93, label %88
88: ; preds = %83
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %86)
br label %90
90: ; preds = %88, %81
%91 = add nuw nsw i64 %76, 1
%92 = icmp eq i64 %91, 16
br i1 %92, label %96, label %75
93: ; preds = %55, %83
%94 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %83 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), %55 ]
%95 = call i32 @perror(i8* %94)
br label %98
96: ; preds = %90
%97 = call i32 @putchar(i32 10)
br label %55
98: ; preds = %93, %15
ret i32 1
}