#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, int, ...);
void print_border() {
  int c, r;
  char horizontal[44] = "-------------------------------------------";
  for (r = 1; r < 4; r++)
    printf("\e[%d;%dH%s", r * 6, 1, horizontal);
  for (c = 1; c < 5; c++)
    for (r = 1; r < 24; r++)
      printf("\e[%d;%dH|", r, 11 * c);
  for (c = 1; c < 5; c++)
    for (r = 1; r < 4; r++)
      printf("\e[%d;%dH%c", r * 6, c * 11, '+');
}


x86 assembly (clang, -O0):
<print_border>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x40(%rbp),%rdi
lea    0xecd(%rip),%rsi
mov    $0x2c,%edx
call   1040 <memcpy@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    1177 <print_border+0x57>
imul   $0x6,-0x8(%rbp),%esi
lea    -0x40(%rbp),%rcx
lea    0xecf(%rip),%rdi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <print_border+0x24>
movl   $0x1,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    11cf <print_border+0xaf>
movl   $0x1,-0x8(%rbp)
cmpl   $0x18,-0x8(%rbp)
jge    11bc <print_border+0x9c>
mov    -0x8(%rbp),%esi
imul   $0xb,-0x4(%rbp),%edx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118f <print_border+0x6f>
jmp    11c1 <print_border+0xa1>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117e <print_border+0x5e>
movl   $0x1,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    122d <print_border+0x10d>
movl   $0x1,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    121a <print_border+0xfa>
imul   $0x6,-0x8(%rbp),%esi
imul   $0xb,-0x4(%rbp),%edx
lea    0xe41(%rip),%rdi
mov    $0x2b,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e7 <print_border+0xc7>
jmp    121f <print_border+0xff>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11d6 <print_border+0xb6>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_border>:
push   %r14
push   %rbx
sub    $0x38,%rsp
movups 0xefe(%rip),%xmm0
movups %xmm0,0x1c(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xeeb(%rip),%r14
mov    %rsp,%rbx
mov    %r14,%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xb,%ebx
lea    0xea2(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    $0x1,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x9,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xa,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xb,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xc,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xd,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xe,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xf,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x10,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x11,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x12,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x13,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x14,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x15,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x16,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x17,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
add    $0xb,%ebx
cmp    $0x37,%ebx
jne    11a0 <print_border+0x90>
lea    0xd07(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0xb,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0xb,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0xb,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x16,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x16,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0x16,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x21,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x21,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0x21,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x2c,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x2c,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0x2c,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@__const.print_border.horizontal = [44 x i8] c"-------------------------------------------\00"
@.str = [11 x i8] c"\1B[%d;%dH%s\00"
@.str.1 = [10 x i8] c"\1B[%d;%dH|\00"
@.str.2 = [11 x i8] c"\1B[%d;%dH%c\00"
define void @print_border() {
%1 = alloca [44 x i8]
%2 = getelementptr inbounds [44 x i8], [44 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 6, i32 1, i8* %2)
%4 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 12, i32 1, i8* %2)
%5 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 18, i32 1, i8* %2)
br label %6
6: ; preds = %0, %6
%7 = phi i32 [ %32, %6 ], [ 1, %0 ]
%8 = mul nuw nsw i32 %7, 11
%9 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 %8)
%10 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 %8)
%11 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 %8)
%12 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 %8)
%13 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 %8)
%14 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 %8)
%15 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 %8)
%16 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 %8)
%17 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 %8)
%18 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 10, i32 %8)
%19 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 11, i32 %8)
%20 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 12, i32 %8)
%21 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 13, i32 %8)
%22 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 14, i32 %8)
%23 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 15, i32 %8)
%24 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 16, i32 %8)
%25 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 %8)
%26 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 %8)
%27 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 %8)
%28 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 %8)
%29 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 21, i32 %8)
%30 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 22, i32 %8)
%31 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 23, i32 %8)
%32 = add nuw nsw i32 %7, 1
%33 = icmp eq i32 %32, 5
br i1 %33, label %34, label %6
34: ; preds = %6
%35 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 11, i32 43)
%36 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 11, i32 43)
%37 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 18, i32 11, i32 43)
%38 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 22, i32 43)
%39 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 22, i32 43)
%40 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 18, i32 22, i32 43)
%41 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 33, i32 43)
%42 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 33, i32 43)
%43 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 18, i32 33, i32 43)
%44 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 44, i32 43)
%45 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 12, i32 44, i32 43)
%46 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 18, i32 44, i32 43)
ret void
}