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

/* Variables and functions */
int /*<<< orphan*/ cond_param_set_type_string(struct XCSF *, char const *);
int /*<<< orphan*/ config_cl_cond_csr(struct XCSF *, char const *, char const *,
                                      int const, double const);
int /*<<< orphan*/ config_cl_cond_dgp(struct XCSF *, char const *, char const *,
                                      int const, double const);
int /*<<< orphan*/ config_cl_cond_gp(struct XCSF *, char const *, char const *,
                                     int const, double const);
int /*<<< orphan*/ config_cl_cond_neural(struct XCSF *, char const *,
                                         char const *);
int /*<<< orphan*/ config_cl_cond_ternary(struct XCSF *, char const *,
                                          char const *, int const,
                                          double const);
scalar_t__ strncmp(char const *, char *, int);
void config_cl_cond(struct XCSF *xcsf, const char *n, const char *v,
                    const int i, const double f) {
  if (strncmp(n, "COND_TYPE\0", 10) == 0) {
    cond_param_set_type_string(xcsf, v);
  }
  config_cl_cond_ternary(xcsf, n, v, i, f);
  config_cl_cond_csr(xcsf, n, v, i, f);
  config_cl_cond_dgp(xcsf, n, v, i, f);
  config_cl_cond_gp(xcsf, n, v, i, f);
  config_cl_cond_neural(xcsf, n, v);
}


x86 assembly (clang, -O0):
<config_cl_cond>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe69(%rip),%rsi
mov    $0xa,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    11b8 <config_cl_cond+0x48>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1090 <cond_param_set_type_string@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
movsd  -0x28(%rbp),%xmm0
call   1030 <config_cl_cond_ternary@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
movsd  -0x28(%rbp),%xmm0
call   1050 <config_cl_cond_csr@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
movsd  -0x28(%rbp),%xmm0
call   1080 <config_cl_cond_dgp@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
movsd  -0x28(%rbp),%xmm0
call   1060 <config_cl_cond_gp@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1070 <config_cl_cond_neural@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_cl_cond>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
movsd  %xmm0,(%rsp)
mov    %ecx,%ebp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0xe72(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    11ab <config_cl_cond+0x3b>
mov    %r15,%rdi
mov    %r14,%rsi
call   1090 <cond_param_set_type_string@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %ebp,%ecx
movsd  (%rsp),%xmm0
call   1030 <config_cl_cond_ternary@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %ebp,%ecx
movsd  (%rsp),%xmm0
call   1050 <config_cl_cond_csr@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %ebp,%ecx
movsd  (%rsp),%xmm0
call   1080 <config_cl_cond_dgp@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %ebp,%ecx
movsd  (%rsp),%xmm0
call   1060 <config_cl_cond_gp@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <config_cl_cond_neural@plt>

LLVM IR (-O0):
%struct.XCSF = type { i32 }
@.str = [11 x i8] c"COND_TYPE\00\00"
define void @config_cl_cond(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4) {
%6 = alloca %struct.XCSF*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca double
store %struct.XCSF* %0, %struct.XCSF** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store double %4, double* %10
%11 = load i8*, i8** %7
%12 = call i64 @strncmp(i8* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %5
%15 = load %struct.XCSF*, %struct.XCSF** %6
%16 = load i8*, i8** %8
%17 = call i32 @cond_param_set_type_string(%struct.XCSF* %15, i8* %16)
br label %18
18: ; preds = %14, %5
%19 = load %struct.XCSF*, %struct.XCSF** %6
%20 = load i8*, i8** %7
%21 = load i8*, i8** %8
%22 = load i32, i32* %9
%23 = load double, double* %10
%24 = call i32 @config_cl_cond_ternary(%struct.XCSF* %19, i8* %20, i8* %21, i32 %22, double %23)
%25 = load %struct.XCSF*, %struct.XCSF** %6
%26 = load i8*, i8** %7
%27 = load i8*, i8** %8
%28 = load i32, i32* %9
%29 = load double, double* %10
%30 = call i32 @config_cl_cond_csr(%struct.XCSF* %25, i8* %26, i8* %27, i32 %28, double %29)
%31 = load %struct.XCSF*, %struct.XCSF** %6
%32 = load i8*, i8** %7
%33 = load i8*, i8** %8
%34 = load i32, i32* %9
%35 = load double, double* %10
%36 = call i32 @config_cl_cond_dgp(%struct.XCSF* %31, i8* %32, i8* %33, i32 %34, double %35)
%37 = load %struct.XCSF*, %struct.XCSF** %6
%38 = load i8*, i8** %7
%39 = load i8*, i8** %8
%40 = load i32, i32* %9
%41 = load double, double* %10
%42 = call i32 @config_cl_cond_gp(%struct.XCSF* %37, i8* %38, i8* %39, i32 %40, double %41)
%43 = load %struct.XCSF*, %struct.XCSF** %6
%44 = load i8*, i8** %7
%45 = load i8*, i8** %8
%46 = call i32 @config_cl_cond_neural(%struct.XCSF* %43, i8* %44, i8* %45)
ret void
}

LLVM IR (-O2):
%struct.XCSF = type { i32 }
@.str = [11 x i8] c"COND_TYPE\00\00"
define void @config_cl_cond(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4) {
%6 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @cond_param_set_type_string(%struct.XCSF* %0, i8* %2)
br label %10
10: ; preds = %8, %5
%11 = tail call i32 @config_cl_cond_ternary(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4)
%12 = tail call i32 @config_cl_cond_csr(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4)
%13 = tail call i32 @config_cl_cond_dgp(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4)
%14 = tail call i32 @config_cl_cond_gp(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4)
%15 = tail call i32 @config_cl_cond_neural(%struct.XCSF* %0, i8* %1, i8* %2)
ret void
}