#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*/ mcurses_addch(int, int, char);
int mcurses_vline(int col, char c) {
  int i = 0;
  for (i = 0; i < 16; i++) {
    mcurses_addch(col, i, c);
  }
}


x86 assembly (clang, -O0):
<mcurses_vline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %edi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x10,-0x10(%rbp)
jge    1156 <mcurses_vline+0x46>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%esi
movsbl -0x9(%rbp),%edx
call   1030 <mcurses_addch@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112f <mcurses_vline+0x1f>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mcurses_vline>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
xor    %esi,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x1,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x2,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x3,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x4,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x5,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x6,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x7,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x8,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0x9,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xa,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xb,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xc,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xd,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xe,%esi
mov    %ebx,%edx
call   1030 <mcurses_addch@plt>
mov    %ebp,%edi
mov    $0xf,%esi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <mcurses_addch@plt>

LLVM IR (-O0):
define i32 @mcurses_vline(i32 %0, i8 signext %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
store i32 %0, i32* %4
store i8 %1, i8* %5
store i32 0, i32* %6
store i32 0, i32* %6
br label %7
7: ; preds = %15, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 16
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load i32, i32* %4
%12 = load i32, i32* %6
%13 = load i8, i8* %5
%14 = call i32 @mcurses_addch(i32 %11, i32 %12, i8 signext %13)
br label %15
15: ; preds = %10
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
br label %7
18: ; preds = %7
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
define i32 @mcurses_vline(i32 %0, i8 signext %1) {
%3 = tail call i32 @mcurses_addch(i32 %0, i32 0, i8 signext %1)
%4 = tail call i32 @mcurses_addch(i32 %0, i32 1, i8 signext %1)
%5 = tail call i32 @mcurses_addch(i32 %0, i32 2, i8 signext %1)
%6 = tail call i32 @mcurses_addch(i32 %0, i32 3, i8 signext %1)
%7 = tail call i32 @mcurses_addch(i32 %0, i32 4, i8 signext %1)
%8 = tail call i32 @mcurses_addch(i32 %0, i32 5, i8 signext %1)
%9 = tail call i32 @mcurses_addch(i32 %0, i32 6, i8 signext %1)
%10 = tail call i32 @mcurses_addch(i32 %0, i32 7, i8 signext %1)
%11 = tail call i32 @mcurses_addch(i32 %0, i32 8, i8 signext %1)
%12 = tail call i32 @mcurses_addch(i32 %0, i32 9, i8 signext %1)
%13 = tail call i32 @mcurses_addch(i32 %0, i32 10, i8 signext %1)
%14 = tail call i32 @mcurses_addch(i32 %0, i32 11, i8 signext %1)
%15 = tail call i32 @mcurses_addch(i32 %0, i32 12, i8 signext %1)
%16 = tail call i32 @mcurses_addch(i32 %0, i32 13, i8 signext %1)
%17 = tail call i32 @mcurses_addch(i32 %0, i32 14, i8 signext %1)
%18 = tail call i32 @mcurses_addch(i32 %0, i32 15, i8 signext %1)
ret i32 undef
}