#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*/ printf(char *, ...);
int xt_core_toss_coin();
int main(int argc, char *argv[]) {
  unsigned long n;
  unsigned long m;
  for (n = 0; n < 32; n++) {
    for (m = 0; m < 64; m++) {
      printf("%i", xt_core_toss_coin());
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x20,-0x18(%rbp)
jae    11a3 <main+0x83>
movq   $0x0,-0x20(%rbp)
cmpq   $0x40,-0x20(%rbp)
jae    1184 <main+0x64>
mov    $0x0,%al
call   1030 <xt_core_toss_coin@plt>
mov    %eax,%esi
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1151 <main+0x31>
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    113e <main+0x1e>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xec4(%rip),%r15
xor    %r14d,%r14d
nop
mov    $0x40,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1040 <xt_core_toss_coin@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffffffffffff,%rbx
jne    1150 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
cmp    $0x20,%r14
jne    1140 <main+0x10>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
br label %8
8: ; preds = %23, %2
%9 = load i64, i64* %6
%10 = icmp ult i64 %9, 32
br i1 %10, label %11, label %26
11: ; preds = %8
store i64 0, i64* %7
br label %12
12: ; preds = %18, %11
%13 = load i64, i64* %7
%14 = icmp ult i64 %13, 64
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = call i32 (...) @xt_core_toss_coin()
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %15
%19 = load i64, i64* %7
%20 = add i64 %19, 1
store i64 %20, i64* %7
br label %12
21: ; preds = %12
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21
%24 = load i64, i64* %6
%25 = add i64 %24, 1
store i64 %25, i64* %6
br label %8
26: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %11
%4 = phi i64 [ 0, %2 ], [ %13, %11 ]
br label %5
5: ; preds = %3, %5
%6 = phi i64 [ 0, %3 ], [ %9, %5 ]
%7 = tail call i32 (...) @xt_core_toss_coin()
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = add nuw nsw i64 %6, 1
%10 = icmp eq i64 %9, 64
br i1 %10, label %11, label %5
11: ; preds = %5
%12 = tail call i32 @putchar(i32 10)
%13 = add nuw nsw i64 %4, 1
%14 = icmp eq i64 %13, 32
br i1 %14, label %15, label %3
15: ; preds = %11
ret i32 0
}