#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 */
int /*<<< orphan*/ *strpbrk(char *, char *);
signed char thresholds_expressed_as_percentages(char *warn_string,
                                                char *critical_string) {
  if ((warn_string && !(NULL != strpbrk(warn_string, "%"))) ||
      (critical_string && !(NULL != strpbrk(critical_string, "%"))))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<thresholds_expressed_as_percentages>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1149 <thresholds_expressed_as_percentages+0x39>
mov    -0x10(%rbp),%rdi
lea    0xeca(%rip),%rsi
call   1030 <strpbrk@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     1172 <thresholds_expressed_as_percentages+0x62>
cmpq   $0x0,-0x18(%rbp)
je     117b <thresholds_expressed_as_percentages+0x6b>
mov    -0x18(%rbp),%rdi
lea    0xea1(%rip),%rsi
call   1030 <strpbrk@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    117b <thresholds_expressed_as_percentages+0x6b>
movb   $0x0,-0x1(%rbp)
jmp    117f <thresholds_expressed_as_percentages+0x6f>
movb   $0x1,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<thresholds_expressed_as_percentages>:
push   %rbx
mov    %rsi,%rbx
test   %rdi,%rdi
je     112a <thresholds_expressed_as_percentages+0x1a>
lea    0xee0(%rip),%rsi
call   1030 <strpbrk@plt>
test   %rax,%rax
je     1147 <thresholds_expressed_as_percentages+0x37>
test   %rbx,%rbx
je     1143 <thresholds_expressed_as_percentages+0x33>
lea    0xeca(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strpbrk@plt>
test   %rax,%rax
je     1147 <thresholds_expressed_as_percentages+0x37>
mov    $0x1,%al
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"%\00"
define signext i8 @thresholds_expressed_as_percentages(i8* %0, i8* %1) {
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %4
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = call i32* @strpbrk(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = icmp ne i32* null, %10
br i1 %11, label %12, label %19
12: ; preds = %8, %2
%13 = load i8*, i8** %5
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i8*, i8** %5
%17 = call i32* @strpbrk(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = icmp ne i32* null, %17
br i1 %18, label %20, label %19
19: ; preds = %15, %8
store i8 0, i8* %3
br label %21
20: ; preds = %15, %12
store i8 1, i8* %3
br label %21
21: ; preds = %20, %19
%22 = load i8, i8* %3
ret i8 %22
}

LLVM IR (-O2):
@.str = [2 x i8] c"%\00"
define signext i8 @thresholds_expressed_as_percentages(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32* @strpbrk(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %13, label %7
7: ; preds = %4, %2
%8 = icmp eq i8* %1, null
br i1 %8, label %12, label %9
9: ; preds = %7
%10 = tail call i32* @strpbrk(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i32* %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %7
br label %13
13: ; preds = %4, %9, %12
%14 = phi i8 [ 1, %12 ], [ 0, %9 ], [ 0, %4 ]
ret i8 %14
}