#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printLine(int *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char filename[50 + 1];
  int n;
  scanf("%s %d", filename, &n);
  FILE *fp;
  fp = fopen(filename, "w+");
  if (n == 1) {
    int set[8];
    for (int i = 0; i < 8; i++) {
      scanf("%d", &set[i]);
      if (set[i] > 255) {
        printf("WARNING! recieved number greater than 255 (%d), continuing "
               "normally...\n",
               set[i]);
      }
    }
    printLine(set, n, fp);
  } else {
    int *set = (int *)malloc(sizeof(int) * n * 8);
    int setcount = 0;
    for (int i = 0; i < n; i++) {
      long full;
      scanf("%li", &full);
      for (int j = 7; j >= 0; j--) {
        set[setcount] = full >> (j * 8);
        full -= (long)set[setcount] << (j * 8);
        if (set[setcount] > 255) {
          printf("WARNING! recieved number greater than 255 (%d), continuing "
                 "normally...\n",
                 set[setcount]);
        }
        setcount++;
      }
    }
    printLine(set, n, fp);
    free(set);
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xe73(%rip),%rdi
lea    -0x44(%rbp),%rdx
mov    $0x0,%al
call   1070 <scanf@plt>
lea    -0x40(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x1,-0x44(%rbp)
jne    1232 <main+0xc2>
movl   $0x0,-0x74(%rbp)
cmpl   $0x8,-0x74(%rbp)
jge    121d <main+0xad>
movslq -0x74(%rbp),%rax
lea    -0x70(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
movslq -0x74(%rbp),%rax
cmpl   $0xff,-0x70(%rbp,%rax,4)
jle    120a <main+0x9a>
movslq -0x74(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%esi
lea    0xe04(%rip),%rdi
call   1050 <printf@plt>
jmp    120f <main+0x9f>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    11bd <main+0x4d>
lea    -0x70(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    -0x50(%rbp),%rdx
call   1090 <printLine@plt>
jmp    1375 <main+0x205>
movslq -0x44(%rbp),%rax
shl    $0x2,%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    135c <main+0x1ec>
lea    0xdde(%rip),%rdi
lea    -0x90(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
movl   $0x7,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jl     1343 <main+0x1d3>
mov    -0x90(%rbp),%rax
mov    -0x94(%rbp),%ecx
shl    $0x3,%ecx
mov    %ecx,%ecx
sar    %cl,%rax
mov    %eax,%edx
mov    -0x80(%rbp),%rax
movslq -0x84(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x80(%rbp),%rax
movslq -0x84(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
mov    -0x94(%rbp),%ecx
shl    $0x3,%ecx
mov    %ecx,%ecx
shl    %cl,%rax
mov    %rax,%rcx
mov    -0x90(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x80(%rbp),%rax
movslq -0x84(%rbp),%rcx
cmpl   $0xff,(%rax,%rcx,4)
jle    1320 <main+0x1b0>
mov    -0x80(%rbp),%rax
movslq -0x84(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcee(%rip),%rdi
call   1050 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
jmp    128b <main+0x11b>
jmp    1348 <main+0x1d8>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    125d <main+0xed>
mov    -0x80(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    -0x50(%rbp),%rdx
call   1090 <printLine@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xe7b(%rip),%rdi
lea    0x40(%rsp),%rbx
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
call   1080 <fopen@plt>
mov    %rax,%rbp
mov    0xc(%rsp),%edi
cmp    $0x1,%edi
jne    1326 <main+0x1b6>
lea    0xe44(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x10(%rsp),%esi
cmp    $0x100,%esi
jl     11e3 <main+0x73>
lea    0xe2b(%rip),%rdi
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
lea    0xe14(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x14(%rsp),%esi
cmp    $0x100,%esi
jl     120e <main+0x9e>
lea    0xe00(%rip),%rdi
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
lea    0xde9(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x18(%rsp),%esi
cmp    $0x100,%esi
jl     1239 <main+0xc9>
lea    0xdd5(%rip),%rdi
call   1050 <printf@plt>
lea    0x1c(%rsp),%rsi
lea    0xdbe(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x1c(%rsp),%esi
cmp    $0x100,%esi
jl     1264 <main+0xf4>
lea    0xdaa(%rip),%rdi
call   1050 <printf@plt>
lea    0x20(%rsp),%rsi
lea    0xd93(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x20(%rsp),%esi
cmp    $0x100,%esi
jl     128f <main+0x11f>
lea    0xd7f(%rip),%rdi
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
lea    0xd68(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x24(%rsp),%esi
cmp    $0x100,%esi
jl     12ba <main+0x14a>
lea    0xd54(%rip),%rdi
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
lea    0xd3d(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x28(%rsp),%esi
cmp    $0x100,%esi
jl     12e5 <main+0x175>
lea    0xd29(%rip),%rdi
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
lea    0xd12(%rip),%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x2c(%rsp),%esi
cmp    $0x100,%esi
jl     1310 <main+0x1a0>
lea    0xcfe(%rip),%rdi
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
lea    0x10(%rsp),%rdi
mov    %rbp,%rdx
call   1090 <printLine@plt>
jmp    14f9 <main+0x389>
mov    %rbp,0x38(%rsp)
shl    $0x5,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    0xc(%rsp),%esi
test   %esi,%esi
jle    14e1 <main+0x371>
lea    0x10(%rsp),%r12
movabs $0xffffffffff,%rbp
lea    0xcb1(%rip),%r13
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    1375 <main+0x205>
add    $0x8,%r14
add    $0x1,%r15d
mov    0xc(%rsp),%esi
cmp    %esi,%r15d
jge    14e1 <main+0x371>
lea    0xcd5(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movslq %r14d,%r14
mov    0x10(%rsp),%rax
mov    %rax,%rcx
sar    $0x38,%rcx
mov    %ecx,(%rbx,%r14,4)
mov    %rax,%rcx
movabs $0xffffffffffffff,%rdx
and    %rdx,%rcx
mov    %rcx,%rdx
shr    $0x30,%rdx
mov    %edx,0x4(%rbx,%r14,4)
movabs $0xff000000000000,%rdx
and    %rdx,%rax
sub    %rax,%rcx
mov    %rcx,%rsi
sar    $0x28,%rsi
mov    %esi,0x8(%rbx,%r14,4)
and    %rbp,%rcx
mov    %rcx,0x10(%rsp)
cmp    $0x100,%esi
jl     13ee <main+0x27e>
mov    %r13,%rdi
call   1050 <printf@plt>
mov    0x10(%rsp),%rcx
mov    %rcx,%rax
shr    $0x20,%rax
mov    %eax,0xc(%rbx,%r14,4)
mov    %ecx,%esi
mov    %rsi,0x10(%rsp)
cmp    $0x100,%eax
jl     1417 <main+0x2a7>
mov    %r13,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rsp),%rsi
mov    %rsi,%rax
sar    $0x18,%rax
mov    %eax,0x10(%rbx,%r14,4)
movslq %eax,%rcx
mov    %rcx,%rdx
shl    $0x18,%rdx
sub    %rdx,%rsi
mov    %rsi,0x10(%rsp)
cmp    $0x100,%ecx
jl     144c <main+0x2dc>
mov    %r13,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rsp),%rsi
mov    %rsi,%rax
sar    $0x10,%rax
mov    %eax,0x14(%rbx,%r14,4)
movslq %eax,%rcx
mov    %rcx,%rdx
shl    $0x10,%rdx
sub    %rdx,%rsi
mov    %rsi,0x10(%rsp)
cmp    $0x100,%ecx
jl     1481 <main+0x311>
mov    %r13,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rsp),%rsi
mov    %rsi,%rax
sar    $0x8,%rax
mov    %eax,0x18(%rbx,%r14,4)
movslq %eax,%rcx
mov    %rcx,%rdx
shl    $0x8,%rdx
sub    %rdx,%rsi
mov    %rsi,0x10(%rsp)
cmp    $0x100,%ecx
jl     14b6 <main+0x346>
mov    %r13,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rsp),%rsi
mov    %esi,0x1c(%rbx,%r14,4)
movslq %esi,%rax
mov    %rsi,%rcx
sub    %rax,%rcx
mov    %rcx,0x10(%rsp)
cmp    $0x100,%eax
jl     1360 <main+0x1f0>
mov    %r13,%rdi
call   1050 <printf@plt>
jmp    1360 <main+0x1f0>
mov    %rbx,%rdi
mov    0x38(%rsp),%rbp
mov    %rbp,%rdx
call   1090 <printLine@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s %d\00"
@.str.1 = [3 x i8] c"w+\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [72 x i8] c"WARNING! recieved number greater than 255 (%d), continuing normally...\0A\00"
@.str.4 = [4 x i8] c"%li\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [51 x i8]
%3 = alloca i32
%4 = alloca i32*
%5 = alloca [8 x i32]
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i32
store i32 0, i32* %1
%12 = getelementptr inbounds [51 x i8], [51 x i8]* %2, i64 0, i64 0
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %12, i32* %3)
%14 = getelementptr inbounds [51 x i8], [51 x i8]* %2, i64 0, i64 0
%15 = call i32* @fopen(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %15, i32** %4
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %47
18: ; preds = %0
store i32 0, i32* %6
br label %19
19: ; preds = %39, %18
%20 = load i32, i32* %6
%21 = icmp slt i32 %20, 8
br i1 %21, label %22, label %42
22: ; preds = %19
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 %24
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %25)
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = icmp sgt i32 %30, 255
br i1 %31, label %32, label %38
32: ; preds = %22
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %36)
br label %38
38: ; preds = %32, %22
br label %39
39: ; preds = %38
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %19
42: ; preds = %19
%43 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 0
%44 = load i32, i32* %3
%45 = load i32*, i32** %4
%46 = call i32 @printLine(i32* %43, i32 %44, i32* %45)
br label %117
47: ; preds = %0
%48 = load i32, i32* %3
%49 = sext i32 %48 to i64
%50 = mul i64 4, %49
%51 = mul i64 %50, 8
%52 = trunc i64 %51 to i32
%53 = call i64 @malloc(i32 %52)
%54 = inttoptr i64 %53 to i32*
store i32* %54, i32** %7
store i32 0, i32* %8
store i32 0, i32* %9
br label %55
55: ; preds = %107, %47
%56 = load i32, i32* %9
%57 = load i32, i32* %3
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %110
59: ; preds = %55
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64* %10)
store i32 7, i32* %11
br label %61
61: ; preds = %103, %59
%62 = load i32, i32* %11
%63 = icmp sge i32 %62, 0
br i1 %63, label %64, label %106
64: ; preds = %61
%65 = load i64, i64* %10
%66 = load i32, i32* %11
%67 = mul nsw i32 %66, 8
%68 = zext i32 %67 to i64
%69 = ashr i64 %65, %68
%70 = trunc i64 %69 to i32
%71 = load i32*, i32** %7
%72 = load i32, i32* %8
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, i32* %71, i64 %73
store i32 %70, i32* %74
%75 = load i32*, i32** %7
%76 = load i32, i32* %8
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, i32* %75, i64 %77
%79 = load i32, i32* %78
%80 = sext i32 %79 to i64
%81 = load i32, i32* %11
%82 = mul nsw i32 %81, 8
%83 = zext i32 %82 to i64
%84 = shl i64 %80, %83
%85 = load i64, i64* %10
%86 = sub nsw i64 %85, %84
store i64 %86, i64* %10
%87 = load i32*, i32** %7
%88 = load i32, i32* %8
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, i32* %87, i64 %89
%91 = load i32, i32* %90
%92 = icmp sgt i32 %91, 255
br i1 %92, label %93, label %100
93: ; preds = %64
%94 = load i32*, i32** %7
%95 = load i32, i32* %8
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %94, i64 %96
%98 = load i32, i32* %97
%99 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %98)
br label %100
100: ; preds = %93, %64
%101 = load i32, i32* %8
%102 = add nsw i32 %101, 1
store i32 %102, i32* %8
br label %103
103: ; preds = %100
%104 = load i32, i32* %11
%105 = add nsw i32 %104, -1
store i32 %105, i32* %11
br label %61
106: ; preds = %61
br label %107
107: ; preds = %106
%108 = load i32, i32* %9
%109 = add nsw i32 %108, 1
store i32 %109, i32* %9
br label %55
110: ; preds = %55
%111 = load i32*, i32** %7
%112 = load i32, i32* %3
%113 = load i32*, i32** %4
%114 = call i32 @printLine(i32* %111, i32 %112, i32* %113)
%115 = load i32*, i32** %7
%116 = call i32 @free(i32* %115)
br label %117
117: ; preds = %110, %42
%118 = load i32*, i32** %4
%119 = call i32 @fclose(i32* %118)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %d\00"
@.str.1 = [3 x i8] c"w+\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [72 x i8] c"WARNING! recieved number greater than 255 (%d), continuing normally...\0A\00"
@.str.4 = [4 x i8] c"%li\00"
define i32 @main() {
%1 = alloca [51 x i8]
%2 = alloca i32
%3 = alloca [8 x i32]
%4 = alloca i64
%5 = getelementptr inbounds [51 x i8], [51 x i8]* %1, i64 0, i64 0
%6 = bitcast i32* %2 to i8*
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %5, i32* %2)
%8 = call i32* @fopen(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %71
11: ; preds = %0
%12 = bitcast [8 x i32]* %3 to i8*
%13 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%15 = load i32, i32* %13
%16 = icmp sgt i32 %15, 255
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %15)
br label %19
19: ; preds = %11, %17
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 1
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %20)
%22 = load i32, i32* %20
%23 = icmp sgt i32 %22, 255
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %22)
br label %26
26: ; preds = %24, %19
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 2
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %27)
%29 = load i32, i32* %27
%30 = icmp sgt i32 %29, 255
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %29)
br label %33
33: ; preds = %31, %26
%34 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 3
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %34)
%36 = load i32, i32* %34
%37 = icmp sgt i32 %36, 255
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %36)
br label %40
40: ; preds = %38, %33
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 4
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %41)
%43 = load i32, i32* %41
%44 = icmp sgt i32 %43, 255
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %43)
br label %47
47: ; preds = %45, %40
%48 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 5
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %48)
%50 = load i32, i32* %48
%51 = icmp sgt i32 %50, 255
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %50)
br label %54
54: ; preds = %52, %47
%55 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 6
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %55)
%57 = load i32, i32* %55
%58 = icmp sgt i32 %57, 255
br i1 %58, label %59, label %61
59: ; preds = %54
%60 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %57)
br label %61
61: ; preds = %59, %54
%62 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 7
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %62)
%64 = load i32, i32* %62
%65 = icmp sgt i32 %64, 255
br i1 %65, label %66, label %68
66: ; preds = %61
%67 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %64)
br label %68
68: ; preds = %66, %61
%69 = load i32, i32* %2
%70 = call i32 @printLine(i32* %13, i32 %69, i32* %8)
br label %175
71: ; preds = %0
%72 = shl i32 %9, 5
%73 = call i64 @malloc(i32 %72)
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %2
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = bitcast i64* %4 to i8*
br label %83
79: ; preds = %170, %71
%80 = phi i32 [ %75, %71 ], [ %173, %170 ]
%81 = call i32 @printLine(i32* %74, i32 %80, i32* %8)
%82 = call i32 @free(i32* %74)
br label %175
83: ; preds = %77, %170
%84 = phi i32 [ 0, %77 ], [ %172, %170 ]
%85 = phi i64 [ 0, %77 ], [ %171, %170 ]
%86 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64* %4)
%87 = shl i64 %85, 32
%88 = ashr exact i64 %87, 32
%89 = load i64, i64* %4
%90 = ashr i64 %89, 56
%91 = trunc i64 %90 to i32
%92 = getelementptr inbounds i32, i32* %74, i64 %88
store i32 %91, i32* %92
%93 = and i64 %89, 72057594037927935
%94 = add nsw i64 %88, 1
%95 = lshr i64 %93, 48
%96 = trunc i64 %95 to i32
%97 = getelementptr inbounds i32, i32* %74, i64 %94
store i32 %96, i32* %97
%98 = and i64 %89, 71776119061217280
%99 = sub nsw i64 %93, %98
%100 = add nsw i64 %88, 2
%101 = ashr i64 %99, 40
%102 = trunc i64 %101 to i32
%103 = getelementptr inbounds i32, i32* %74, i64 %100
store i32 %102, i32* %103
%104 = and i64 %99, 1099511627775
store i64 %104, i64* %4
%105 = icmp sgt i32 %102, 255
br i1 %105, label %106, label %109
106: ; preds = %83
%107 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %102)
%108 = load i64, i64* %4
br label %109
109: ; preds = %106, %83
%110 = phi i64 [ %108, %106 ], [ %104, %83 ]
%111 = add nsw i64 %88, 3
%112 = lshr i64 %110, 32
%113 = trunc i64 %112 to i32
%114 = getelementptr inbounds i32, i32* %74, i64 %111
store i32 %113, i32* %114
%115 = and i64 %110, 4294967295
store i64 %115, i64* %4
%116 = icmp sgt i32 %113, 255
br i1 %116, label %117, label %120
117: ; preds = %109
%118 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %113)
%119 = load i64, i64* %4
br label %120
120: ; preds = %117, %109
%121 = phi i64 [ %119, %117 ], [ %115, %109 ]
%122 = add nsw i64 %88, 4
%123 = ashr i64 %121, 24
%124 = trunc i64 %123 to i32
%125 = getelementptr inbounds i32, i32* %74, i64 %122
store i32 %124, i32* %125
%126 = shl i64 %123, 32
%127 = ashr exact i64 %126, 8
%128 = sub nsw i64 %121, %127
store i64 %128, i64* %4
%129 = icmp sgt i32 %124, 255
br i1 %129, label %130, label %133
130: ; preds = %120
%131 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %124)
%132 = load i64, i64* %4
br label %133
133: ; preds = %130, %120
%134 = phi i64 [ %132, %130 ], [ %128, %120 ]
%135 = add nsw i64 %88, 5
%136 = ashr i64 %134, 16
%137 = trunc i64 %136 to i32
%138 = getelementptr inbounds i32, i32* %74, i64 %135
store i32 %137, i32* %138
%139 = shl i64 %136, 32
%140 = ashr exact i64 %139, 16
%141 = sub nsw i64 %134, %140
store i64 %141, i64* %4
%142 = icmp sgt i32 %137, 255
br i1 %142, label %143, label %146
143: ; preds = %133
%144 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %137)
%145 = load i64, i64* %4
br label %146
146: ; preds = %143, %133
%147 = phi i64 [ %145, %143 ], [ %141, %133 ]
%148 = add nsw i64 %88, 6
%149 = ashr i64 %147, 8
%150 = trunc i64 %149 to i32
%151 = getelementptr inbounds i32, i32* %74, i64 %148
store i32 %150, i32* %151
%152 = shl i64 %149, 32
%153 = ashr exact i64 %152, 24
%154 = sub nsw i64 %147, %153
store i64 %154, i64* %4
%155 = icmp sgt i32 %150, 255
br i1 %155, label %156, label %159
156: ; preds = %146
%157 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %150)
%158 = load i64, i64* %4
br label %159
159: ; preds = %156, %146
%160 = phi i64 [ %158, %156 ], [ %154, %146 ]
%161 = add nsw i64 %88, 7
%162 = trunc i64 %160 to i32
%163 = getelementptr inbounds i32, i32* %74, i64 %161
store i32 %162, i32* %163
%164 = shl i64 %160, 32
%165 = ashr exact i64 %164, 32
%166 = sub nsw i64 %160, %165
store i64 %166, i64* %4
%167 = icmp sgt i32 %162, 255
br i1 %167, label %168, label %170
168: ; preds = %159
%169 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), i32 %162)
br label %170
170: ; preds = %168, %159
%171 = add nsw i64 %88, 8
%172 = add nuw nsw i32 %84, 1
%173 = load i32, i32* %2
%174 = icmp slt i32 %172, %173
br i1 %174, label %83, label %79
175: ; preds = %79, %68
%176 = call i32 @fclose(i32* %8)
ret i32 0
}