#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 start_map() {
  int i;
  int j;
  for (i = 0; i < 20 + 3; i++) {
    for (j = 0; j < 76 + 3; j++) {
      if (i == 0 || i == 20 + 2) {
        printf("=");
      } else if (j == 0 || j == 76 + 2) {
        printf("|");
      } else {
        printf(" ");
      }
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<start_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x17,-0x4(%rbp)
jge    11c2 <start_map+0xb2>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4f,-0x8(%rbp)
jge    11a8 <start_map+0x98>
cmpl   $0x0,-0x4(%rbp)
je     114e <start_map+0x3e>
cmpl   $0x16,-0x4(%rbp)
jne    115f <start_map+0x4f>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
jmp    1195 <start_map+0x85>
cmpl   $0x0,-0x8(%rbp)
je     1173 <start_map+0x63>
cmpl   $0x4e,-0x8(%rbp)
jne    1184 <start_map+0x74>
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
jmp    1190 <start_map+0x80>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    1195 <start_map+0x85>
jmp    119a <start_map+0x8a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <start_map+0x20>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <start_map+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start_map>:
push   %rbp
push   %r14
push   %rbx
xor    %ebx,%ebx
mov    $0x7c,%r14d
jmp    1132 <start_map+0x22>
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x17,%ebx
je     116d <start_map+0x5d>
mov    $0x4f,%ebp
jmp    114a <start_map+0x3a>
nopl   0x0(%rax)
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
je     1120 <start_map+0x10>
mov    $0x3d,%edi
test   %ebx,%ebx
je     1140 <start_map+0x30>
cmp    $0x16,%ebx
je     1140 <start_map+0x30>
cmp    $0x4f,%ebp
mov    $0x20,%edi
cmove  %r14d,%edi
cmp    $0x1,%ebp
cmove  %r14d,%edi
jmp    1140 <start_map+0x30>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define void @start_map() {
br label %1
1: ; preds = %0, %15
%2 = phi i32 [ 0, %0 ], [ %17, %15 ]
br label %3
3: ; preds = %1, %10
%4 = phi i32 [ 0, %1 ], [ %13, %10 ]
switch i32 %2, label %5 [
i32 22, label %10
i32 0, label %10
]
5: ; preds = %3
%6 = icmp eq i32 %4, 78
%7 = icmp eq i32 %4, 0
%8 = or i1 %6, %7
%9 = select i1 %8, i32 124, i32 32
br label %10
10: ; preds = %5, %3, %3
%11 = phi i32 [ 61, %3 ], [ 61, %3 ], [ %9, %5 ]
%12 = tail call i32 @putchar(i32 %11)
%13 = add nuw nsw i32 %4, 1
%14 = icmp eq i32 %13, 79
br i1 %14, label %15, label %3
15: ; preds = %10
%16 = tail call i32 @putchar(i32 10)
%17 = add nuw nsw i32 %2, 1
%18 = icmp eq i32 %17, 23
br i1 %18, label %19, label %1
19: ; preds = %15
ret void
}