#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 exp(double);
int fabs(double);
double fz(double *y, double t, double *par) {
  return -fabs(y[0] + y[0] * y[0]) / ((1. + exp(-t)) * (1. + y[0] * y[0]));
}


x86 assembly (clang, -O0):
<fz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <fabs@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <exp@plt>
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
movsd  0xe65(%rip),%xmm1
addsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm3
mulsd  %xmm3,%xmm2
movsd  0xe45(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fz>:
push   %rbx
sub    $0x20,%rsp
movaps %xmm0,0x10(%rsp)
mov    %rdi,%rbx
movsd  (%rdi),%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
call   1030 <fabs@plt>
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x10(%rsp),%xmm0
xorps  0xea3(%rip),%xmm0
call   1040 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe9f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  (%rbx),%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
divsd  %xmm2,%xmm0
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @fz(double* %0, double %1, double* %2) {
%4 = alloca double*
%5 = alloca double
%6 = alloca double*
store double* %0, double** %4
store double %1, double* %5
store double* %2, double** %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 0
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 0
%15 = load double, double* %14
%16 = call double @llvm.fmuladd.f64(double %12, double %15, double %9)
%17 = call i32 @fabs(double %16)
%18 = sub nsw i32 0, %17
%19 = sitofp i32 %18 to double
%20 = load double, double* %5
%21 = fneg double %20
%22 = call i32 @exp(double %21)
%23 = sitofp i32 %22 to double
%24 = fadd double 1.000000e+00, %23
%25 = load double*, double** %4
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double, double* %26
%28 = load double*, double** %4
%29 = getelementptr inbounds double, double* %28, i64 0
%30 = load double, double* %29
%31 = call double @llvm.fmuladd.f64(double %27, double %30, double 1.000000e+00)
%32 = fmul double %24, %31
%33 = fdiv double %19, %32
ret double %33
}

LLVM IR (-O2):
define double @fz(double* nocapture %0, double %1, double* nocapture readnone %2) {
%4 = load double, double* %0
%5 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %4)
%6 = tail call i32 @fabs(double %5)
%7 = sub nsw i32 0, %6
%8 = sitofp i32 %7 to double
%9 = fneg double %1
%10 = tail call i32 @exp(double %9)
%11 = sitofp i32 %10 to double
%12 = fadd double %11, 1.000000e+00
%13 = load double, double* %0
%14 = tail call double @llvm.fmuladd.f64(double %13, double %13, double 1.000000e+00)
%15 = fmul double %12, %14
%16 = fdiv double %8, %15
ret double %16
}