#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_real_failure(struct test_suite *test_suite,
                            struct test_context *test_context) {
  do {
    double value__ = 1.01;
    double expected__ = 1.02;
    const char *value_str_ = "1.01";
    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",
                 47,
                 "%s is equal to %.17g "
                 "but should be equal to %.17g",
                 value_str_, value__, expected__);
    }
  } while (0);
}


x86 assembly (clang, -O0):
<test_case_real_failure>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  0xee0(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xecb(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    0xecf(%rip),%rax
mov    %rax,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    1160 <test_case_real_failure+0x50>
jp     1160 <test_case_real_failure+0x50>
jmp    118a <test_case_real_failure+0x7a>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%r8
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
lea    0xe9c(%rip),%rsi
mov    $0x2f,%edx
lea    0xf19(%rip),%rcx
call   1030 <test_abort@plt>
jmp    118f <test_case_real_failure+0x7f>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_case_real_failure>:
mov    %rsi,%rdi
lea    0xefb(%rip),%rsi
lea    0xf7d(%rip),%rcx
lea    0xee8(%rip),%r8
movsd  0xed0(%rip),%xmm0
movsd  0xed0(%rip),%xmm1
mov    $0x2f,%edx
jmp    1030 <test_abort@plt>

LLVM IR (-O0):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
@.str = [5 x i8] c"1.01\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 = [50 x i8] c"%s is equal to %.17g but should be equal to %.17g\00"
define void @test_case_real_failure(%struct.test_suite* %0, %struct.test_context* %1) {
%3 = alloca %struct.test_suite*
%4 = alloca %struct.test_context*
%5 = alloca double
%6 = alloca double
%7 = alloca i8*
store %struct.test_suite* %0, %struct.test_suite** %3
store %struct.test_context* %1, %struct.test_context** %4
br label %8
8: ; preds = %2
store double 1.010000e+00, double* %5
store double 1.020000e+00, double* %6
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %7
%9 = load double, double* %5
%10 = load double, double* %6
%11 = fcmp une double %9, %10
br i1 %11, label %12, label %18
12: ; preds = %8
%13 = load %struct.test_context*, %struct.test_context** %4
%14 = load i8*, i8** %7
%15 = load double, double* %5
%16 = load double, double* %6
%17 = call i32 @test_abort(%struct.test_context* %13, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 47, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* %14, double %15, double %16)
br label %18
18: ; preds = %12, %8
br label %19
19: ; preds = %18
ret void
}

LLVM IR (-O2):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
@.str = [5 x i8] c"1.01\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 = [50 x i8] c"%s is equal to %.17g but should be equal to %.17g\00"
define void @test_case_real_failure(%struct.test_suite* nocapture readnone %0, %struct.test_context* %1) {
%3 = tail call i32 @test_abort(%struct.test_context* %1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 47, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double 1.010000e+00, double 1.020000e+00)
ret void
}