#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*/ hskip(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ repeat(char, int);
void print_assignment_hdr() {
  printf("CURRENT ASSIGNMENTS\n");
  repeat('-', 80);
  printf("\n");
  printf(" Course");
  hskip(30 - 7);
  printf("Assignment");
  hskip(30 - 11);
  printf("Points\tDue\n");
  repeat('-', 80);
  printf("\n");
}


x86 assembly (clang, -O0):
<print_assignment_hdr>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2d,%edi
mov    $0x50,%esi
call   1040 <repeat@plt>
lea    0xebd(%rip),%rdi
call   1050 <printf@plt>
lea    0xeb3(%rip),%rdi
call   1050 <printf@plt>
mov    $0x17,%edi
call   1030 <hskip@plt>
lea    0xea5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x13,%edi
call   1030 <hskip@plt>
lea    0xe9a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2d,%edi
mov    $0x50,%esi
call   1040 <repeat@plt>
lea    0xe6a(%rip),%rdi
call   1050 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_assignment_hdr>:
push   %rax
lea    0xebb(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2d,%edi
mov    $0x50,%esi
call   1060 <repeat@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe83(%rip),%rdi
call   1070 <printf@plt>
mov    $0x17,%edi
call   1050 <hskip@plt>
lea    0xe75(%rip),%rdi
call   1070 <printf@plt>
mov    $0x13,%edi
call   1050 <hskip@plt>
lea    0xe7e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2d,%edi
mov    $0x50,%esi
call   1060 <repeat@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"CURRENT ASSIGNMENTS\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [8 x i8] c" Course\00"
@.str.3 = [11 x i8] c"Assignment\00"
@.str.4 = [12 x i8] c"Points\09Due\0A\00"
define void @print_assignment_hdr() {
%1 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @repeat(i8 signext 45, i32 80)
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @hskip(i32 23)
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @hskip(i32 19)
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @repeat(i8 signext 45, i32 80)
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.2 = [8 x i8] c" Course\00"
@.str.3 = [11 x i8] c"Assignment\00"
@str = [20 x i8] c"CURRENT ASSIGNMENTS\00"
@str.5 = [11 x i8] c"Points\09Due\00"
define void @print_assignment_hdr() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @repeat(i8 signext 45, i32 80)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @hskip(i32 23)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @hskip(i32 19)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.5, i64 0, i64 0))
%9 = tail call i32 @repeat(i8 signext 45, i32 80)
%10 = tail call i32 @putchar(i32 10)
ret void
}