#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*/ diag(char *);
int exit_status();
int /*<<< orphan*/ ok(char *, int, int, char *);
int /*<<< orphan*/ plan(unsigned int);
int main(void) {
  ;
  plan(3u);
  diag("Happy testing.");
  ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
     "2022-01-22/02-19-57/repos/fperrad/tap4embedded/refs/heads/master/example/"
     "t.windows/00-happy.c",
     17, 1, ("Happy !"));
  ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
     "2022-01-22/02-19-57/repos/fperrad/tap4embedded/refs/heads/master/example/"
     "t.windows/00-happy.c",
     18, 1, ("Happy !!"));
  ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
     "2022-01-22/02-19-57/repos/fperrad/tap4embedded/refs/heads/master/example/"
     "t.windows/00-happy.c",
     19, 1, ("Happy !!!"));
  return exit_status();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3,%edi
call   1060 <plan@plt>
lea    0xea0(%rip),%rdi
call   1050 <diag@plt>
lea    0xea3(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
lea    0xf30(%rip),%rcx
call   1030 <ok@plt>
lea    0xe86(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
lea    0xf1b(%rip),%rcx
call   1030 <ok@plt>
lea    0xe69(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xf07(%rip),%rcx
call   1030 <ok@plt>
mov    $0x0,%al
call   1040 <exit_status@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x3,%edi
call   1060 <plan@plt>
lea    0xeae(%rip),%rdi
call   1050 <diag@plt>
lea    0xeb1(%rip),%rbx
lea    0xf48(%rip),%rcx
mov    %rbx,%rdi
mov    $0x11,%esi
mov    $0x1,%edx
call   1030 <ok@plt>
lea    0xf37(%rip),%rcx
mov    %rbx,%rdi
mov    $0x12,%esi
mov    $0x1,%edx
call   1030 <ok@plt>
lea    0xf27(%rip),%rcx
mov    %rbx,%rdi
mov    $0x13,%esi
mov    $0x1,%edx
call   1030 <ok@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <exit_status@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Happy testing.\00"
@.str.1 = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fperrad/tap4embedded/refs/heads/master/example/t.windows/00-happy.c\00"
@.str.2 = [8 x i8] c"Happy !\00"
@.str.3 = [9 x i8] c"Happy !!\00"
@.str.4 = [10 x i8] c"Happy !!!\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @plan(i32 3)
%3 = call i32 @diag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (...) @exit_status()
ret i32 %7
}

LLVM IR (-O2):
@.str = [15 x i8] c"Happy testing.\00"
@.str.1 = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fperrad/tap4embedded/refs/heads/master/example/t.windows/00-happy.c\00"
@.str.2 = [8 x i8] c"Happy !\00"
@.str.3 = [9 x i8] c"Happy !!\00"
@.str.4 = [10 x i8] c"Happy !!!\00"
define i32 @main() {
%1 = tail call i32 @plan(i32 3)
%2 = tail call i32 @diag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 18, i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @ok(i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.1, i64 0, i64 0), i32 19, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 (...) @exit_status()
ret i32 %6
}