int main(int argc, char **argv) {
  log_debug("D",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/"
            "sources/c-mock-objects/file-access/src/main.c",
            __func__, 86, getpid(), "Start");
  if (3 != argc) {
    log_debug("E",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/"
              "sources/c-mock-objects/file-access/src/main.c",
              __func__, 89, getpid(), "A number of argument is incorrect.");
    return -1;
  }
  log_debug("D",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/"
            "sources/c-mock-objects/file-access/src/main.c",
            __func__, 93, getpid(), "Source Path is %s  Dest Path is %s",
            argv[1], argv[2]);
  subfunc(argv[1], argv[2]);
  log_debug("D",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/"
            "sources/c-mock-objects/file-access/src/main.c",
            __func__, 98, getpid(), "Exit");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%r8d
lea    0xea9(%rip),%rdi
lea    0xea4(%rip),%rsi
lea    0xf47(%rip),%rdx
mov    $0x56,%ecx
lea    0xf40(%rip),%r9
mov    $0x0,%al
call   1050 <log_debug@plt>
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
je     11c4 <main+0x94>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%r8d
lea    0xf20(%rip),%rdi
lea    0xe64(%rip),%rsi
lea    0xf07(%rip),%rdx
mov    $0x59,%ecx
lea    0xf08(%rip),%r9
mov    $0x0,%al
call   1050 <log_debug@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    125f <main+0x12f>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%r8d
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%r10
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
lea    0xe1b(%rip),%rdi
lea    0xe16(%rip),%rsi
lea    0xeb9(%rip),%rdx
mov    $0x5d,%ecx
lea    0xedd(%rip),%r9
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <log_debug@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    $0x0,%al
call   1030 <subfunc@plt>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%r8d
lea    0xdc9(%rip),%rdi
lea    0xdc4(%rip),%rsi
lea    0xe67(%rip),%rdx
mov    $0x62,%ecx
lea    0xeae(%rip),%r9
mov    $0x0,%al
call   1050 <log_debug@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %r13d,%r13d
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xeac(%rip),%rdi
lea    0xea7(%rip),%rsi
lea    0xf4a(%rip),%rdx
lea    0xf48(%rip),%r9
mov    $0x56,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1050 <log_debug@plt>
xor    %eax,%eax
call   1040 <getpid@plt>
cmp    $0x3,%ebp
jne    11f7 <main+0xc7>
movups 0x8(%rbx),%xmm0
movups %xmm0,(%rsp)
lea    0xe6d(%rip),%r14
lea    0xe68(%rip),%r15
lea    0xf0b(%rip),%r12
lea    0xf34(%rip),%r9
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x5d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1050 <log_debug@plt>
mov    0x8(%rbx),%rdi
mov    0x10(%rbx),%rsi
xor    %eax,%eax
call   1030 <subfunc@plt>
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xf22(%rip),%r9
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x62,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1050 <log_debug@plt>
jmp    1228 <main+0xf8>
lea    0xeb9(%rip),%rdi
lea    0xdfd(%rip),%rsi
lea    0xea0(%rip),%rdx
lea    0xea6(%rip),%r9
mov    $0x59,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1050 <log_debug@plt>
mov    $0xffffffff,%r13d
mov    %r13d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"D\00"
@.str.1 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/sources/c-mock-objects/file-access/src/main.c\00"
@__func__.main = [5 x i8] c"main\00"
@.str.2 = [6 x i8] c"Start\00"
@.str.3 = [2 x i8] c"E\00"
@.str.4 = [35 x i8] c"A number of argument is incorrect.\00"
@.str.5 = [35 x i8] c"Source Path is %s Dest Path is %s\00"
@.str.6 = [5 x i8] c"Exit\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @getpid()
%7 = call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 86, i32 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* %4
%9 = icmp ne i32 3, %8
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (...) @getpid()
%12 = call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 89, i32 %11, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %3
br label %31
13: ; preds = %2
%14 = call i32 (...) @getpid()
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = call i32 (i8*, i8*, i8*, i32, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 93, i32 %14, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8* %17, i8* %20)
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @subfunc to i32 (i8*, i8*, ...)*)(i8* %24, i8* %27)
%29 = call i32 (...) @getpid()
%30 = call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 98, i32 %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %31
31: ; preds = %13, %10
%32 = load i32, i32* %3
ret i32 %32
}

LLVM IR (-O2):
@.str = [2 x i8] c"D\00"
@.str.1 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/seabat/TohriSDK/refs/heads/master/sources/c-mock-objects/file-access/src/main.c\00"
@__func__.main = [5 x i8] c"main\00"
@.str.2 = [6 x i8] c"Start\00"
@.str.3 = [2 x i8] c"E\00"
@.str.4 = [35 x i8] c"A number of argument is incorrect.\00"
@.str.5 = [35 x i8] c"Source Path is %s Dest Path is %s\00"
@.str.6 = [5 x i8] c"Exit\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 (...) @getpid()
%4 = tail call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 86, i32 %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = icmp eq i32 %0, 3
%6 = tail call i32 (...) @getpid()
br i1 %5, label %9, label %7
7: ; preds = %2
%8 = tail call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 89, i32 %6, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
br label %20
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call i32 (i8*, i8*, i8*, i32, i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 93, i32 %6, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8* %11, i8* %13)
%15 = load i8*, i8** %10
%16 = load i8*, i8** %12
%17 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @subfunc to i32 (i8*, i8*, ...)*)(i8* %15, i8* %16)
%18 = tail call i32 (...) @getpid()
%19 = tail call i32 (i8*, i8*, i8*, i32, i32, i8*, ...) bitcast (i32 (...)* @log_debug to i32 (i8*, i8*, i8*, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 98, i32 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %20
20: ; preds = %9, %7
%21 = phi i32 [ -1, %7 ], [ 0, %9 ]
ret i32 %21
}