#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 */

/* Variables and functions */
scalar_t__ NUMERICALp(int);
scalar_t__ SYMBOLICp(int);
int /*<<< orphan*/ find_a_threshold_num(int, int *, int, int);
int /*<<< orphan*/ find_a_threshold_symb(int, int *, int, int);
void find_a_threshold(int att, int *ls_vector, int start, int end) {
  if (NUMERICALp(att)) {
    find_a_threshold_num(att, ls_vector, start, end);
  } else if (SYMBOLICp(att)) {
    find_a_threshold_symb(att, ls_vector, start, end);
  }
}


x86 assembly (clang, -O0):
<find_a_threshold>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <NUMERICALp@plt>
cmp    $0x0,%rax
je     117e <find_a_threshold+0x3e>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <find_a_threshold_num@plt>
jmp    11a7 <find_a_threshold+0x67>
mov    -0x4(%rbp),%edi
call   1050 <SYMBOLICp@plt>
cmp    $0x0,%rax
je     11a2 <find_a_threshold+0x62>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1040 <find_a_threshold_symb@plt>
jmp    11a7 <find_a_threshold+0x67>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_a_threshold>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%rbx
mov    %edi,%ebp
call   1060 <NUMERICALp@plt>
test   %rax,%rax
je     1176 <find_a_threshold+0x36>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <find_a_threshold_num@plt>
mov    %ebp,%edi
call   1050 <SYMBOLICp@plt>
test   %rax,%rax
je     119c <find_a_threshold+0x5c>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <find_a_threshold_symb@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @find_a_threshold(i32 %0, i32* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = call i64 @NUMERICALp(i32 %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %4
%13 = load i32, i32* %5
%14 = load i32*, i32** %6
%15 = load i32, i32* %7
%16 = load i32, i32* %8
%17 = call i32 @find_a_threshold_num(i32 %13, i32* %14, i32 %15, i32 %16)
br label %29
18: ; preds = %4
%19 = load i32, i32* %5
%20 = call i64 @SYMBOLICp(i32 %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = load i32, i32* %5
%24 = load i32*, i32** %6
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = call i32 @find_a_threshold_symb(i32 %23, i32* %24, i32 %25, i32 %26)
br label %28
28: ; preds = %22, %18
br label %29
29: ; preds = %28, %12
ret void
}

LLVM IR (-O2):
define void @find_a_threshold(i32 %0, i32* %1, i32 %2, i32 %3) {
%5 = tail call i64 @NUMERICALp(i32 %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @find_a_threshold_num(i32 %0, i32* %1, i32 %2, i32 %3)
br label %14
9: ; preds = %4
%10 = tail call i64 @SYMBOLICp(i32 %0)
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @find_a_threshold_symb(i32 %0, i32* %1, i32 %2, i32 %3)
br label %14
14: ; preds = %9, %12, %7
ret void
}