#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 */
struct test_suite {
  int dummy;
};
struct test_context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ test_abort(struct test_context *, char *, int, char *,
                              char const *, double, double);
void test_case_reals(struct test_suite *test_suite,
                     struct test_context *test_context) {
  do {
    float value__ = 1.42f;
    float expected__ = 1.42f;
    const char *value_str_ = "1.42f";
    if (value__ != expected__) {
      test_abort(test_context,
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/"
                 "master/tests/main.c",
                 42,
                 "%s is equal to %.9g "
                 "but should be equal to %.9g",
                 value_str_, value__, expected__);
    }
  } while (0);
  do {
    double value__ = -1.42e5;
    double expected__ = -1.42e5;
    const char *value_str_ = "-1.42e5";
    if (value__ != expected__) {
      test_abort(test_context,
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/"
                 "master/tests/main.c",
                 43,
                 "%s is equal to %.17g "
                 "but should be equal to %.17g",
                 value_str_, value__, expected__);
    }
  } while (0);
}


x86 assembly (clang, -O0):
<test_case_reals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xed8(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xecb(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xecf(%rip),%rax
mov    %rax,-0x20(%rbp)
movss  -0x14(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    115f <test_case_reals+0x4f>
jp     115f <test_case_reals+0x4f>
jmp    1191 <test_case_reals+0x81>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%r8
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe96(%rip),%rsi
mov    $0x2a,%edx
lea    0xf13(%rip),%rcx
call   1030 <test_abort@plt>
jmp    1196 <test_case_reals+0x86>
jmp    119b <test_case_reals+0x8b>
movsd  0xe65(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe58(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xf13(%rip),%rax
mov    %rax,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jne    11db <test_case_reals+0xcb>
jp     11db <test_case_reals+0xcb>
jmp    1205 <test_case_reals+0xf5>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%r8
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    0xe22(%rip),%rsi
mov    $0x2b,%edx
lea    0xed7(%rip),%rcx
call   1030 <test_abort@plt>
jmp    120a <test_case_reals+0xfa>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_case_reals>:
ret

LLVM IR (-O0):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
@.str = [6 x i8] c"1.42f\00"
@.str.1 = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/master/tests/main.c\00"
@.str.2 = [48 x i8] c"%s is equal to %.9g but should be equal to %.9g\00"
@.str.3 = [8 x i8] c"-1.42e5\00"
@.str.4 = [50 x i8] c"%s is equal to %.17g but should be equal to %.17g\00"
define void @test_case_reals(%struct.test_suite* %0, %struct.test_context* %1) {
%3 = alloca %struct.test_suite*
%4 = alloca %struct.test_context*
%5 = alloca float
%6 = alloca float
%7 = alloca i8*
%8 = alloca double
%9 = alloca double
%10 = alloca i8*
store %struct.test_suite* %0, %struct.test_suite** %3
store %struct.test_context* %1, %struct.test_context** %4
br label %11
11: ; preds = %2
store float 0x3FF6B851E0000000, float* %5
store float 0x3FF6B851E0000000, float* %6
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %7
%12 = load float, float* %5
%13 = load float, float* %6
%14 = fcmp une float %12, %13
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load %struct.test_context*, %struct.test_context** %4
%17 = load i8*, i8** %7
%18 = load float, float* %5
%19 = fpext float %18 to double
%20 = load float, float* %6
%21 = fpext float %20 to double
%22 = call i32 @test_abort(%struct.test_context* %16, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %17, double %19, double %21)
br label %23
23: ; preds = %15, %11
br label %24
24: ; preds = %23
br label %25
25: ; preds = %24
store double -1.420000e+05, double* %8
store double -1.420000e+05, double* %9
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %10
%26 = load double, double* %8
%27 = load double, double* %9
%28 = fcmp une double %26, %27
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load %struct.test_context*, %struct.test_context** %4
%31 = load i8*, i8** %10
%32 = load double, double* %8
%33 = load double, double* %9
%34 = call i32 @test_abort(%struct.test_context* %30, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* %31, double %32, double %33)
br label %35
35: ; preds = %29, %25
br label %36
36: ; preds = %35
ret void
}

LLVM IR (-O2):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
define void @test_case_reals(%struct.test_suite* nocapture %0, %struct.test_context* nocapture %1) {
ret void
}