#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*/ config_cl_pred_ls(struct XCSF *, char const *, char const *,
                                     int const, double const);
int /*<<< orphan*/ config_cl_pred_neural(struct XCSF *, char const *,
                                         char const *);
int /*<<< orphan*/ pred_param_set_type_string(struct XCSF *, char const *);
scalar_t__ strncmp(char const *, char *, int);
void config_cl_pred(struct XCSF *xcsf, const char *n, const char *v,
                    const int i, const double f) {
  if (strncmp(n, "PRED_TYPE\0", 10) == 0) {
    pred_param_set_type_string(xcsf, v);
  }
  config_cl_pred_ls(xcsf, n, v, i, f);
  config_cl_pred_neural(xcsf, n, v);
}


x86 assembly (clang, -O0):
<config_cl_pred>:
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    0xe99(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1188 <config_cl_pred+0x48>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <pred_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   1040 <config_cl_pred_ls@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1060 <config_cl_pred_neural@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_cl_pred>:
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    0xea2(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    117b <config_cl_pred+0x3b>
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <pred_param_set_type_string@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %ebp,%ecx
movsd  (%rsp),%xmm0
call   1040 <config_cl_pred_ls@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <config_cl_pred_neural@plt>

LLVM IR (-O0):
%struct.XCSF = type { i32 }
@.str = [11 x i8] c"PRED_TYPE\00\00"
define void @config_cl_pred(%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 @pred_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_pred_ls(%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 = call i32 @config_cl_pred_neural(%struct.XCSF* %25, i8* %26, i8* %27)
ret void
}

LLVM IR (-O2):
%struct.XCSF = type { i32 }
@.str = [11 x i8] c"PRED_TYPE\00\00"
define void @config_cl_pred(%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 @pred_param_set_type_string(%struct.XCSF* %0, i8* %2)
br label %10
10: ; preds = %8, %5
%11 = tail call i32 @config_cl_pred_ls(%struct.XCSF* %0, i8* %1, i8* %2, i32 %3, double %4)
%12 = tail call i32 @config_cl_pred_neural(%struct.XCSF* %0, i8* %1, i8* %2)
ret void
}