#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, int);
int /*<<< orphan*/ printw(char *, ...);
void clearstat() {
  int row;
  move(22, 7 - 7);
  printw("          ");
  move(21, 7 - 7);
  printw("          ");
  move(23, 7 - 7);
  printw("          ");
  for (row = 21; row <= 23; row++) {
    move(row, 14);
    printw("%56s", " ");
  }
}


x86 assembly (clang, -O0):
<clearstat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x16,%edi
xor    %esi,%esi
call   1040 <move@plt>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0x15,%edi
xor    %esi,%esi
call   1040 <move@plt>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0x17,%edi
xor    %esi,%esi
call   1040 <move@plt>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
movl   $0x15,-0x4(%rbp)
cmpl   $0x17,-0x4(%rbp)
jg     11b7 <clearstat+0x97>
mov    -0x4(%rbp),%edi
mov    $0xe,%esi
call   1040 <move@plt>
lea    0xe70(%rip),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117d <clearstat+0x5d>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clearstat>:
push   %r14
push   %rbx
push   %rax
mov    $0x16,%edi
xor    %esi,%esi
call   1040 <move@plt>
lea    0xec9(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x15,%edi
xor    %esi,%esi
call   1040 <move@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x17,%edi
xor    %esi,%esi
call   1040 <move@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x15,%edi
mov    $0xe,%esi
call   1040 <move@plt>
lea    0xe88(%rip),%rbx
lea    0xe7f(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x16,%edi
mov    $0xe,%esi
call   1040 <move@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x17,%edi
mov    $0xe,%esi
call   1040 <move@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printw@plt>

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

LLVM IR (-O2):
@.str = [11 x i8] c" \00"
@.str.1 = [5 x i8] c"%56s\00"
@.str.2 = [2 x i8] c" \00"
define void @clearstat() {
%1 = tail call i32 @move(i32 22, i32 0)
%2 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @move(i32 21, i32 0)
%4 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @move(i32 23, i32 0)
%6 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @move(i32 21, i32 14)
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @move(i32 22, i32 14)
%10 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @move(i32 23, i32 14)
%12 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}