void Test3(void) {
  char **arr = Rmalloc((1 * sizeof(char *)),
                       "/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/"
                       "roclick/refs/heads/master/src/rmalloc/rtest.c"
                       ":"
                       "181");
  char *bla =
      Rstrdup(("Kaputt!"), "/scratch/repos/new/home/jordi_armengol_estape/"
                           "c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/"
                           "roclick/refs/heads/master/src/rmalloc/rtest.c"
                           ":"
                           "182");
  arr[1] = bla;
  Rfree((arr), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/"
               "master/src/rmalloc/rtest.c"
               ":"
               "185");
  Rfree((bla), "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/"
               "master/src/rmalloc/rtest.c"
               ":"
               "186");
}


x86 assembly (clang, -O0):
<Test3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x8,%edi
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1030 <Rmalloc@plt>
cltq
mov    %rax,-0x8(%rbp)
lea    0xf3b(%rip),%rdi
lea    0xf3c(%rip),%rsi
mov    $0x0,%al
call   1050 <Rstrdup@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x8(%rbp),%rdi
lea    0xfab(%rip),%rsi
mov    $0x0,%al
call   1040 <Rfree@plt>
mov    -0x10(%rbp),%rdi
lea    0x102c(%rip),%rsi
mov    $0x0,%al
call   1040 <Rfree@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Test3>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rsi
mov    $0x8,%edi
xor    %eax,%eax
call   1030 <Rmalloc@plt>
movslq %eax,%r14
lea    0xf42(%rip),%rdi
lea    0xf43(%rip),%rsi
xor    %eax,%eax
call   1050 <Rstrdup@plt>
movslq %eax,%rbx
mov    %rbx,0x8(%r14)
lea    0xfc1(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <Rfree@plt>
lea    0x1043(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <Rfree@plt>

LLVM IR (-O0):
@.str = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:181\00"
@.str.1 = [8 x i8] c"Kaputt!\00"
@.str.2 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:182\00"
@.str.3 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:185\00"
@.str.4 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:186\00"
define void @Test3() {
%1 = alloca i8**
%2 = alloca i8*
%3 = call i32 (i64, i8*, ...) bitcast (i32 (...)* @Rmalloc to i32 (i64, i8*, ...)*)(i64 8, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0))
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8**
store i8** %5, i8*** %1
%6 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Rstrdup to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.2, i64 0, i64 0))
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %2
%9 = load i8*, i8** %2
%10 = load i8**, i8*** %1
%11 = getelementptr inbounds i8*, i8** %10, i64 1
store i8* %9, i8** %11
%12 = load i8**, i8*** %1
%13 = call i32 (i8**, i8*, ...) bitcast (i32 (...)* @Rfree to i32 (i8**, i8*, ...)*)(i8** %12, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.3, i64 0, i64 0))
%14 = load i8*, i8** %2
%15 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Rfree to i32 (i8*, i8*, ...)*)(i8* %14, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:181\00"
@.str.1 = [8 x i8] c"Kaputt!\00"
@.str.2 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:182\00"
@.str.3 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:185\00"
@.str.4 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Tathar/roclick/refs/heads/master/src/rmalloc/rtest.c:186\00"
define void @Test3() {
%1 = tail call i32 (i64, i8*, ...) bitcast (i32 (...)* @Rmalloc to i32 (i64, i8*, ...)*)(i64 8, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0))
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to i8**
%4 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Rstrdup to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.2, i64 0, i64 0))
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i8*
%7 = getelementptr inbounds i8*, i8** %3, i64 1
store i8* %6, i8** %7
%8 = tail call i32 (i8**, i8*, ...) bitcast (i32 (...)* @Rfree to i32 (i8**, i8*, ...)*)(i8** %3, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Rfree to i32 (i8*, i8*, ...)*)(i8* %6, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.4, i64 0, i64 0))
ret void
}