#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*/ move(int, scalar_t__);
int /*<<< orphan*/ printw(char *);
void clearabovemovebox() {
  int i;
  for (i = 0; i <= 11; i++) {
    move(2 + i, (0 + 31));
    printw("                                 ");
  }
  move(2 + 12, (0 + 31));
  printw("*--------------------------------");
}


x86 assembly (clang, -O0):
<clearabovemovebox>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0xb,-0x4(%rbp)
jg     1163 <clearabovemovebox+0x43>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xeb0(%rip),%rdi
call   1030 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <clearabovemovebox+0xf>
mov    $0xe,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xea9(%rip),%rdi
call   1030 <printw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clearabovemovebox>:
push   %rbx
mov    $0x1f,%esi
mov    $0x2,%edi
call   1040 <move@plt>
lea    0xec9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x3,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x4,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x5,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x6,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x7,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x8,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x9,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xa,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xb,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xc,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xd,%edi
call   1040 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xe,%edi
call   1040 <move@plt>
lea    0xdd0(%rip),%rdi
pop    %rbx
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [34 x i8] c" \00"
@.str.1 = [34 x i8] c"*--------------------------------\00"
define void @clearabovemovebox() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %10, %0
%3 = load i32, i32* %1
%4 = icmp sle i32 %3, 11
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = load i32, i32* %1
%7 = add nsw i32 2, %6
%8 = call i32 @move(i32 %7, i64 31)
%9 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %5
%11 = load i32, i32* %1
%12 = add nsw i32 %11, 1
store i32 %12, i32* %1
br label %2
13: ; preds = %2
%14 = call i32 @move(i32 14, i64 31)
%15 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c" \00"
@.str.1 = [34 x i8] c"*--------------------------------\00"
define void @clearabovemovebox() {
%1 = tail call i32 @move(i32 2, i64 31)
%2 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @move(i32 3, i64 31)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @move(i32 4, i64 31)
%6 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @move(i32 5, i64 31)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @move(i32 6, i64 31)
%10 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @move(i32 7, i64 31)
%12 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @move(i32 8, i64 31)
%14 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @move(i32 9, i64 31)
%16 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @move(i32 10, i64 31)
%18 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @move(i32 11, i64 31)
%20 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @move(i32 12, i64 31)
%22 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @move(i32 13, i64 31)
%24 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%25 = tail call i32 @move(i32 14, i64 31)
%26 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
ret void
}