int va_args_macro_test(void) {
  printf("%s, %s, %d\r\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/victoryckl/ctools/refs/heads/master/mylib/"
         "va_args_macro.c",
         __FUNCTION__, 9);
  printf("%s, %s, %d\r\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/victoryckl/ctools/refs/heads/master/mylib/"
         "va_args_macro.c",
         __FUNCTION__, 10);
  printf("%s, %s, %d\r\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/victoryckl/ctools/refs/heads/master/mylib/"
         "va_args_macro.c",
         __FUNCTION__, 11);
  return 0;
}


x86 assembly (clang, -O0):
<va_args_macro_test>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeeb(%rip),%rsi
lea    0xf78(%rip),%rdx
mov    $0x9,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
lea    0xeca(%rip),%rsi
lea    0xf57(%rip),%rdx
mov    $0xa,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
lea    0xea9(%rip),%rsi
lea    0xf36(%rip),%rdx
mov    $0xb,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<va_args_macro_test>:
push   %r15
push   %r14
push   %rbx
lea    0xee4(%rip),%rbx
lea    0xeea(%rip),%r14
lea    0xf77(%rip),%r15
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x9,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0xa,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0xb,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%s, %s, %d\0D\0A\00"
@.str.1 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/victoryckl/ctools/refs/heads/master/mylib/va_args_macro.c\00"
@__FUNCTION__.va_args_macro_test = [19 x i8] c"va_args_macro_test\00"
define i32 @va_args_macro_test() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 9)
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 10)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 11)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%s, %s, %d\0D\0A\00"
@.str.1 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/victoryckl/ctools/refs/heads/master/mylib/va_args_macro.c\00"
@__FUNCTION__.va_args_macro_test = [19 x i8] c"va_args_macro_test\00"
define i32 @va_args_macro_test() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 9)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.va_args_macro_test, i64 0, i64 0), i32 11)
ret i32 0
}