#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int main_eglgears(int, char **);
int main_glxgears(int, char **);
int /*<<< orphan*/ printf(char *, char *, int);
int main(int argc, char *argv[]) {
  printf("[%s:%d] Starting eglgears...\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/rakeshsafir/AndroMesa/refs/heads/master/"
         "examples/GL/gears/main.c",
         8);
  int ret = -1;
  ret = main_eglgears(argc, argv);
  ret = main_glxgears(argc, argv);
  return ret;
}


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)
lea    0xeb3(%rip),%rdi
lea    0xeca(%rip),%rsi
mov    $0x8,%edx
call   1040 <printf@plt>
movl   $0xffffffff,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <main_eglgears@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <main_glxgears@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xec1(%rip),%rdi
lea    0xed8(%rip),%rsi
mov    $0x8,%edx
call   1040 <printf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1050 <main_eglgears@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <main_glxgears@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"[%s:%d] Starting eglgears...\0A\00"
@.str.1 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rakeshsafir/AndroMesa/refs/heads/master/examples/GL/gears/main.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 8)
store i32 -1, i32* %6
%8 = load i32, i32* %4
%9 = load i8**, i8*** %5
%10 = call i32 @main_eglgears(i32 %8, i8** %9)
store i32 %10, i32* %6
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @main_glxgears(i32 %11, i8** %12)
store i32 %13, i32* %6
%14 = load i32, i32* %6
ret i32 %14
}

LLVM IR (-O2):
@.str = [30 x i8] c"[%s:%d] Starting eglgears...\0A\00"
@.str.1 = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/rakeshsafir/AndroMesa/refs/heads/master/examples/GL/gears/main.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.1, i64 0, i64 0), i32 8)
%4 = tail call i32 @main_eglgears(i32 %0, i8** %1)
%5 = tail call i32 @main_glxgears(i32 %0, i8** %1)
ret i32 %5
}