#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*/ locate(int, int);
int /*<<< orphan*/ printf(char *);
void clrbox() {
  register int i;
  for (i = 2 + 1; i < 2 + 12 - 1; i++) {
    locate(i, 42 - 23 + 1);
    printf("                                       ");
  }
}


x86 assembly (clang, -O0):
<clrbox>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x3,-0x4(%rbp)
cmpl   $0xd,-0x4(%rbp)
jge    1160 <clrbox+0x40>
mov    -0x4(%rbp),%edi
mov    $0x14,%esi
call   1040 <locate@plt>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <clrbox+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clrbox>:
push   %rbx
mov    $0x3,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
lea    0xec9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x4,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x7,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x8,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x9,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0xa,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0xb,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0xc,%edi
mov    $0x14,%esi
call   1040 <locate@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [40 x i8] c" \00"
define void @clrbox() {
%1 = tail call i32 @locate(i32 3, i32 20)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @locate(i32 4, i32 20)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @locate(i32 5, i32 20)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @locate(i32 6, i32 20)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @locate(i32 7, i32 20)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @locate(i32 8, i32 20)
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @locate(i32 9, i32 20)
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @locate(i32 10, i32 20)
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @locate(i32 11, i32 20)
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @locate(i32 12, i32 20)
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
ret void
}