#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 */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int _maxx;
};
typedef TYPE_1__ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ mvwprintw(TYPE_1__ *, int, int, char *);
void fill_line_blank(WINDOW *win, int line) {
  int i;
  for (i = 0; i < win->_maxx; i++)
    mvwprintw(win, line, i, " ");
}


x86 assembly (clang, -O0):
<fill_line_blank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%eax
jge    1159 <fill_line_blank+0x49>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xeba(%rip),%rcx
call   1030 <mvwprintw@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <fill_line_blank+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fill_line_blank>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmpl   $0x0,(%rdi)
jle    1147 <fill_line_blank+0x37>
mov    %esi,%r14d
mov    %rdi,%rbx
xor    %ebp,%ebp
lea    0xed5(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r15,%rcx
call   1030 <mvwprintw@plt>
add    $0x1,%ebp
cmp    (%rbx),%ebp
jl     1130 <fill_line_blank+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32 }
@.str = [2 x i8] c" \00"
define void @fill_line_blank(%struct.TYPE_4__* %0, i32 %1) {
%3 = alloca %struct.TYPE_4__*
%4 = alloca i32
%5 = alloca i32
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %17, %2
%7 = load i32, i32* %5
%8 = load %struct.TYPE_4__*, %struct.TYPE_4__** %3
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %8, i32 0, i32 0
%10 = load i32, i32* %9
%11 = icmp slt i32 %7, %10
br i1 %11, label %12, label %20
12: ; preds = %6
%13 = load %struct.TYPE_4__*, %struct.TYPE_4__** %3
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = call i32 @mvwprintw(%struct.TYPE_4__* %13, i32 %14, i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %12
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %6
20: ; preds = %6
ret void
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32 }
@.str = [2 x i8] c" \00"
define void @fill_line_blank(%struct.TYPE_4__* %0, i32 %1) {
%3 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 0
%4 = load i32, i32* %3
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %2, %6
%7 = phi i32 [ %9, %6 ], [ 0, %2 ]
%8 = tail call i32 @mvwprintw(%struct.TYPE_4__* %0, i32 %1, i32 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = add nuw nsw i32 %7, 1
%10 = load i32, i32* %3
%11 = icmp slt i32 %9, %10
br i1 %11, label %6, label %12
12: ; preds = %6, %2
ret void
}