#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*/ roundEvent4(char const *, double (*)(double), double,
                               double *, double *, double, int, int, int, int,
                               int, int *, int, double, int, int);
void roundEvent4E(const char *expr, double (*func)(double), double qrel,
                  double *res, double *fuzz, double epsil, int posi, int negi,
                  int reli, int init, int printevent, int *anyevent,
                  int *anyevent2, int eventiter, double LargeEPS, int slow,
                  int index) {
  int ae = 0;
  roundEvent4(expr, func, qrel, res, fuzz, epsil, posi, negi, reli, init,
              printevent, &ae, eventiter, LargeEPS, slow, index);
  if (ae) {
    if (anyevent)
      *anyevent = 1;
    if (anyevent2)
      *anyevent2 = 1;
  }
}


x86 assembly (clang, -O0):
<roundEvent4E>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
movsd  %xmm1,-0x50(%rbp)
mov    %r8d,-0x54(%rbp)
mov    %r9d,-0x58(%rbp)
movsd  %xmm2,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
movsd  -0x38(%rbp),%xmm0
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
movsd  -0x50(%rbp),%xmm1
mov    -0x54(%rbp),%r8d
mov    -0x58(%rbp),%r9d
mov    0x10(%rbp),%r12d
mov    0x18(%rbp),%r15d
mov    0x20(%rbp),%r14d
mov    0x38(%rbp),%r11d
movsd  -0x60(%rbp),%xmm2
mov    0x40(%rbp),%r10d
mov    0x48(%rbp),%eax
lea    -0x64(%rbp),%rbx
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1030 <roundEvent4@plt>
cmpl   $0x0,-0x64(%rbp)
je     120b <roundEvent4E+0xfb>
cmpq   $0x0,0x28(%rbp)
je     11f1 <roundEvent4E+0xe1>
mov    0x28(%rbp),%rax
movl   $0x1,(%rax)
cmpq   $0x0,0x30(%rbp)
je     1206 <roundEvent4E+0xf6>
mov    0x30(%rbp),%rax
movl   $0x1,(%rax)
jmp    120b <roundEvent4E+0xfb>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<roundEvent4E>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    0x30(%rsp),%r10d
mov    0x38(%rsp),%r11d
mov    0x40(%rsp),%r14d
mov    0x58(%rsp),%r15d
mov    0x60(%rsp),%eax
mov    0x68(%rsp),%ebx
movl   $0x0,0x4(%rsp)
sub    $0x8,%rsp
lea    0xc(%rsp),%r12
push   %rbx
push   %rax
push   %r15
push   %r12
push   %r14
push   %r11
push   %r10
call   1030 <roundEvent4@plt>
add    $0x40,%rsp
cmpl   $0x0,0x4(%rsp)
je     1181 <roundEvent4E+0x71>
mov    0x50(%rsp),%rax
mov    0x48(%rsp),%rcx
test   %rcx,%rcx
je     1176 <roundEvent4E+0x66>
movl   $0x1,(%rcx)
test   %rax,%rax
je     1181 <roundEvent4E+0x71>
movl   $0x1,(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @roundEvent4E(i8* %0, double (double)* %1, double %2, double* %3, double* %4, double %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32* %11, i32* %12, i32 %13, double %14, i32 %15, i32 %16) {
%18 = alloca i8*
%19 = alloca double (double)*
%20 = alloca double
%21 = alloca double*
%22 = alloca double*
%23 = alloca double
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32
%32 = alloca double
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
store i8* %0, i8** %18
store double (double)* %1, double (double)** %19
store double %2, double* %20
store double* %3, double** %21
store double* %4, double** %22
store double %5, double* %23
store i32 %6, i32* %24
store i32 %7, i32* %25
store i32 %8, i32* %26
store i32 %9, i32* %27
store i32 %10, i32* %28
store i32* %11, i32** %29
store i32* %12, i32** %30
store i32 %13, i32* %31
store double %14, double* %32
store i32 %15, i32* %33
store i32 %16, i32* %34
store i32 0, i32* %35
%36 = load i8*, i8** %18
%37 = load double (double)*, double (double)** %19
%38 = load double, double* %20
%39 = load double*, double** %21
%40 = load double*, double** %22
%41 = load double, double* %23
%42 = load i32, i32* %24
%43 = load i32, i32* %25
%44 = load i32, i32* %26
%45 = load i32, i32* %27
%46 = load i32, i32* %28
%47 = load i32, i32* %31
%48 = load double, double* %32
%49 = load i32, i32* %33
%50 = load i32, i32* %34
%51 = call i32 @roundEvent4(i8* %36, double (double)* %37, double %38, double* %39, double* %40, double %41, i32 %42, i32 %43, i32 %44, i32 %45, i32 %46, i32* %35, i32 %47, double %48, i32 %49, i32 %50)
%52 = load i32, i32* %35
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %17
%55 = load i32*, i32** %29
%56 = icmp ne i32* %55, null
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load i32*, i32** %29
store i32 1, i32* %58
br label %59
59: ; preds = %57, %54
%60 = load i32*, i32** %30
%61 = icmp ne i32* %60, null
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = load i32*, i32** %30
store i32 1, i32* %63
br label %64
64: ; preds = %62, %59
br label %65
65: ; preds = %64, %17
ret void
}

LLVM IR (-O2):
define void @roundEvent4E(i8* %0, double (double)* %1, double %2, double* %3, double* %4, double %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32* writeonly %11, i32* writeonly %12, i32 %13, double %14, i32 %15, i32 %16) {
%18 = alloca i32
%19 = bitcast i32* %18 to i8*
store i32 0, i32* %18
%20 = call i32 @roundEvent4(i8* %0, double (double)* %1, double %2, double* %3, double* %4, double %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32* %18, i32 %13, double %14, i32 %15, i32 %16)
%21 = load i32, i32* %18
%22 = icmp eq i32 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %17
%24 = icmp eq i32* %11, null
br i1 %24, label %26, label %25
25: ; preds = %23
store i32 1, i32* %11
br label %26
26: ; preds = %25, %23
%27 = icmp eq i32* %12, null
br i1 %27, label %29, label %28
28: ; preds = %26
store i32 1, i32* %12
br label %29
29: ; preds = %26, %28, %17
ret void
}