#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 rnn_runner {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _delete_rnn_runner(struct rnn_runner *);
int /*<<< orphan*/ _mu_assert(int, char *, int, char *, ...);
int _new_rnn_runner(struct rnn_runner **);
void test_new_rnn_runner(void) {
  struct rnn_runner *runner;
  int stat = _new_rnn_runner(&runner);
  _mu_assert((0) == (stat),
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/jnamika/rnn/refs/heads/master/src/"
             "unit-test/test_rnn_runner.c",
             52,
             ""
             "expected: %d\n  but was: %d\n",
             (int)(0), (int)(stat));
  _mu_assert(runner != NULL,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/jnamika/rnn/refs/heads/master/src/"
             "unit-test/test_rnn_runner.c",
             53,
             "assertion `"
             "runner != NULL"
             "' failed");
  _delete_rnn_runner(runner);
}


x86 assembly (clang, -O0):
<test_new_rnn_runner>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
call   1040 <_new_rnn_runner@plt>
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    -0xc(%rbp),%r9d
lea    0xea4(%rip),%rsi
mov    $0x34,%edx
lea    0xf30(%rip),%rcx
xor    %r8d,%r8d
mov    $0x0,%al
call   1030 <_mu_assert@plt>
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe7a(%rip),%rsi
mov    $0x35,%edx
lea    0xf22(%rip),%rcx
mov    $0x0,%al
call   1030 <_mu_assert@plt>
mov    -0x8(%rbp),%rdi
call   1050 <_delete_rnn_runner@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_new_rnn_runner>:
push   %rbx
sub    $0x10,%rsp
lea    0x8(%rsp),%rdi
call   1040 <_new_rnn_runner@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xeb2(%rip),%rbx
lea    0xf43(%rip),%rcx
mov    %rbx,%rsi
mov    $0x34,%edx
xor    %r8d,%r8d
mov    %eax,%r9d
xor    %eax,%eax
call   1030 <_mu_assert@plt>
xor    %edi,%edi
cmpq   $0x0,0x8(%rsp)
setne  %dil
lea    0xf37(%rip),%rcx
mov    %rbx,%rsi
mov    $0x35,%edx
xor    %eax,%eax
call   1030 <_mu_assert@plt>
mov    0x8(%rsp),%rdi
call   1050 <_delete_rnn_runner@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.rnn_runner = type { i32 }
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jnamika/rnn/refs/heads/master/src/unit-test/test_rnn_runner.c\00"
@.str.1 = [28 x i8] c"expected: %d\0A but was: %d\0A\00"
@.str.2 = [34 x i8] c"assertion `runner != NULL' failed\00"
define void @test_new_rnn_runner() {
%1 = alloca %struct.rnn_runner*
%2 = alloca i32
%3 = call i32 @_new_rnn_runner(%struct.rnn_runner** %1)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 0, %4
%6 = zext i1 %5 to i32
%7 = load i32, i32* %2
%8 = call i32 (i32, i8*, i32, i8*, ...) @_mu_assert(i32 %6, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 %7)
%9 = load %struct.rnn_runner*, %struct.rnn_runner** %1
%10 = icmp ne %struct.rnn_runner* %9, null
%11 = zext i1 %10 to i32
%12 = call i32 (i32, i8*, i32, i8*, ...) @_mu_assert(i32 %11, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%13 = load %struct.rnn_runner*, %struct.rnn_runner** %1
%14 = call i32 @_delete_rnn_runner(%struct.rnn_runner* %13)
ret void
}

LLVM IR (-O2):
%struct.rnn_runner = type { i32 }
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jnamika/rnn/refs/heads/master/src/unit-test/test_rnn_runner.c\00"
@.str.1 = [28 x i8] c"expected: %d\0A but was: %d\0A\00"
@.str.2 = [34 x i8] c"assertion `runner != NULL' failed\00"
define void @test_new_rnn_runner() {
%1 = alloca %struct.rnn_runner*
%2 = bitcast %struct.rnn_runner** %1 to i8*
%3 = call i32 @_new_rnn_runner(%struct.rnn_runner** %1)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 (i32, i8*, i32, i8*, ...) @_mu_assert(i32 %5, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 %3)
%7 = load %struct.rnn_runner*, %struct.rnn_runner** %1
%8 = icmp ne %struct.rnn_runner* %7, null
%9 = zext i1 %8 to i32
%10 = call i32 (i32, i8*, i32, i8*, ...) @_mu_assert(i32 %9, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%11 = load %struct.rnn_runner*, %struct.rnn_runner** %1
%12 = call i32 @_delete_rnn_runner(%struct.rnn_runner* %11)
ret void
}