#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*/ _s2warn(char *, char *);
int /*<<< orphan*/ s2funtc(float (*)(float *), float (*)(float *),
                           float (*)(float *), int /*<<< orphan*/ *, int, float,
                           float);
void s2funt(float (*fx)(float *), float (*fy)(float *), float (*fz)(float *),
            int in, float itmin, float itmax) {
  if (!fx || !fy || !fz) {
    _s2warn("s2funt", "invalid function arguments [NULL pointer(s)]");
    return;
  }
  s2funtc(fx, fy, fz, NULL, in, itmin, itmax);
}


x86 assembly (clang, -O0):
<s2funt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movss  %xmm0,-0x20(%rbp)
movss  %xmm1,-0x24(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1162 <s2funt+0x42>
cmpq   $0x0,-0x10(%rbp)
je     1162 <s2funt+0x42>
cmpq   $0x0,-0x18(%rbp)
jne    117a <s2funt+0x5a>
lea    0xe97(%rip),%rdi
lea    0xe97(%rip),%rsi
call   1040 <_s2warn@plt>
jmp    119d <s2funt+0x7d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%r8d
movss  -0x20(%rbp),%xmm0
movss  -0x24(%rbp),%xmm1
xor    %eax,%eax
mov    %eax,%ecx
call   1030 <s2funtc@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2funt>:
test   %rdi,%rdi
je     1139 <s2funt+0x19>
test   %rsi,%rsi
je     1139 <s2funt+0x19>
test   %rdx,%rdx
je     1139 <s2funt+0x19>
mov    %ecx,%r8d
xor    %ecx,%ecx
jmp    1030 <s2funtc@plt>
lea    0xec0(%rip),%rdi
lea    0xec0(%rip),%rsi
jmp    1040 <_s2warn@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"s2funt\00"
@.str.1 = [45 x i8] c"invalid function arguments [NULL pointer(s)]\00"
define void @s2funt(float (float*)* %0, float (float*)* %1, float (float*)* %2, i32 %3, float %4, float %5) {
%7 = alloca float (float*)*
%8 = alloca float (float*)*
%9 = alloca float (float*)*
%10 = alloca i32
%11 = alloca float
%12 = alloca float
store float (float*)* %0, float (float*)** %7
store float (float*)* %1, float (float*)** %8
store float (float*)* %2, float (float*)** %9
store i32 %3, i32* %10
store float %4, float* %11
store float %5, float* %12
%13 = load float (float*)*, float (float*)** %7
%14 = icmp ne float (float*)* %13, null
br i1 %14, label %15, label %21
15: ; preds = %6
%16 = load float (float*)*, float (float*)** %8
%17 = icmp ne float (float*)* %16, null
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load float (float*)*, float (float*)** %9
%20 = icmp ne float (float*)* %19, null
br i1 %20, label %23, label %21
21: ; preds = %18, %15, %6
%22 = call i32 @_s2warn(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
br label %31
23: ; preds = %18
%24 = load float (float*)*, float (float*)** %7
%25 = load float (float*)*, float (float*)** %8
%26 = load float (float*)*, float (float*)** %9
%27 = load i32, i32* %10
%28 = load float, float* %11
%29 = load float, float* %12
%30 = call i32 @s2funtc(float (float*)* %24, float (float*)* %25, float (float*)* %26, i32* null, i32 %27, float %28, float %29)
br label %31
31: ; preds = %23, %21
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"s2funt\00"
@.str.1 = [45 x i8] c"invalid function arguments [NULL pointer(s)]\00"
define void @s2funt(float (float*)* %0, float (float*)* %1, float (float*)* %2, i32 %3, float %4, float %5) {
%7 = icmp ne float (float*)* %0, null
%8 = icmp ne float (float*)* %1, null
%9 = and i1 %7, %8
%10 = icmp ne float (float*)* %2, null
%11 = and i1 %9, %10
br i1 %11, label %14, label %12
12: ; preds = %6
%13 = tail call i32 @_s2warn(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
br label %16
14: ; preds = %6
%15 = tail call i32 @s2funtc(float (float*)* %0, float (float*)* %1, float (float*)* %2, i32* null, i32 %3, float %4, float %5)
br label %16
16: ; preds = %14, %12
ret void
}