#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 uint8_t;
typedef int uint32_t;

/* Variables and functions */
int *malloc(int);
int /*<<< orphan*/ print_block_down(int *, int);
main(void) {
  uint8_t mcu[256] = {
      181, 181, 181, 181, 181, 181, 181, 181, 180, 180, 181, 182, 183, 185, 185,
      186, 181, 181, 181, 181, 181, 181, 181, 181, 180, 180, 181, 182, 184, 185,
      186, 186, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 183, 184,
      185, 186, 187, 182, 182, 182, 182, 182, 182, 182, 182, 181, 182, 183, 184,
      185, 186, 187, 188, 183, 183, 183, 183, 183, 183, 183, 183, 182, 183, 184,
      185, 186, 187, 188, 188, 184, 184, 184, 184, 184, 184, 184, 184, 183, 183,
      184, 185, 187, 188, 189, 189, 184, 184, 184, 184, 184, 184, 184, 184, 184,
      184, 185, 186, 187, 188, 189, 190, 185, 185, 185, 185, 185, 185, 185, 185,
      184, 184, 185, 186, 188, 189, 190, 190, 184, 184, 184, 185, 185, 186, 186,
      186, 186, 186, 187, 187, 187, 188, 188, 188, 184, 184, 185, 185, 185, 186,
      186, 186, 186, 186, 187, 187, 188, 188, 188, 188, 184, 185, 185, 185, 186,
      186, 186, 186, 187, 187, 187, 187, 188, 188, 189, 189, 185, 185, 185, 186,
      186, 186, 187, 187, 187, 187, 187, 188, 188, 189, 189, 189, 185, 185, 186,
      186, 186, 187, 187, 187, 187, 188, 188, 188, 189, 189, 189, 189, 186, 186,
      186, 186, 187, 187, 187, 188, 188, 188, 188, 189, 189, 189, 190, 190, 186,
      186, 186, 187, 187, 187, 188, 188, 188, 188, 189, 189, 189, 190, 190, 190,
      186, 186, 186, 187, 187, 188, 188, 188, 188, 188, 189, 189, 189, 190, 190,
      190};
  uint8_t mcu_420[256] = {
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
      162};
  uint8_t *blocs = malloc(256 * sizeof(uint8_t));
  for (uint32_t i = 0; i < 1 * 1; i++) {
    print_block_down(blocs + (i * 64 * sizeof(uint8_t)), i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x410(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x810(%rbp),%rdi
lea    0x1298(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
mov    $0x400,%edi
call   1050 <malloc@plt>
mov    %rax,-0x818(%rbp)
movl   $0x0,-0x81c(%rbp)
cmpl   $0x1,-0x81c(%rbp)
jge    11d6 <main+0xa6>
mov    -0x818(%rbp),%rdi
mov    -0x81c(%rbp),%eax
shl    $0x6,%eax
cltq
shl    $0x2,%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x81c(%rbp),%esi
call   1030 <print_block_down@plt>
mov    -0x81c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x81c(%rbp)
jmp    118d <main+0x5d>
xor    %eax,%eax
add    $0x820,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x400,%edi
call   1040 <malloc@plt>
mov    %rax,%rdi
xor    %esi,%esi
call   1030 <print_block_down@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.mcu = [256 x i32] [i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 180, i32 180, i32 181, i32 182, i32 183, i32 185, i32 185, i32 186, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 180, i32 180, i32 181, i32 182, i32 184, i32 185, i32 186, i32 186, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 181, i32 182, i32 183, i32 184, i32 185, i32 186, i32 187, i32 182, i32 182, i32 182, i32 182, i32 182, i32 182, i32 182, i32 182, i32 181, i32 182, i32 183, i32 184, i32 185, i32 186, i32 187, i32 188, i32 183, i32 183, i32 183, i32 183, i32 183, i32 183, i32 183, i32 183, i32 182, i32 183, i32 184, i32 185, i32 186, i32 187, i32 188, i32 188, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 183, i32 183, i32 184, i32 185, i32 187, i32 188, i32 189, i32 189, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 184, i32 185, i32 186, i32 187, i32 188, i32 189, i32 190, i32 185, i32 185, i32 185, i32 185, i32 185, i32 185, i32 185, i32 185, i32 184, i32 184, i32 185, i32 186, i32 188, i32 189, i32 190, i32 190, i32 184, i32 184, i32 184, i32 185, i32 185, i32 186, i32 186, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 188, i32 188, i32 188, i32 184, i32 184, i32 185, i32 185, i32 185, i32 186, i32 186, i32 186, i32 186, i32 186, i32 187, i32 187, i32 188, i32 188, i32 188, i32 188, i32 184, i32 185, i32 185, i32 185, i32 186, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 187, i32 188, i32 188, i32 189, i32 189, i32 185, i32 185, i32 185, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 187, i32 187, i32 188, i32 188, i32 189, i32 189, i32 189, i32 185, i32 185, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 187, i32 188, i32 188, i32 188, i32 189, i32 189, i32 189, i32 189, i32 186, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 188, i32 188, i32 188, i32 188, i32 189, i32 189, i32 189, i32 190, i32 190, i32 186, i32 186, i32 186, i32 187, i32 187, i32 187, i32 188, i32 188, i32 188, i32 188, i32 189, i32 189, i32 189, i32 190, i32 190, i32 190, i32 186, i32 186, i32 186, i32 187, i32 187, i32 188, i32 188, i32 188, i32 188, i32 188, i32 189, i32 189, i32 189, i32 190, i32 190, i32 190]
@__const.main.mcu_420 = [256 x i32] [i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162, i32 162]
define i32 @main() {
%1 = alloca i32
%2 = alloca [256 x i32]
%3 = alloca [256 x i32]
%4 = alloca i32*
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [256 x i32]* %2 to i8*
%7 = bitcast [256 x i32]* %3 to i8*
%8 = call i32* @malloc(i32 1024)
store i32* %8, i32** %4
store i32 0, i32* %5
br label %9
9: ; preds = %21, %0
%10 = load i32, i32* %5
%11 = icmp slt i32 %10, 1
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load i32*, i32** %4
%14 = load i32, i32* %5
%15 = mul nsw i32 %14, 64
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = getelementptr inbounds i32, i32* %13, i64 %17
%19 = load i32, i32* %5
%20 = call i32 @print_block_down(i32* %18, i32 %19)
br label %21
21: ; preds = %12
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %9
24: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* @malloc(i32 1024)
%2 = tail call i32 @print_block_down(i32* %1, i32 0)
ret i32 0
}