char *appaserver_user_system_string(char *where) {
  char system_string[1024];
  sprintf(system_string, "select.sh \"%s\" appaserver_user \"%s\" none",
          appaserver_user_select(), where);
  {
    char msg[65536];
    sprintf(msg, "%s/%s()/%d: system_string = [%s]\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/timhriley/appaserver/refs/heads/master/"
            "library/appaserver_user.c",
            __FUNCTION__, 63, system_string);
    m2("donner", msg);
  }
  return strdup(system_string);
}


x86 assembly (clang, -O0):
<appaserver_user_system_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10420,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x410(%rbp),%rax
mov    %rax,-0x10418(%rbp)
mov    $0x0,%al
call   1040 <appaserver_user_select@plt>
mov    -0x10418(%rbp),%rdi
mov    %eax,%edx
mov    -0x8(%rbp),%rcx
lea    0xe88(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x10410(%rbp),%rdi
lea    -0x410(%rbp),%r9
lea    0xe95(%rip),%rsi
lea    0xeb0(%rip),%rdx
lea    0xf44(%rip),%rcx
mov    $0x3f,%r8d
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x10410(%rbp),%rsi
lea    0xf47(%rip),%rdi
mov    $0x0,%al
call   1030 <m2@plt>
lea    -0x410(%rbp),%rdi
call   1060 <strdup@plt>
add    $0x10420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<appaserver_user_system_string>:
push   %r14
push   %rbx
sub    $0x10408,%rsp
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <appaserver_user_select@plt>
lea    0xea5(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    %eax,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1050 <sprintf@plt>
lea    0xeb5(%rip),%rsi
lea    0xed0(%rip),%rdx
lea    0xf64(%rip),%rcx
lea    0x400(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3f,%r8d
mov    %r14,%r9
xor    %eax,%eax
call   1050 <sprintf@plt>
lea    0xf60(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <m2@plt>
mov    %r14,%rdi
call   1060 <strdup@plt>
add    $0x10408,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [41 x i8] c"select.sh \22%s\22 appaserver_user \22%s\22 none\00"
@.str.1 = [34 x i8] c"%s/%s()/%d: system_string = [%s]\0A\00"
@.str.2 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/timhriley/appaserver/refs/heads/master/library/appaserver_user.c\00"
@__FUNCTION__.appaserver_user_system_string = [30 x i8] c"appaserver_user_system_string\00"
@.str.3 = [7 x i8] c"donner\00"
define i8* @appaserver_user_system_string(i8* %0) {
%2 = alloca i8*
%3 = alloca [1024 x i8]
%4 = alloca [65536 x i8]
store i8* %0, i8** %2
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = call i32 (...) @appaserver_user_select()
%7 = load i8*, i8** %2
%8 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %7)
%9 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%11 = call i32 (i8*, i8*, ...) @sprintf(i8* %9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @__FUNCTION__.appaserver_user_system_string, i64 0, i64 0), i32 63, i8* %10)
%12 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 0
%13 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @m2 to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%15 = call i8* @strdup(i8* %14)
ret i8* %15
}

LLVM IR (-O2):
@.str = [41 x i8] c"select.sh \22%s\22 appaserver_user \22%s\22 none\00"
@.str.1 = [34 x i8] c"%s/%s()/%d: system_string = [%s]\0A\00"
@.str.2 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/timhriley/appaserver/refs/heads/master/library/appaserver_user.c\00"
@__FUNCTION__.appaserver_user_system_string = [30 x i8] c"appaserver_user_system_string\00"
@.str.3 = [7 x i8] c"donner\00"
define i8* @appaserver_user_system_string(i8* %0) {
%2 = alloca [1024 x i8]
%3 = alloca [65536 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%5 = tail call i32 (...) @appaserver_user_select()
%6 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %5, i8* %0)
%7 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%8 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @__FUNCTION__.appaserver_user_system_string, i64 0, i64 0), i32 63, i8* %4)
%9 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @m2 to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%10 = call i8* @strdup(i8* %4)
ret i8* %10
}