#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*/ compare_float(float, float);
int /*<<< orphan*/ do_fsca(int, float *, float *);
int /*<<< orphan*/ printf(char *, char *, int, float, unsigned int, float,
                          unsigned int);
int test_fsca(int angle, float expect_a, float expect_b) {
  float a = 10.0;
  float b = 10.0;
  do_fsca(angle, &a, &b);
  if (!compare_float(expect_a, a)) {
    printf(
        "Assertion failed at %s.%d: expected %.8f (%08X) but was %.8f (%08X)\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/Aishou/lxdream/refs/heads/master/test/"
        "testmath.c",
        61, expect_a, (*((unsigned int *)&expect_a)), a,
        (*((unsigned int *)&a)));
    return 1;
  };
  if (!compare_float(expect_b, b)) {
    printf(
        "Assertion failed at %s.%d: expected %.8f (%08X) but was %.8f (%08X)\n",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/Aishou/lxdream/refs/heads/master/test/"
        "testmath.c",
        62, expect_b, (*((unsigned int *)&expect_b)), b,
        (*((unsigned int *)&b)));
    return 1;
  };
}


x86 assembly (clang, -O0):
<test_fsca>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  0xeb3(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xea6(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <do_fsca@plt>
movss  -0xc(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
call   1040 <compare_float@plt>
cmp    $0x0,%eax
jne    11bc <test_fsca+0x8c>
movss  -0xc(%rbp),%xmm0
mov    -0xc(%rbp),%ecx
movss  -0x14(%rbp),%xmm1
mov    -0x14(%rbp),%r8d
lea    0xe65(%rip),%rdi
lea    0xea3(%rip),%rsi
mov    $0x3d,%edx
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1204 <test_fsca+0xd4>
movss  -0x10(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
call   1040 <compare_float@plt>
cmp    $0x0,%eax
jne    1204 <test_fsca+0xd4>
movss  -0x10(%rbp),%xmm0
mov    -0x10(%rbp),%ecx
movss  -0x18(%rbp),%xmm1
mov    -0x18(%rbp),%r8d
lea    0xe18(%rip),%rdi
lea    0xe56(%rip),%rsi
mov    $0x3e,%edx
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_fsca>:
sub    $0x18,%rsp
movss  %xmm1,0x10(%rsp)
movss  %xmm0,0x14(%rsp)
movl   $0x41200000,0xc(%rsp)
41
movl   $0x41200000,0x8(%rsp)
41
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <do_fsca@plt>
movss  0xc(%rsp),%xmm1
movss  0x14(%rsp),%xmm0
call   1040 <compare_float@plt>
test   %eax,%eax
je     11b3 <test_fsca+0x83>
movd   0x8(%rsp),%xmm1
movd   0x10(%rsp),%xmm0
call   1040 <compare_float@plt>
test   %eax,%eax
jne    11e0 <test_fsca+0xb0>
movd   0x10(%rsp),%xmm0
movd   %xmm0,%ecx
movd   0x8(%rsp),%xmm1
movd   %xmm1,%r8d
lea    0xe5b(%rip),%rdi
lea    0xe99(%rip),%rsi
mov    $0x3e,%edx
jmp    11db <test_fsca+0xab>
movd   0x14(%rsp),%xmm0
movd   %xmm0,%ecx
movd   0xc(%rsp),%xmm1
movd   %xmm1,%r8d
lea    0xe31(%rip),%rdi
lea    0xe6f(%rip),%rsi
mov    $0x3d,%edx
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [69 x i8] c"Assertion failed at %s.%d: expected %.8f (%08X) but was %.8f (%08X)\0A\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Aishou/lxdream/refs/heads/master/test/testmath.c\00"
define i32 @test_fsca(i32 %0, float %1, float %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 %0, i32* %5
store float %1, float* %6
store float %2, float* %7
store float 1.000000e+01, float* %8
store float 1.000000e+01, float* %9
%10 = load i32, i32* %5
%11 = call i32 @do_fsca(i32 %10, float* %8, float* %9)
%12 = load float, float* %6
%13 = load float, float* %8
%14 = call i32 @compare_float(float %12, float %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %3
%17 = load float, float* %6
%18 = bitcast float* %6 to i32*
%19 = load i32, i32* %18
%20 = load float, float* %8
%21 = bitcast float* %8 to i32*
%22 = load i32, i32* %21
%23 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 61, float %17, i32 %19, float %20, i32 %22)
store i32 1, i32* %4
br label %37
24: ; preds = %3
%25 = load float, float* %7
%26 = load float, float* %9
%27 = call i32 @compare_float(float %25, float %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %37, label %29
29: ; preds = %24
%30 = load float, float* %7
%31 = bitcast float* %7 to i32*
%32 = load i32, i32* %31
%33 = load float, float* %9
%34 = bitcast float* %9 to i32*
%35 = load i32, i32* %34
%36 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 62, float %30, i32 %32, float %33, i32 %35)
store i32 1, i32* %4
br label %37
37: ; preds = %16, %29, %24
%38 = load i32, i32* %4
ret i32 %38
}

LLVM IR (-O2):
@.str = [69 x i8] c"Assertion failed at %s.%d: expected %.8f (%08X) but was %.8f (%08X)\0A\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Aishou/lxdream/refs/heads/master/test/testmath.c\00"
define i32 @test_fsca(i32 %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = bitcast float* %4 to i8*
store float 1.000000e+01, float* %4
%7 = bitcast float* %5 to i8*
store float 1.000000e+01, float* %5
%8 = call i32 @do_fsca(i32 %0, float* %4, float* %5)
%9 = load float, float* %4
%10 = call i32 @compare_float(float %1, float %9)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %3
%13 = bitcast float %1 to i32
%14 = load float, float* %4
%15 = bitcast float %14 to i32
%16 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 61, float %1, i32 %13, float %14, i32 %15)
br label %26
17: ; preds = %3
%18 = load float, float* %5
%19 = call i32 @compare_float(float %2, float %18)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = bitcast float %2 to i32
%23 = load float, float* %5
%24 = bitcast float %23 to i32
%25 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 62, float %2, i32 %22, float %23, i32 %24)
br label %26
26: ; preds = %17, %21, %12
ret i32 1
}