#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 scalar_t__ ssize_t;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
scalar_t__ getline(char **, size_t *, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(unsigned int);
int sscanf(char *, char *, unsigned int *, unsigned int *, unsigned int *,
           unsigned int *, unsigned int *, unsigned int *, unsigned int *,
           unsigned int *, unsigned int *, unsigned int *, unsigned int *,
           unsigned int *, unsigned int *, unsigned int *, unsigned int *,
           unsigned int *, unsigned int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  char *line = NULL;
  size_t mem = 0;
  unsigned addr = 0;
  int line_num = 0;
  unsigned l[16];
  for (;;) {
    ssize_t r = getline(&line, &mem, stdin);
    if (r < 0)
      return -1;
    if (r == 0)
      return 0;
    int f =
        sscanf(line, "%X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X",
               &addr, l, l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 7, l + 8,
               l + 9, l + 10, l + 11, l + 12, l + 13, l + 14, l + 15);
    if (f != 17) {
      fprintf(stderr, "%d: not enough fields matched", line_num);
    }
    size_t i;
    for (i = 0; i < 16; i++) {
      putchar(l[i]);
    }
    line_num++;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
mov    0x2e61(%rip),%rax
mov    (%rax),%edx
lea    -0x40(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   1060 <getline@plt>
mov    %rax,-0x98(%rbp)
cmpq   $0x0,-0x98(%rbp)
jge    11b7 <main+0x77>
movl   $0xffffffff,-0x2c(%rbp)
jmp    1393 <main+0x253>
cmpq   $0x0,-0x98(%rbp)
jne    11d1 <main+0x91>
movl   $0x0,-0x2c(%rbp)
jmp    1393 <main+0x253>
mov    -0x40(%rbp),%rdi
lea    -0x90(%rbp),%rcx
lea    -0x90(%rbp),%r8
add    $0x4,%r8
lea    -0x90(%rbp),%r9
add    $0x8,%r9
lea    -0x90(%rbp),%rax
add    $0xc,%rax
lea    -0x90(%rbp),%rdx
add    $0x10,%rdx
mov    %rdx,-0xd0(%rbp)
lea    -0x90(%rbp),%rdx
add    $0x14,%rdx
mov    %rdx,-0xc8(%rbp)
lea    -0x90(%rbp),%rdx
add    $0x18,%rdx
mov    %rdx,-0xc0(%rbp)
lea    -0x90(%rbp),%rdx
add    $0x1c,%rdx
mov    %rdx,-0xb8(%rbp)
lea    -0x90(%rbp),%r13
add    $0x20,%r13
lea    -0x90(%rbp),%r12
add    $0x24,%r12
lea    -0x90(%rbp),%r15
add    $0x28,%r15
lea    -0x90(%rbp),%r14
add    $0x2c,%r14
lea    -0x90(%rbp),%rbx
add    $0x30,%rbx
lea    -0x90(%rbp),%r11
add    $0x34,%r11
lea    -0x90(%rbp),%r10
add    $0x38,%r10
lea    -0x90(%rbp),%rdx
add    $0x3c,%rdx
mov    %rdx,-0xb0(%rbp)
lea    0xd55(%rip),%rsi
lea    -0x4c(%rbp),%rdx
mov    %rax,(%rsp)
mov    -0xd0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0xc8(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0xc0(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0xb8(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0xb0(%rbp),%rax
mov    %r13,0x28(%rsp)
mov    %r12,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %r14,0x40(%rsp)
mov    %rbx,0x48(%rsp)
mov    %r11,0x50(%rsp)
mov    %r10,0x58(%rsp)
mov    %rax,0x60(%rsp)
call   1050 <sscanf@plt>
mov    %eax,-0x9c(%rbp)
cmpl   $0x11,-0x9c(%rbp)
je     1342 <main+0x202>
mov    0x2ca7(%rip),%rax
mov    (%rax),%edi
mov    -0x50(%rbp),%edx
lea    0xcf6(%rip),%rsi
call   1040 <fprintf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x10,-0xa8(%rbp)
10
jae    1385 <main+0x245>
mov    -0xa8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%edi
call   1030 <putchar@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    134d <main+0x20d>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1180 <main+0x40>
mov    -0x2c(%rbp),%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movq   $0x0,0x40(%rsp)
movq   $0x0,0x50(%rsp)
movl   $0x0,0x4c(%rsp)
mov    0x2e79(%rip),%rax
mov    (%rax),%edx
lea    0x40(%rsp),%rdi
lea    0x50(%rsp),%rsi
call   1060 <getline@plt>
mov    $0xffffffff,%ecx
test   %rax,%rax
js     130b <main+0x1cb>
lea    0xe6b(%rip),%r13
lea    0x4c(%rsp),%rbp
mov    %rsp,%rbx
lea    0x40(%rsp),%r14
lea    0x50(%rsp),%r15
xor    %r12d,%r12d
jmp    1260 <main+0x120>
nop
mov    (%rsp),%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%edi
call   1030 <putchar@plt>
mov    0x24(%rsp),%edi
call   1030 <putchar@plt>
mov    0x28(%rsp),%edi
call   1030 <putchar@plt>
mov    0x2c(%rsp),%edi
call   1030 <putchar@plt>
mov    0x30(%rsp),%edi
call   1030 <putchar@plt>
mov    0x34(%rsp),%edi
call   1030 <putchar@plt>
mov    0x38(%rsp),%edi
call   1030 <putchar@plt>
mov    0x3c(%rsp),%edi
call   1030 <putchar@plt>
add    $0x1,%r12d
mov    0x2d9e(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <getline@plt>
test   %rax,%rax
js     1302 <main+0x1c2>
test   %rax,%rax
je     1309 <main+0x1c9>
mov    0x40(%rsp),%rdi
sub    $0x8,%rsp
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
lea    0x44(%rsp),%rax
push   %rax
lea    0x48(%rsp),%rax
push   %rax
lea    0x4c(%rsp),%rax
push   %rax
lea    0x50(%rsp),%rax
push   %rax
lea    0x54(%rsp),%rax
push   %rax
lea    0x58(%rsp),%rax
push   %rax
lea    0x5c(%rsp),%rax
push   %rax
lea    0x60(%rsp),%rax
push   %rax
lea    0x64(%rsp),%rax
push   %rax
lea    0x68(%rsp),%rax
push   %rax
lea    0x6c(%rsp),%rax
push   %rax
lea    0x70(%rsp),%rax
push   %rax
lea    0x74(%rsp),%rax
push   %rax
call   1050 <sscanf@plt>
add    $0x70,%rsp
cmp    $0x11,%eax
je     11b0 <main+0x70>
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
lea    0xd3e(%rip),%rsi
mov    %r12d,%edx
call   1040 <fprintf@plt>
jmp    11b0 <main+0x70>
mov    $0xffffffff,%ecx
jmp    130b <main+0x1cb>
xor    %ecx,%ecx
mov    %ecx,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [51 x i8] c"%X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"%d: not enough fields matched\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca [16 x i32]
%11 = alloca i64
%12 = alloca i32
%13 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i64 0, i64* %7
store i32 0, i32* %8
store i32 0, i32* %9
br label %14
14: ; preds = %76, %2
%15 = load i32, i32* @stdin
%16 = call i64 @getline(i8** %6, i64* %7, i32 %15)
store i64 %16, i64* %11
%17 = load i64, i64* %11
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 -1, i32* %3
br label %79
20: ; preds = %14
%21 = load i64, i64* %11
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 0, i32* %3
br label %79
24: ; preds = %20
%25 = load i8*, i8** %6
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%27 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%28 = getelementptr inbounds i32, i32* %27, i64 1
%29 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%30 = getelementptr inbounds i32, i32* %29, i64 2
%31 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%32 = getelementptr inbounds i32, i32* %31, i64 3
%33 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%34 = getelementptr inbounds i32, i32* %33, i64 4
%35 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%36 = getelementptr inbounds i32, i32* %35, i64 5
%37 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%38 = getelementptr inbounds i32, i32* %37, i64 6
%39 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%40 = getelementptr inbounds i32, i32* %39, i64 7
%41 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%42 = getelementptr inbounds i32, i32* %41, i64 8
%43 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%44 = getelementptr inbounds i32, i32* %43, i64 9
%45 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%46 = getelementptr inbounds i32, i32* %45, i64 10
%47 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%48 = getelementptr inbounds i32, i32* %47, i64 11
%49 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%50 = getelementptr inbounds i32, i32* %49, i64 12
%51 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%52 = getelementptr inbounds i32, i32* %51, i64 13
%53 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%54 = getelementptr inbounds i32, i32* %53, i64 14
%55 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 0
%56 = getelementptr inbounds i32, i32* %55, i64 15
%57 = call i32 @sscanf(i8* %25, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32* %8, i32* %26, i32* %28, i32* %30, i32* %32, i32* %34, i32* %36, i32* %38, i32* %40, i32* %42, i32* %44, i32* %46, i32* %48, i32* %50, i32* %52, i32* %54, i32* %56)
store i32 %57, i32* %12
%58 = load i32, i32* %12
%59 = icmp ne i32 %58, 17
br i1 %59, label %60, label %64
60: ; preds = %24
%61 = load i32, i32* @stderr
%62 = load i32, i32* %9
%63 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %60, %24
store i64 0, i64* %13
br label %65
65: ; preds = %73, %64
%66 = load i64, i64* %13
%67 = icmp ult i64 %66, 16
br i1 %67, label %68, label %76
68: ; preds = %65
%69 = load i64, i64* %13
%70 = getelementptr inbounds [16 x i32], [16 x i32]* %10, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = call i32 @putchar(i32 %71)
br label %73
73: ; preds = %68
%74 = load i64, i64* %13
%75 = add i64 %74, 1
store i64 %75, i64* %13
br label %65
76: ; preds = %65
%77 = load i32, i32* %9
%78 = add nsw i32 %77, 1
store i32 %78, i32* %9
br label %14
79: ; preds = %23, %19
%80 = load i32, i32* %3
ret i32 %80
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [51 x i8] c"%X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X %X\00"
@stderr = global i32 0
@.str.1 = [30 x i8] c"%d: not enough fields matched\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca [16 x i32]
%7 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%8 = bitcast i64* %4 to i8*
store i64 0, i64* %4
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast [16 x i32]* %6 to i8*
%11 = load i32, i32* @stdin
%12 = call i64 @getline(i8** %3, i64* %4, i32 %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %79, label %14
14: ; preds = %2
%15 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%16 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 1
%17 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 2
%18 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 3
%19 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 4
%20 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 5
%21 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 6
%22 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 7
%23 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 8
%24 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 9
%25 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 10
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 11
%27 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 12
%28 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 13
%29 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 14
%30 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 15
br label %31
31: ; preds = %14, %42
%32 = phi i64 [ %12, %14 ], [ %77, %42 ]
%33 = phi i32 [ 0, %14 ], [ %75, %42 ]
%34 = icmp eq i64 %32, 0
br i1 %34, label %79, label %35
35: ; preds = %31
%36 = load i8*, i8** %3
%37 = call i32 @sscanf(i8* %36, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32* %26, i32* %27, i32* %28, i32* %29, i32* %30)
%38 = icmp eq i32 %37, 17
br i1 %38, label %42, label %39
39: ; preds = %35
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %33)
br label %42
42: ; preds = %39, %35
%43 = load i32, i32* %15
%44 = call i32 @putchar(i32 %43)
%45 = load i32, i32* %16
%46 = call i32 @putchar(i32 %45)
%47 = load i32, i32* %17
%48 = call i32 @putchar(i32 %47)
%49 = load i32, i32* %18
%50 = call i32 @putchar(i32 %49)
%51 = load i32, i32* %19
%52 = call i32 @putchar(i32 %51)
%53 = load i32, i32* %20
%54 = call i32 @putchar(i32 %53)
%55 = load i32, i32* %21
%56 = call i32 @putchar(i32 %55)
%57 = load i32, i32* %22
%58 = call i32 @putchar(i32 %57)
%59 = load i32, i32* %23
%60 = call i32 @putchar(i32 %59)
%61 = load i32, i32* %24
%62 = call i32 @putchar(i32 %61)
%63 = load i32, i32* %25
%64 = call i32 @putchar(i32 %63)
%65 = load i32, i32* %26
%66 = call i32 @putchar(i32 %65)
%67 = load i32, i32* %27
%68 = call i32 @putchar(i32 %67)
%69 = load i32, i32* %28
%70 = call i32 @putchar(i32 %69)
%71 = load i32, i32* %29
%72 = call i32 @putchar(i32 %71)
%73 = load i32, i32* %30
%74 = call i32 @putchar(i32 %73)
%75 = add nuw nsw i32 %33, 1
%76 = load i32, i32* @stdin
%77 = call i64 @getline(i8** %3, i64* %4, i32 %76)
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %31
79: ; preds = %31, %42, %2
%80 = phi i32 [ -1, %2 ], [ -1, %42 ], [ 0, %31 ]
ret i32 %80
}