#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*/ param_set_set_subsumption(struct XCSF *, int const);
int /*<<< orphan*/ param_set_theta_sub(struct XCSF *, int const);
scalar_t__ strncmp(char const *, char *, int);
void config_subsump(struct XCSF *xcsf, const char *n, const char *v,
                    const int i, const double f) {
  (void)v;
  (void)f;
  if (strncmp(n, "SET_SUBSUMPTION\0", 16) == 0) {
    param_set_set_subsumption(xcsf, i);
  } else if (strncmp(n, "THETA_SUB\0", 10) == 0) {
    param_set_theta_sub(xcsf, i);
  }
}


x86 assembly (clang, -O0):
<config_subsump>:
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    $0x10,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    117c <config_subsump+0x4c>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1050 <param_set_set_subsumption@plt>
jmp    11ac <config_subsump+0x7c>
mov    -0x10(%rbp),%rdi
lea    0xe8a(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    11a7 <config_subsump+0x77>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1040 <param_set_theta_sub@plt>
jmp    11ac <config_subsump+0x7c>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_subsump>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xebc(%rip),%rsi
mov    %rbp,%rdi
mov    $0x10,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1174 <config_subsump+0x44>
lea    0xeb4(%rip),%rsi
mov    %rbp,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1183 <config_subsump+0x53>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %rbx,%rdi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <param_set_set_subsumption@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <param_set_theta_sub@plt>

LLVM IR (-O0):
%struct.XCSF = type { i32 }
@.str = [17 x i8] c"SET_SUBSUMPTION\00\00"
@.str.1 = [11 x i8] c"THETA_SUB\00\00"
define void @config_subsump(%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 double, double* %10
%13 = load i8*, i8** %7
%14 = call i64 @strncmp(i8* %13, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16)
%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 i32, i32* %9
%19 = call i32 @param_set_set_subsumption(%struct.XCSF* %17, i32 %18)
br label %29
20: ; preds = %5
%21 = load i8*, i8** %7
%22 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 10)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load %struct.XCSF*, %struct.XCSF** %6
%26 = load i32, i32* %9
%27 = call i32 @param_set_theta_sub(%struct.XCSF* %25, i32 %26)
br label %28
28: ; preds = %24, %20
br label %29
29: ; preds = %28, %16
ret void
}

LLVM IR (-O2):
%struct.XCSF = type { i32 }
@.str = [17 x i8] c"SET_SUBSUMPTION\00\00"
@.str.1 = [11 x i8] c"THETA_SUB\00\00"
define void @config_subsump(%struct.XCSF* %0, i8* %1, i8* nocapture readnone %2, i32 %3, double %4) {
%6 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @param_set_set_subsumption(%struct.XCSF* %0, i32 %3)
br label %15
10: ; preds = %5
%11 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 10)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @param_set_theta_sub(%struct.XCSF* %0, i32 %3)
br label %15
15: ; preds = %10, %13, %8
ret void
}