int main(void) {
  printf("%ld\n", __alignof__(char));
  printf("%ld\n", __alignof__(short));
  printf("%ld\n", __alignof__(int));
  printf("%ld\n", __alignof__(long));
  f0(1152921504606846976LL);
  f1(10, 576460752303423488LL);
  f2(20, 30, 288230376151711744LL);
  f3(40, 50, 60, 144115188075855872LL);
  f4(72057594037927936LL);
  f5(3, 36028797018963968LL, 18014398509481984LL, 9007199254740992LL);
  f6(70, 80, f7(4503599627370496LL), 576460752303423488LL);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe5a(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe47(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe34(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe21(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <printf@plt>
movabs $0x1000000000000000,%rdi
mov    $0x0,%al
call   1030 <f0@plt>
mov    $0xa,%edi
movabs $0x800000000000000,%rsi
mov    $0x0,%al
call   1080 <f1@plt>
mov    $0x14,%edi
mov    $0x1e,%esi
movabs $0x400000000000000,%rdx
mov    $0x0,%al
call   1040 <f2@plt>
mov    $0x28,%edi
mov    $0x32,%esi
mov    $0x3c,%edx
movabs $0x200000000000000,%rcx
mov    $0x0,%al
call   1070 <f3@plt>
movabs $0x100000000000000,%rdi
mov    $0x0,%al
call   10b0 <f4@plt>
mov    $0x3,%edi
movabs $0x80000000000000,%rsi
movabs $0x40000000000000,%rdx
movabs $0x20000000000000,%rcx
mov    $0x0,%al
call   10a0 <f5@plt>
movabs $0x10000000000000,%rdi
mov    $0x0,%al
call   1090 <f7@plt>
mov    %eax,%edx
mov    $0x46,%edi
mov    $0x50,%esi
movabs $0x800000000000000,%rcx
mov    $0x0,%al
call   1050 <f6@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe68(%rip),%rbx
mov    $0x1,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x8,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movabs $0x1000000000000000,%rdi
xor    %eax,%eax
call   1030 <f0@plt>
movabs $0x800000000000000,%rbx
mov    $0xa,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <f1@plt>
movabs $0x400000000000000,%rdx
mov    $0x14,%edi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <f2@plt>
movabs $0x200000000000000,%rcx
mov    $0x28,%edi
mov    $0x32,%esi
mov    $0x3c,%edx
xor    %eax,%eax
call   1070 <f3@plt>
movabs $0x100000000000000,%rdi
xor    %eax,%eax
call   10b0 <f4@plt>
movabs $0x80000000000000,%rsi
movabs $0x40000000000000,%rdx
movabs $0x20000000000000,%rcx
mov    $0x3,%edi
xor    %eax,%eax
call   10a0 <f5@plt>
movabs $0x10000000000000,%rdi
xor    %eax,%eax
call   1090 <f7@plt>
mov    $0x46,%edi
mov    $0x50,%esi
mov    %eax,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1050 <f6@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 2)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 4)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 8)
%6 = call i32 (i64, ...) bitcast (i32 (...)* @f0 to i32 (i64, ...)*)(i64 1152921504606846976)
%7 = call i32 (i32, i64, ...) bitcast (i32 (...)* @f1 to i32 (i32, i64, ...)*)(i32 10, i64 576460752303423488)
%8 = call i32 (i32, i32, i64, ...) bitcast (i32 (...)* @f2 to i32 (i32, i32, i64, ...)*)(i32 20, i32 30, i64 288230376151711744)
%9 = call i32 (i32, i32, i32, i64, ...) bitcast (i32 (...)* @f3 to i32 (i32, i32, i32, i64, ...)*)(i32 40, i32 50, i32 60, i64 144115188075855872)
%10 = call i32 (i64, ...) bitcast (i32 (...)* @f4 to i32 (i64, ...)*)(i64 72057594037927936)
%11 = call i32 (i32, i64, i64, i64, ...) bitcast (i32 (...)* @f5 to i32 (i32, i64, i64, i64, ...)*)(i32 3, i64 36028797018963968, i64 18014398509481984, i64 9007199254740992)
%12 = call i32 (i64, ...) bitcast (i32 (...)* @f7 to i32 (i64, ...)*)(i64 4503599627370496)
%13 = call i32 (i32, i32, i32, i64, ...) bitcast (i32 (...)* @f6 to i32 (i32, i32, i32, i64, ...)*)(i32 70, i32 80, i32 %12, i64 576460752303423488)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 1)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 2)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 8)
%5 = tail call i32 (i64, ...) bitcast (i32 (...)* @f0 to i32 (i64, ...)*)(i64 1152921504606846976)
%6 = tail call i32 (i32, i64, ...) bitcast (i32 (...)* @f1 to i32 (i32, i64, ...)*)(i32 10, i64 576460752303423488)
%7 = tail call i32 (i32, i32, i64, ...) bitcast (i32 (...)* @f2 to i32 (i32, i32, i64, ...)*)(i32 20, i32 30, i64 288230376151711744)
%8 = tail call i32 (i32, i32, i32, i64, ...) bitcast (i32 (...)* @f3 to i32 (i32, i32, i32, i64, ...)*)(i32 40, i32 50, i32 60, i64 144115188075855872)
%9 = tail call i32 (i64, ...) bitcast (i32 (...)* @f4 to i32 (i64, ...)*)(i64 72057594037927936)
%10 = tail call i32 (i32, i64, i64, i64, ...) bitcast (i32 (...)* @f5 to i32 (i32, i64, i64, i64, ...)*)(i32 3, i64 36028797018963968, i64 18014398509481984, i64 9007199254740992)
%11 = tail call i32 (i64, ...) bitcast (i32 (...)* @f7 to i32 (i64, ...)*)(i64 4503599627370496)
%12 = tail call i32 (i32, i32, i32, i64, ...) bitcast (i32 (...)* @f6 to i32 (i32, i32, i32, i64, ...)*)(i32 70, i32 80, i32 %11, i64 576460752303423488)
ret i32 0
}