#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*/ pred_param_set_eta(struct XCSF *, double const);
int /*<<< orphan*/ pred_param_set_eta_min(struct XCSF *, double const);
int /*<<< orphan*/ pred_param_set_evolve_eta(struct XCSF *, int const);
int /*<<< orphan*/ pred_param_set_lambda(struct XCSF *, double const);
int /*<<< orphan*/ pred_param_set_scale_factor(struct XCSF *, double const);
int /*<<< orphan*/ pred_param_set_x0(struct XCSF *, double const);
scalar_t__ strncmp(char const *, char *, int);
void config_cl_pred_ls(struct XCSF *xcsf, const char *n, const char *v,
                       const int i, const double f) {
  (void)v;
  if (strncmp(n, "PRED_ETA\0", 9) == 0) {
    pred_param_set_eta(xcsf, f);
  } else if (strncmp(n, "PRED_ETA_MIN\0", 13) == 0) {
    pred_param_set_eta_min(xcsf, f);
  } else if (strncmp(n, "PRED_X0\0", 8) == 0) {
    pred_param_set_x0(xcsf, f);
  } else if (strncmp(n, "PRED_EVOLVE_ETA\0", 16) == 0) {
    pred_param_set_evolve_eta(xcsf, i);
  } else if (strncmp(n, "PRED_RLS_SCALE_FACTOR\0", 22) == 0) {
    pred_param_set_scale_factor(xcsf, f);
  } else if (strncmp(n, "PRED_RLS_LAMBDA\0", 16) == 0) {
    pred_param_set_lambda(xcsf, f);
  }
}


x86 assembly (clang, -O0):
<config_cl_pred_ls>:
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    $0x9,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    11be <config_cl_pred_ls+0x4e>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1030 <pred_param_set_eta@plt>
jmp    12ca <config_cl_pred_ls+0x15a>
mov    -0x10(%rbp),%rdi
lea    0xe41(%rip),%rsi
mov    $0xd,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    11f0 <config_cl_pred_ls+0x80>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1090 <pred_param_set_eta_min@plt>
jmp    12c5 <config_cl_pred_ls+0x155>
mov    -0x10(%rbp),%rdi
lea    0xe1d(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1222 <config_cl_pred_ls+0xb2>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1050 <pred_param_set_x0@plt>
jmp    12c0 <config_cl_pred_ls+0x150>
mov    -0x10(%rbp),%rdi
lea    0xdf4(%rip),%rsi
mov    $0x10,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1252 <config_cl_pred_ls+0xe2>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1060 <pred_param_set_evolve_eta@plt>
jmp    12bb <config_cl_pred_ls+0x14b>
mov    -0x10(%rbp),%rdi
lea    0xdd5(%rip),%rsi
mov    $0x16,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1284 <config_cl_pred_ls+0x114>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1070 <pred_param_set_scale_factor@plt>
jmp    12b6 <config_cl_pred_ls+0x146>
mov    -0x10(%rbp),%rdi
lea    0xdba(%rip),%rsi
mov    $0x10,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    12b1 <config_cl_pred_ls+0x141>
mov    -0x8(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1080 <pred_param_set_lambda@plt>
jmp    12b6 <config_cl_pred_ls+0x146>
jmp    12bb <config_cl_pred_ls+0x14b>
jmp    12c0 <config_cl_pred_ls+0x150>
jmp    12c5 <config_cl_pred_ls+0x155>
jmp    12ca <config_cl_pred_ls+0x15a>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_cl_pred_ls>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %ecx,%ebp
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xe73(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1231 <config_cl_pred_ls+0xc1>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
mov    $0xd,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1247 <config_cl_pred_ls+0xd7>
lea    0xe51(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     125d <config_cl_pred_ls+0xed>
lea    0xe3d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x10,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1273 <config_cl_pred_ls+0x103>
lea    0xe35(%rip),%rsi
mov    %rbx,%rdi
mov    $0x16,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1285 <config_cl_pred_ls+0x115>
lea    0xe33(%rip),%rsi
mov    %rbx,%rdi
mov    $0x10,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     129b <config_cl_pred_ls+0x12b>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <pred_param_set_eta@plt>
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1090 <pred_param_set_eta_min@plt>
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <pred_param_set_x0@plt>
mov    %r14,%rdi
mov    %ebp,%esi
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <pred_param_set_evolve_eta@plt>
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <pred_param_set_scale_factor@plt>
mov    %r14,%rdi
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1080 <pred_param_set_lambda@plt>

LLVM IR (-O0):
%struct.XCSF = type { i32 }
@.str = [10 x i8] c"PRED_ETA\00\00"
@.str.1 = [14 x i8] c"PRED_ETA_MIN\00\00"
@.str.2 = [9 x i8] c"PRED_X0\00\00"
@.str.3 = [17 x i8] c"PRED_EVOLVE_ETA\00\00"
@.str.4 = [23 x i8] c"PRED_RLS_SCALE_FACTOR\00\00"
@.str.5 = [17 x i8] c"PRED_RLS_LAMBDA\00\00"
define void @config_cl_pred_ls(%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** %8
%12 = load i8*, i8** %7
%13 = call i64 @strncmp(i8* %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 9)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %5
%16 = load %struct.XCSF*, %struct.XCSF** %6
%17 = load double, double* %10
%18 = call i32 @pred_param_set_eta(%struct.XCSF* %16, double %17)
br label %64
19: ; preds = %5
%20 = load i8*, i8** %7
%21 = call i64 @strncmp(i8* %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 13)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load %struct.XCSF*, %struct.XCSF** %6
%25 = load double, double* %10
%26 = call i32 @pred_param_set_eta_min(%struct.XCSF* %24, double %25)
br label %63
27: ; preds = %19
%28 = load i8*, i8** %7
%29 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load %struct.XCSF*, %struct.XCSF** %6
%33 = load double, double* %10
%34 = call i32 @pred_param_set_x0(%struct.XCSF* %32, double %33)
br label %62
35: ; preds = %27
%36 = load i8*, i8** %7
%37 = call i64 @strncmp(i8* %36, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 16)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load %struct.XCSF*, %struct.XCSF** %6
%41 = load i32, i32* %9
%42 = call i32 @pred_param_set_evolve_eta(%struct.XCSF* %40, i32 %41)
br label %61
43: ; preds = %35
%44 = load i8*, i8** %7
%45 = call i64 @strncmp(i8* %44, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 22)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = load %struct.XCSF*, %struct.XCSF** %6
%49 = load double, double* %10
%50 = call i32 @pred_param_set_scale_factor(%struct.XCSF* %48, double %49)
br label %60
51: ; preds = %43
%52 = load i8*, i8** %7
%53 = call i64 @strncmp(i8* %52, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 16)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %51
%56 = load %struct.XCSF*, %struct.XCSF** %6
%57 = load double, double* %10
%58 = call i32 @pred_param_set_lambda(%struct.XCSF* %56, double %57)
br label %59
59: ; preds = %55, %51
br label %60
60: ; preds = %59, %47
br label %61
61: ; preds = %60, %39
br label %62
62: ; preds = %61, %31
br label %63
63: ; preds = %62, %23
br label %64
64: ; preds = %63, %15
ret void
}

LLVM IR (-O2):
%struct.XCSF = type { i32 }
@.str = [10 x i8] c"PRED_ETA\00\00"
@.str.1 = [14 x i8] c"PRED_ETA_MIN\00\00"
@.str.2 = [9 x i8] c"PRED_X0\00\00"
@.str.3 = [17 x i8] c"PRED_EVOLVE_ETA\00\00"
@.str.4 = [23 x i8] c"PRED_RLS_SCALE_FACTOR\00\00"
@.str.5 = [17 x i8] c"PRED_RLS_LAMBDA\00\00"
define void @config_cl_pred_ls(%struct.XCSF* %0, i8* %1, i8* nocapture readnone %2, i32 %3, double %4) {
%6 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 9)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @pred_param_set_eta(%struct.XCSF* %0, double %4)
br label %35
10: ; preds = %5
%11 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 13)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @pred_param_set_eta_min(%struct.XCSF* %0, double %4)
br label %35
15: ; preds = %10
%16 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 @pred_param_set_x0(%struct.XCSF* %0, double %4)
br label %35
20: ; preds = %15
%21 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 16)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = tail call i32 @pred_param_set_evolve_eta(%struct.XCSF* %0, i32 %3)
br label %35
25: ; preds = %20
%26 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 22)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = tail call i32 @pred_param_set_scale_factor(%struct.XCSF* %0, double %4)
br label %35
30: ; preds = %25
%31 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 16)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = tail call i32 @pred_param_set_lambda(%struct.XCSF* %0, double %4)
br label %35
35: ; preds = %13, %23, %30, %33, %28, %18, %8
ret void
}