void printconsts() {
  char *majorline = repchar('=', 100);
  char *minorline = repchar('-', 100);
  puts(majorline);
  printf("%*s\n", 100 - 2, "TYPE-RELATED CONSTANTS");
  puts(majorline);
  putchar('\n');
}


x86 assembly (clang, -O0):
<printconsts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3d,%edi
mov    $0x64,%esi
mov    $0x0,%al
call   1060 <repchar@plt>
cltq
mov    %rax,-0x8(%rbp)
mov    $0x2d,%edi
mov    $0x64,%esi
mov    $0x0,%al
call   1060 <repchar@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <puts@plt>
lea    0xe78(%rip),%rdi
mov    $0x62,%esi
lea    0xe71(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <puts@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printconsts>:
push   %rbx
mov    $0x3d,%edi
mov    $0x64,%esi
xor    %eax,%eax
call   1060 <repchar@plt>
movslq %eax,%rbx
mov    $0x2d,%edi
mov    $0x64,%esi
xor    %eax,%eax
call   1060 <repchar@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <puts@plt>
lea    0xe89(%rip),%rdi
lea    0xe87(%rip),%rdx
mov    $0x62,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <puts@plt>
mov    $0xa,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"%*s\0A\00"
@.str.1 = [23 x i8] c"TYPE-RELATED CONSTANTS\00"
define void @printconsts() {
%1 = alloca i8*
%2 = alloca i8*
%3 = call i32 (i32, i32, ...) bitcast (i32 (...)* @repchar to i32 (i32, i32, ...)*)(i32 61, i32 100)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
store i8* %5, i8** %1
%6 = call i32 (i32, i32, ...) bitcast (i32 (...)* @repchar to i32 (i32, i32, ...)*)(i32 45, i32 100)
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %2
%9 = load i8*, i8** %1
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 98, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%12 = load i8*, i8** %1
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %12)
%14 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%*s\0A\00"
@.str.1 = [23 x i8] c"TYPE-RELATED CONSTANTS\00"
define void @printconsts() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @repchar to i32 (i32, i32, ...)*)(i32 61, i32 100)
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @repchar to i32 (i32, i32, ...)*)(i32 45, i32 100)
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %3)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 98, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* %3)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
ret void
}