#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 = 0;
  int j = 0;
  int k = 0;
  while (1) {
    while (i++ < 33) {
      for (j = 0; j < 33; j++) {
        if (j == i) {
          printf("*");
          continue;
        }
        printf("      ");
      }
      printf("\n");
    }
    i = 0;
    while (i++ < 32) {
      for (j = 0; j < 32; j++) {
        if (j + i == 32) {
          printf("*");
          continue;
        }
        printf("      ");
      }
      printf("\n");
    }
    i = 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
jmp    1139 <main+0x29>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x21,%eax
jge    11a6 <main+0x96>
movl   $0x0,-0xc(%rbp)
cmpl   $0x21,-0xc(%rbp)
jge    1195 <main+0x85>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    117b <main+0x6b>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
jmp    1187 <main+0x77>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1154 <main+0x44>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    1139 <main+0x29>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x20,%eax
jge    121d <main+0x10d>
movl   $0x0,-0xc(%rbp)
cmpl   $0x20,-0xc(%rbp)
jge    120c <main+0xfc>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
cmp    $0x20,%eax
jne    11f2 <main+0xe2>
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
jmp    11fe <main+0xee>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11c8 <main+0xb8>
lea    0xdf6(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x9d>
movl   $0x0,-0x8(%rbp)
jmp    1134 <main+0x24>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebp
lea    0xecd(%rip),%r14
jmp    1145 <main+0x25>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x1,%ebp
xor    %ebx,%ebx
jmp    1160 <main+0x40>
nopl   0x0(%rax)
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%ebx
cmp    $0x21,%ebx
je     1170 <main+0x50>
cmp    %ebx,%ebp
jne    1150 <main+0x30>
mov    $0x2a,%edi
call   1030 <putchar@plt>
jmp    1158 <main+0x38>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    $0x22,%ebp
jne    1145 <main+0x25>
mov    $0x1,%r15d
xor    %ebx,%ebx
jmp    11a7 <main+0x87>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15d
add    $0x1,%ebx
cmp    $0x21,%r15d
je     1140 <main+0x20>
mov    $0x1f,%ebp
jmp    11bd <main+0x9d>
xchg   %ax,%ax
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jae    1190 <main+0x70>
cmp    %ebp,%ebx
jne    11b0 <main+0x90>
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jb     11bd <main+0x9d>
jmp    1190 <main+0x70>

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

LLVM IR (-O2):
@.str.1 = [7 x i8] c" \00"
define i32 @main() {
br label %1
1: ; preds = %17, %0
%2 = phi i32 [ 1, %0 ], [ %18, %17 ]
br label %3
3: ; preds = %1, %10
%4 = phi i32 [ 0, %1 ], [ %11, %10 ]
%5 = icmp eq i32 %4, %2
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @putchar(i32 42)
br label %10
8: ; preds = %3
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %6
%11 = add nuw nsw i32 %4, 1
%12 = icmp eq i32 %11, 33
br i1 %12, label %13, label %3
13: ; preds = %10
%14 = tail call i32 @putchar(i32 10)
%15 = add nuw nsw i32 %2, 1
%16 = icmp eq i32 %15, 34
br i1 %16, label %19, label %17
17: ; preds = %32, %13
%18 = phi i32 [ %15, %13 ], [ 1, %32 ]
br label %1
19: ; preds = %13, %32
%20 = phi i32 [ %34, %32 ], [ 1, %13 ]
br label %21
21: ; preds = %19, %29
%22 = phi i32 [ 0, %19 ], [ %30, %29 ]
%23 = add nuw nsw i32 %22, %20
%24 = icmp eq i32 %23, 32
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 @putchar(i32 42)
br label %29
27: ; preds = %21
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
%30 = add nuw nsw i32 %22, 1
%31 = icmp eq i32 %30, 32
br i1 %31, label %32, label %21
32: ; preds = %29
%33 = tail call i32 @putchar(i32 10)
%34 = add nuw nsw i32 %20, 1
%35 = icmp eq i32 %34, 33
br i1 %35, label %17, label %19
}