#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*/ atoi(char *);
int /*<<< orphan*/ bmount(char *);
int /*<<< orphan*/ bread(int /*<<< orphan*/, unsigned char *);
int /*<<< orphan*/ bumount();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int i = 0;
  int cont = 0;
  unsigned char buffer[1024];
  unsigned char byte[8];
  int j = 0;
  if (argc != 3) {
    printf("[infomb.c] ERROR: Paràmtres incorrectes! Prova: ./infomb "
           "disco.imagen numBloc \n");
    exit(-1);
  }
  bmount(argv[1]);
  memset(buffer, 0, 1024);
  bread(atoi(argv[2]), buffer);
  for (i = 0; i < 1024; i++) {
    printf("\nbyte %d ", cont);
    cont++;
    if (buffer[i] == 255) {
      if (i < 10) {
        printf("=   1 1 1 1 1 1 1 1");
      } else {
        printf("=  1 1 1 1 1 1 1 1");
      }
    } else if (buffer[i] == 0) {
      if (i >= 100 && i < 1000) {
        printf("=  0 0 0 0 0 0 0 0");
      } else if (i >= 1000) {
        printf("=  0 0 0 0 0 0 0 0");
      } else {
        printf("=   0 0 0 0 0 0 0 0");
      }
    } else {
      int aux = buffer[i];
      memset(byte, 0, 8);
      printf("=  ");
      for (j = 7; j >= 0; j--) {
        if ((aux % 2) == 0) {
          byte[j] = 0;
        } else {
          byte[j] = 1;
        }
        aux = aux / 2;
      }
      for (j = 0; j < 8; j++) {
        printf("%d ", byte[j]);
      }
    }
  }
  printf("\n");
  bumount();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x42c(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11c3 <main+0x53>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <bmount@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1050 <memset@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,%edi
lea    -0x420(%rbp),%rsi
call   1060 <bread@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x400,-0x14(%rbp)
jge    13fb <main+0x28b>
mov    -0x18(%rbp),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
movslq -0x14(%rbp),%rax
movzbl -0x420(%rbp,%rax,1),%eax
ff
cmp    $0xff,%eax
jne    1273 <main+0x103>
cmpl   $0xa,-0x14(%rbp)
jge    1260 <main+0xf0>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126e <main+0xfe>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e8 <main+0x278>
movslq -0x14(%rbp),%rax
movzbl -0x420(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
jne    12ea <main+0x17a>
cmpl   $0x64,-0x14(%rbp)
jl     12b2 <main+0x142>
cmpl   $0x3e8,-0x14(%rbp)
jge    12b2 <main+0x142>
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e5 <main+0x175>
cmpl   $0x3e8,-0x14(%rbp)
jl     12d2 <main+0x162>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e0 <main+0x170>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e5 <main+0x175>
jmp    13e3 <main+0x273>
movslq -0x14(%rbp),%rax
movzbl -0x420(%rbp,%rax,1),%eax
ff
mov    %eax,-0x430(%rbp)
lea    -0x428(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x7,-0x42c(%rbp)
cmpl   $0x0,-0x42c(%rbp)
jl     1396 <main+0x226>
mov    -0x430(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    135f <main+0x1ef>
movslq -0x42c(%rbp),%rax
movb   $0x0,-0x428(%rbp,%rax,1)
jmp    136e <main+0x1fe>
movslq -0x42c(%rbp),%rax
movb   $0x1,-0x428(%rbp,%rax,1)
01
mov    -0x430(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x430(%rbp)
mov    -0x42c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x42c(%rbp)
jmp    1327 <main+0x1b7>
movl   $0x0,-0x42c(%rbp)
cmpl   $0x8,-0x42c(%rbp)
jge    13de <main+0x26e>
movslq -0x42c(%rbp),%rax
movzbl -0x428(%rbp,%rax,1),%esi
ff
lea    0xc94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x42c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x42c(%rbp)
jmp    13a0 <main+0x230>
jmp    13e3 <main+0x273>
jmp    13e8 <main+0x278>
jmp    13ed <main+0x27d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1205 <main+0x95>
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <bumount@plt>
xor    %eax,%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
cmp    $0x3,%edi
jne    13aa <main+0x21a>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1090 <bmount@plt>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
mov    0x10(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,%edi
mov    %rbp,%rsi
call   1080 <bread@plt>
lea    0xe1c(%rip),%rbx
lea    0xe6d(%rip),%r15
lea    0xe14(%rip),%r12
xor    %ebp,%ebp
jmp    121b <main+0x8b>
cs nopw 0x0(%rax,%rax,1)
lea    0xe2a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x400,%rbp
je     1385 <main+0x1f5>
mov    %rbp,%r14
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
movzbl 0x10(%rsp,%r14,1),%r13d
test   %r13d,%r13d
je     1260 <main+0xd0>
cmp    $0xff,%r13b
jne    1280 <main+0xf0>
cmp    $0x9,%r14
ja     1379 <main+0x1e9>
lea    0xdb9(%rip),%rdi
jmp    1207 <main+0x77>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x64(%r14),%eax
cmp    $0x383,%eax
jbe    1200 <main+0x70>
cmp    $0x3e8,%r14
jae    1200 <main+0x70>
lea    0xdc9(%rip),%rdi
jmp    1207 <main+0x77>
nopl   (%rax)
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13d,%eax
and    $0x1,%al
mov    %al,0xf(%rsp)
mov    %r13d,%eax
shr    %al
and    $0x1,%al
mov    %al,0xe(%rsp)
mov    %r13d,%eax
shr    $0x2,%al
and    $0x1,%al
mov    %al,0xd(%rsp)
mov    %r13d,%eax
shr    $0x3,%al
and    $0x1,%al
mov    %al,0xc(%rsp)
mov    %r13d,%eax
shr    $0x4,%al
and    $0x1,%al
mov    %al,0xb(%rsp)
mov    %r13d,%eax
shr    $0x5,%al
and    $0x1,%al
mov    %al,0xa(%rsp)
mov    %r13d,%eax
shr    $0x6,%al
and    $0x1,%al
mov    %al,0x9(%rsp)
shr    $0x7,%r13d
mov    %r13b,0x8(%rsp)
mov    %r12,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0x9(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xa(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xb(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xc(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xd(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xe(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl 0xf(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x400,%rbp
jne    121b <main+0x8b>
jmp    1385 <main+0x1f5>
lea    0xc9e(%rip),%rdi
jmp    1207 <main+0x77>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1060 <bumount@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcab(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [81 x i8] c"[infomb.c] ERROR: Par\C3\A0mtres incorrectes! Prova: ./infomb disco.imagen numBloc \0A\00"
@.str.1 = [10 x i8] c"\0Abyte %d \00"
@.str.2 = [20 x i8] c"= 1 1 1 1 1 1 1 1\00"
@.str.3 = [19 x i8] c"= 1 1 1 1 1 1 1 1\00"
@.str.4 = [19 x i8] c"= 0 0 0 0 0 0 0 0\00"
@.str.5 = [20 x i8] c"= 0 0 0 0 0 0 0 0\00"
@.str.6 = [4 x i8] c"= \00"
@.str.7 = [4 x i8] c"%d \00"
@.str.8 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [1024 x i8]
%9 = alloca [8 x i8]
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %10
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 -1)
unreachable
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @bmount(i8* %20)
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i32 0, i32 1024)
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
%28 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%29 = call i32 @bread(i32 %27, i8* %28)
store i32 0, i32* %6
br label %30
30: ; preds = %123, %17
%31 = load i32, i32* %6
%32 = icmp slt i32 %31, 1024
br i1 %32, label %33, label %126
33: ; preds = %30
%34 = load i32, i32* %7
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = zext i8 %41 to i32
%43 = icmp eq i32 %42, 255
br i1 %43, label %44, label %52
44: ; preds = %33
%45 = load i32, i32* %6
%46 = icmp slt i32 %45, 10
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %51
49: ; preds = %44
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %51
51: ; preds = %49, %47
br label %122
52: ; preds = %33
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %54
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %76
59: ; preds = %52
%60 = load i32, i32* %6
%61 = icmp sge i32 %60, 100
br i1 %61, label %62, label %67
62: ; preds = %59
%63 = load i32, i32* %6
%64 = icmp slt i32 %63, 1000
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %75
67: ; preds = %62, %59
%68 = load i32, i32* %6
%69 = icmp sge i32 %68, 1000
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %74
72: ; preds = %67
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %74
74: ; preds = %72, %70
br label %75
75: ; preds = %74, %65
br label %121
76: ; preds = %52
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
store i32 %81, i32* %11
%82 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%83 = call i32 @memset(i8* %82, i32 0, i32 8)
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
store i32 7, i32* %10
br label %85
85: ; preds = %103, %76
%86 = load i32, i32* %10
%87 = icmp sge i32 %86, 0
br i1 %87, label %88, label %106
88: ; preds = %85
%89 = load i32, i32* %11
%90 = srem i32 %89, 2
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %96
92: ; preds = %88
%93 = load i32, i32* %10
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %94
store i8 0, i8* %95
br label %100
96: ; preds = %88
%97 = load i32, i32* %10
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %98
store i8 1, i8* %99
br label %100
100: ; preds = %96, %92
%101 = load i32, i32* %11
%102 = sdiv i32 %101, 2
store i32 %102, i32* %11
br label %103
103: ; preds = %100
%104 = load i32, i32* %10
%105 = add nsw i32 %104, -1
store i32 %105, i32* %10
br label %85
106: ; preds = %85
store i32 0, i32* %10
br label %107
107: ; preds = %117, %106
%108 = load i32, i32* %10
%109 = icmp slt i32 %108, 8
br i1 %109, label %110, label %120
110: ; preds = %107
%111 = load i32, i32* %10
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %112
%114 = load i8, i8* %113
%115 = zext i8 %114 to i32
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %110
%118 = load i32, i32* %10
%119 = add nsw i32 %118, 1
store i32 %119, i32* %10
br label %107
120: ; preds = %107
br label %121
121: ; preds = %120, %75
br label %122
122: ; preds = %121, %51
br label %123
123: ; preds = %122
%124 = load i32, i32* %6
%125 = add nsw i32 %124, 1
store i32 %125, i32* %6
br label %30
126: ; preds = %30
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%128 = call i32 (...) @bumount()
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"\0Abyte %d \00"
@.str.2 = [20 x i8] c"= 1 1 1 1 1 1 1 1\00"
@.str.3 = [19 x i8] c"= 1 1 1 1 1 1 1 1\00"
@.str.4 = [19 x i8] c"= 0 0 0 0 0 0 0 0\00"
@.str.5 = [20 x i8] c"= 0 0 0 0 0 0 0 0\00"
@.str.6 = [4 x i8] c"= \00"
@.str.7 = [4 x i8] c"%d \00"
@str = [80 x i8] c"[infomb.c] ERROR: Par\C3\A0mtres incorrectes! Prova: ./infomb disco.imagen numBloc \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca [8 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%7 = icmp eq i32 %0, 3
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @exit(i32 -1)
unreachable
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32 @bmount(i8* %13)
%15 = call i32 @memset(i8* %5, i32 0, i32 1024)
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
%19 = call i32 @bread(i32 %18, i8* %5)
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 7
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
%22 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
%24 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
%25 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
br label %27
27: ; preds = %11, %92
%28 = phi i64 [ 0, %11 ], [ %31, %92 ]
%29 = trunc i64 %28 to i32
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %29)
%31 = add nuw nsw i64 %28, 1
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %28
%33 = load i8, i8* %32
switch i8 %33, label %52 [
i8 -1, label %34
i8 0, label %40
]
34: ; preds = %27
%35 = icmp ult i64 %28, 10
br i1 %35, label %36, label %38
36: ; preds = %34
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %92
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %92
40: ; preds = %27
%41 = trunc i64 %28 to i32
%42 = add i32 %41, -100
%43 = icmp ult i32 %42, 900
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %92
46: ; preds = %40
%47 = icmp ugt i64 %28, 999
br i1 %47, label %48, label %50
48: ; preds = %46
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %92
50: ; preds = %46
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %92
52: ; preds = %27
%53 = call i32 @memset(i8* %6, i32 0, i32 8)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%55 = and i8 %33, 1
store i8 %55, i8* %20
%56 = lshr i8 %33, 1
%57 = and i8 %56, 1
store i8 %57, i8* %21
%58 = lshr i8 %33, 2
%59 = and i8 %58, 1
store i8 %59, i8* %22
%60 = lshr i8 %33, 3
%61 = and i8 %60, 1
store i8 %61, i8* %23
%62 = lshr i8 %33, 4
%63 = and i8 %62, 1
store i8 %63, i8* %24
%64 = lshr i8 %33, 5
%65 = and i8 %64, 1
store i8 %65, i8* %25
%66 = lshr i8 %33, 6
%67 = and i8 %66, 1
store i8 %67, i8* %26
%68 = lshr i8 %33, 7
store i8 %68, i8* %6
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %69)
%71 = load i8, i8* %26
%72 = zext i8 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %72)
%74 = load i8, i8* %25
%75 = zext i8 %74 to i32
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %75)
%77 = load i8, i8* %24
%78 = zext i8 %77 to i32
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %78)
%80 = load i8, i8* %23
%81 = zext i8 %80 to i32
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %81)
%83 = load i8, i8* %22
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %84)
%86 = load i8, i8* %21
%87 = zext i8 %86 to i32
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %87)
%89 = load i8, i8* %20
%90 = zext i8 %89 to i32
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %52, %38, %36, %44, %50, %48
%93 = icmp eq i64 %31, 1024
br i1 %93, label %94, label %27
94: ; preds = %92
%95 = call i32 @putchar(i32 10)
%96 = call i32 (...) @bumount()
ret i32 0
}