#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 *);
void printChars(int char1[7][4], int char2[7][4]) {
  int i = 0, j = 0;
  for (i = 0; i < 7; i++) {
    for (j = 0; j < 4; j++) {
      if (char1[i][j] == 1) {
        printf("#");
      } else {
        printf(" ");
      }
    }
    printf("\t");
    for (j = 0; j < 4; j++) {
      if (char2[i][j] == 1) {
        printf("#");
      } else {
        printf(" ");
      }
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<printChars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    1221 <printChars+0x111>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    119d <printChars+0x8d>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    117e <printChars+0x6e>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
jmp    118a <printChars+0x7a>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
jmp    118f <printChars+0x7f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1146 <printChars+0x36>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    1207 <printChars+0xf7>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    11e8 <printChars+0xd8>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <printChars+0xe4>
lea    0xe13(%rip),%rdi
call   1030 <printf@plt>
jmp    11f9 <printChars+0xe9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b0 <printChars+0xa0>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1135 <printChars+0x25>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printChars>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0xc,%ebx
xor    %eax,%eax
cmpl   $0x1,-0xc(%r15,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,-0x8(%r15,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,-0x4(%r15,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,(%r15,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,-0xc(%r14,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,-0x8(%r14,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,-0x4(%r14,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmpl   $0x1,(%r14,%rbx,1)
sete   %al
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rbx
cmp    $0x7c,%rbx
jne    1120 <printChars+0x10>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"#\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c"\09\00"
@.str.3 = [2 x i8] c"\0A\00"
define void @printChars([4 x i32]* %0, [4 x i32]* %1) {
%3 = alloca [4 x i32]*
%4 = alloca [4 x i32]*
%5 = alloca i32
%6 = alloca i32
store [4 x i32]* %0, [4 x i32]** %3
store [4 x i32]* %1, [4 x i32]** %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %5
br label %7
7: ; preds = %57, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 7
br i1 %9, label %10, label %60
10: ; preds = %7
store i32 0, i32* %6
br label %11
11: ; preds = %29, %10
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load [4 x i32]*, [4 x i32]** %3
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 %17
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %18, i64 0, i64 %20
%22 = load i32, i32* %21
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %14
%25 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %28
26: ; preds = %14
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %24
br label %29
29: ; preds = %28
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
store i32 %31, i32* %6
br label %11
32: ; preds = %11
%33 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %6
br label %34
34: ; preds = %52, %32
%35 = load i32, i32* %6
%36 = icmp slt i32 %35, 4
br i1 %36, label %37, label %55
37: ; preds = %34
%38 = load [4 x i32]*, [4 x i32]** %4
%39 = load i32, i32* %5
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [4 x i32], [4 x i32]* %38, i64 %40
%42 = load i32, i32* %6
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [4 x i32], [4 x i32]* %41, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %37
%48 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %51
49: ; preds = %37
%50 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51
%53 = load i32, i32* %6
%54 = add nsw i32 %53, 1
store i32 %54, i32* %6
br label %34
55: ; preds = %34
%56 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %57
57: ; preds = %55
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %7
60: ; preds = %7
ret void
}

LLVM IR (-O2):
define void @printChars([4 x i32]* nocapture %0, [4 x i32]* nocapture %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %47, %3 ]
%5 = getelementptr inbounds [4 x i32], [4 x i32]* %0, i64 %4, i64 0
%6 = load i32, i32* %5
%7 = icmp eq i32 %6, 1
%8 = select i1 %7, i32 35, i32 32
%9 = tail call i32 @putchar(i32 %8)
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %0, i64 %4, i64 1
%11 = load i32, i32* %10
%12 = icmp eq i32 %11, 1
%13 = select i1 %12, i32 35, i32 32
%14 = tail call i32 @putchar(i32 %13)
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %0, i64 %4, i64 2
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 1
%18 = select i1 %17, i32 35, i32 32
%19 = tail call i32 @putchar(i32 %18)
%20 = getelementptr inbounds [4 x i32], [4 x i32]* %0, i64 %4, i64 3
%21 = load i32, i32* %20
%22 = icmp eq i32 %21, 1
%23 = select i1 %22, i32 35, i32 32
%24 = tail call i32 @putchar(i32 %23)
%25 = tail call i32 @putchar(i32 9)
%26 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 %4, i64 0
%27 = load i32, i32* %26
%28 = icmp eq i32 %27, 1
%29 = select i1 %28, i32 35, i32 32
%30 = tail call i32 @putchar(i32 %29)
%31 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 %4, i64 1
%32 = load i32, i32* %31
%33 = icmp eq i32 %32, 1
%34 = select i1 %33, i32 35, i32 32
%35 = tail call i32 @putchar(i32 %34)
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 %4, i64 2
%37 = load i32, i32* %36
%38 = icmp eq i32 %37, 1
%39 = select i1 %38, i32 35, i32 32
%40 = tail call i32 @putchar(i32 %39)
%41 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 %4, i64 3
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 1
%44 = select i1 %43, i32 35, i32 32
%45 = tail call i32 @putchar(i32 %44)
%46 = tail call i32 @putchar(i32 10)
%47 = add nuw nsw i64 %4, 1
%48 = icmp eq i64 %47, 7
br i1 %48, label %49, label %3
49: ; preds = %3
ret void
}