#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ stderr;
scalar_t__ test_canvas();
scalar_t__ test_model();
scalar_t__ test_vector();
int main(int argc, char *argv[]) {
  do {
    if (test_vector()) {
      fprintf(stderr, "    in file %s, line %d\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fraxtil/cfrax/refs/heads/master/tests/"
              "tests.c",
              11);
      ;
      return 11;
    }
  } while (0);
  do {
    if (test_model()) {
      fprintf(stderr, "    in file %s, line %d\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fraxtil/cfrax/refs/heads/master/tests/"
              "tests.c",
              12);
      ;
      return 12;
    }
  } while (0);
  do {
    if (test_canvas()) {
      fprintf(stderr, "    in file %s, line %d\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fraxtil/cfrax/refs/heads/master/tests/"
              "tests.c",
              13);
      ;
      return 13;
    }
  } while (0);
  do {
    ;
    return 0;
  } while (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <test_vector@plt>
cmp    $0x0,%rax
je     1194 <main+0x54>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
lea    0xe89(%rip),%rsi
lea    0xe9b(%rip),%rdx
mov    $0xb,%ecx
call   1060 <fprintf@plt>
movl   $0xb,-0x4(%rbp)
jmp    1235 <main+0xf5>
jmp    1199 <main+0x59>
jmp    119e <main+0x5e>
mov    $0x0,%al
call   1040 <test_model@plt>
cmp    $0x0,%rax
je     11dc <main+0x9c>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
lea    0xe41(%rip),%rsi
lea    0xe53(%rip),%rdx
mov    $0xc,%ecx
call   1060 <fprintf@plt>
movl   $0xc,-0x4(%rbp)
jmp    1235 <main+0xf5>
jmp    11e1 <main+0xa1>
jmp    11e6 <main+0xa6>
mov    $0x0,%al
call   1050 <test_canvas@plt>
cmp    $0x0,%rax
je     1224 <main+0xe4>
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
lea    0xdf9(%rip),%rsi
lea    0xe0b(%rip),%rdx
mov    $0xd,%ecx
call   1060 <fprintf@plt>
movl   $0xd,-0x4(%rbp)
jmp    1235 <main+0xf5>
jmp    1229 <main+0xe9>
jmp    122e <main+0xee>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <test_vector@plt>
mov    $0xb,%ebx
test   %rax,%rax
jne    1178 <main+0x38>
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <test_model@plt>
mov    $0xc,%ebx
test   %rax,%rax
jne    1178 <main+0x38>
xor    %eax,%eax
call   1050 <test_canvas@plt>
mov    $0xd,%ebx
test   %rax,%rax
je     1198 <main+0x58>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xe78(%rip),%rsi
lea    0xe8a(%rip),%rdx
mov    %ebx,%ecx
call   1060 <fprintf@plt>
mov    %ebx,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c" in file %s, line %d\0A\00"
@.str.1 = [136 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fraxtil/cfrax/refs/heads/master/tests/tests.c\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
br label %6
6: ; preds = %2
%7 = call i64 (...) @test_vector()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 11)
store i32 11, i32* %3
br label %31
12: ; preds = %6
br label %13
13: ; preds = %12
br label %14
14: ; preds = %13
%15 = call i64 (...) @test_model()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 12)
store i32 12, i32* %3
br label %31
20: ; preds = %14
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = call i64 (...) @test_canvas()
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 13)
store i32 13, i32* %3
br label %31
28: ; preds = %22
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
store i32 0, i32* %3
br label %31
31: ; preds = %9, %17, %25, %30
%32 = load i32, i32* %3
ret i32 %32
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c" in file %s, line %d\0A\00"
@.str.1 = [136 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fraxtil/cfrax/refs/heads/master/tests/tests.c\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @test_vector()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = tail call i64 (...) @test_model()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = tail call i64 (...) @test_canvas()
%10 = icmp eq i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %8, %5, %2
%12 = phi i32 [ 11, %2 ], [ 12, %5 ], [ 13, %8 ]
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %15
15: ; preds = %11, %8
%16 = phi i32 [ 0, %8 ], [ %12, %11 ]
ret i32 %16
}