#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*/ printf(char *, char);
void hline(int a, int b) {
  int i;
  for (i = 0; i < a; i++) {
    printf("%c", '\n');
  }
  for (i = 0; i < 80; i++) {
    printf("%c", '*');
  }
  for (i = 0; i < b; i++) {
    printf("%c", '\n');
  }
}


x86 assembly (clang, -O0):
<hline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1150 <hline+0x40>
lea    0xec8(%rip),%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1125 <hline+0x15>
movl   $0x0,-0xc(%rbp)
cmpl   $0x50,-0xc(%rbp)
jge    1180 <hline+0x70>
lea    0xe98(%rip),%rdi
mov    $0x2a,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1157 <hline+0x47>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11b2 <hline+0xa2>
lea    0xe66(%rip),%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1187 <hline+0x77>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hline>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
test   %edi,%edi
jle    1142 <hline+0x32>
mov    %edi,%ebp
lea    0xedd(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    1130 <hline+0x20>
mov    $0x50,%ebp
lea    0xeb2(%rip),%r14
xchg   %ax,%ax
mov    %r14,%rdi
mov    $0x2a,%esi
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    1150 <hline+0x40>
test   %ebx,%ebx
jle    1182 <hline+0x72>
lea    0xe93(%rip),%rbp
nopl   (%rax)
mov    %rbp,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
add    $0xffffffff,%ebx
jne    1170 <hline+0x60>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define void @hline(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %12, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 10)
br label %12
12: ; preds = %10
%13 = load i32, i32* %5
%14 = add nsw i32 %13, 1
store i32 %14, i32* %5
br label %6
15: ; preds = %6
store i32 0, i32* %5
br label %16
16: ; preds = %21, %15
%17 = load i32, i32* %5
%18 = icmp slt i32 %17, 80
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 42)
br label %21
21: ; preds = %19
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %16
24: ; preds = %16
store i32 0, i32* %5
br label %25
25: ; preds = %31, %24
%26 = load i32, i32* %5
%27 = load i32, i32* %4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 10)
br label %31
31: ; preds = %29
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %25
34: ; preds = %25
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define void @hline(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %5, label %4
4: ; preds = %5, %2
br label %12
5: ; preds = %2, %5
%6 = phi i32 [ %8, %5 ], [ 0, %2 ]
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 10)
%8 = add nuw nsw i32 %6, 1
%9 = icmp eq i32 %8, %0
br i1 %9, label %4, label %5
10: ; preds = %12
%11 = icmp sgt i32 %1, 0
br i1 %11, label %17, label %22
12: ; preds = %4, %12
%13 = phi i32 [ %15, %12 ], [ 0, %4 ]
%14 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 42)
%15 = add nuw nsw i32 %13, 1
%16 = icmp eq i32 %15, 80
br i1 %16, label %10, label %12
17: ; preds = %10, %17
%18 = phi i32 [ %20, %17 ], [ 0, %10 ]
%19 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 10)
%20 = add nuw nsw i32 %18, 1
%21 = icmp eq i32 %20, %1
br i1 %21, label %22, label %17
22: ; preds = %17, %10
ret void
}