#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*/ action_param_set_type_string(struct XCSF *, char const *);
int /*<<< orphan*/ config_cl_act_neural(struct XCSF *, char const *,
                                        char const *);
scalar_t__ strncmp(char const *, char *, int);
void config_cl_act(struct XCSF *xcsf, const char *n, const char *v, const int i,
                   const double f) {
  (void)i;
  (void)f;
  if (strncmp(n, "ACT_TYPE\0", 9) == 0) {
    action_param_set_type_string(xcsf, v);
  }
  config_cl_act_neural(xcsf, n, v);
}


x86 assembly (clang, -O0):
<config_cl_act>:
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    0xea9(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1178 <config_cl_act+0x48>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <action_param_set_type_string@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <config_cl_act_neural@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_cl_act>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    1162 <config_cl_act+0x32>
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <action_param_set_type_string@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <config_cl_act_neural@plt>

LLVM IR (-O0):
%struct.XCSF = type { i32 }
@.str = [10 x i8] c"ACT_TYPE\00\00"
define void @config_cl_act(%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 i32, i32* %9
%12 = load double, double* %10
%13 = load i8*, i8** %7
%14 = call i64 @strncmp(i8* %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 9)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %5
%17 = load %struct.XCSF*, %struct.XCSF** %6
%18 = load i8*, i8** %8
%19 = call i32 @action_param_set_type_string(%struct.XCSF* %17, i8* %18)
br label %20
20: ; preds = %16, %5
%21 = load %struct.XCSF*, %struct.XCSF** %6
%22 = load i8*, i8** %7
%23 = load i8*, i8** %8
%24 = call i32 @config_cl_act_neural(%struct.XCSF* %21, i8* %22, i8* %23)
ret void
}

LLVM IR (-O2):
%struct.XCSF = type { i32 }
@.str = [10 x i8] c"ACT_TYPE\00\00"
define void @config_cl_act(%struct.XCSF* %0, i8* %1, i8* %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 @action_param_set_type_string(%struct.XCSF* %0, i8* %2)
br label %10
10: ; preds = %8, %5
%11 = tail call i32 @config_cl_act_neural(%struct.XCSF* %0, i8* %1, i8* %2)
ret void
}