#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 main(void) {
  int i, j;
  printf(" __ __ __  __ __ __  __ __ __\n");
  for (i = 0; i < 9; i++) {
    for (j = 0; j < 9; j++) {
      if (j == 3 || j == 6) {
        printf("||__");
      } else {
        printf("|__");
      }
    }
    printf("|");
    printf("\n");
    if (i == 2 || i == 5) {
      printf(" __ __ __  __ __ __  __ __ __\n");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jge    11dc <main+0xcc>
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    1191 <main+0x81>
cmpl   $0x3,-0xc(%rbp)
je     1161 <main+0x51>
cmpl   $0x6,-0xc(%rbp)
jne    1172 <main+0x62>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
jmp    117e <main+0x6e>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
jmp    1183 <main+0x73>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1143 <main+0x33>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
je     11bd <main+0xad>
cmpl   $0x5,-0x8(%rbp)
jne    11c9 <main+0xb9>
lea    0xe3c(%rip),%rdi
call   1030 <printf@plt>
jmp    11ce <main+0xbe>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1132 <main+0x22>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xec7(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %ebp,%ebp
lea    0xeb2(%rip),%rbx
lea    0xeaa(%rip),%r15
jmp    1170 <main+0x40>
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <puts@plt>
add    $0x1,%ebp
cmp    $0x9,%ebp
je     11d8 <main+0xa8>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    $0x5,%ebp
je     1160 <main+0x30>
cmp    $0x2,%ebp
je     1160 <main+0x30>
jmp    1168 <main+0x38>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c" __ __ __ __ __ __ __ __ __\0A\00"
@.str.1 = [5 x i8] c"||__\00"
@.str.2 = [4 x i8] c"|__\00"
@.str.3 = [2 x i8] c"|\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %5
5: ; preds = %37, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 9
br i1 %7, label %8, label %40
8: ; preds = %5
store i32 0, i32* %3
br label %9
9: ; preds = %23, %8
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 9
br i1 %11, label %12, label %26
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 3
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 6
br i1 %17, label %18, label %20
18: ; preds = %15, %12
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %9
26: ; preds = %9
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, 2
br i1 %30, label %34, label %31
31: ; preds = %26
%32 = load i32, i32* %2
%33 = icmp eq i32 %32, 5
br i1 %33, label %34, label %36
34: ; preds = %31, %26
%35 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
br label %37
37: ; preds = %36
%38 = load i32, i32* %2
%39 = add nsw i32 %38, 1
store i32 %39, i32* %2
br label %5
40: ; preds = %5
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"||__\00"
@.str.2 = [4 x i8] c"|__\00"
@str.5 = [30 x i8] c" __ __ __ __ __ __ __ __ __\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.5, i64 0, i64 0))
br label %2
2: ; preds = %0, %17
%3 = phi i32 [ 0, %0 ], [ %18, %17 ]
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 124)
%14 = tail call i32 @putchar(i32 10)
switch i32 %3, label %17 [
i32 5, label %15
i32 2, label %15
]
15: ; preds = %2, %2
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.5, i64 0, i64 0))
br label %17
17: ; preds = %2, %15
%18 = add nuw nsw i32 %3, 1
%19 = icmp eq i32 %18, 9
br i1 %19, label %20, label %2
20: ; preds = %17
ret i32 0
}