#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*/ strchr(char const *, char const);
int exists_non_delimiter(const char *s, const char *delimiters) {
  const char *pc;
  if (!s || !delimiters)
    return 0;
  for (pc = s; *pc != '\0'; ++pc)
    if (!strchr(delimiters, *pc))
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<exists_non_delimiter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1136 <exists_non_delimiter+0x26>
cmpq   $0x0,-0x18(%rbp)
jne    1142 <exists_non_delimiter+0x32>
movl   $0x0,-0x4(%rbp)
jmp    119c <exists_non_delimiter+0x8c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1195 <exists_non_delimiter+0x85>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rax
movsbl (%rax),%esi
call   1030 <strchr@plt>
cmp    $0x0,%eax
jne    117f <exists_non_delimiter+0x6f>
movl   $0x1,-0x4(%rbp)
jmp    119c <exists_non_delimiter+0x8c>
jmp    1184 <exists_non_delimiter+0x74>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    114a <exists_non_delimiter+0x3a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exists_non_delimiter>:
push   %rbp
push   %r14
push   %rbx
xor    %r14d,%r14d
test   %rdi,%rdi
je     1163 <exists_non_delimiter+0x53>
mov    %rsi,%rbx
test   %rsi,%rsi
je     1163 <exists_non_delimiter+0x53>
mov    %rdi,%rbp
mov    (%rdi),%al
test   %al,%al
je     1163 <exists_non_delimiter+0x53>
add    $0x1,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <strchr@plt>
test   %eax,%eax
je     115d <exists_non_delimiter+0x4d>
movzbl 0x0(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    1140 <exists_non_delimiter+0x30>
jmp    1163 <exists_non_delimiter+0x53>
mov    $0x1,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @exists_non_delimiter(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %5
%11 = icmp ne i8* %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %2
store i32 0, i32* %3
br label %32
13: ; preds = %9
%14 = load i8*, i8** %4
store i8* %14, i8** %6
br label %15
15: ; preds = %28, %13
%16 = load i8*, i8** %6
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %31
20: ; preds = %15
%21 = load i8*, i8** %5
%22 = load i8*, i8** %6
%23 = load i8, i8* %22
%24 = call i32 @strchr(i8* %21, i8 signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %20
store i32 1, i32* %3
br label %32
27: ; preds = %20
br label %28
28: ; preds = %27
%29 = load i8*, i8** %6
%30 = getelementptr inbounds i8, i8* %29, i32 1
store i8* %30, i8** %6
br label %15
31: ; preds = %15
store i32 0, i32* %3
br label %32
32: ; preds = %31, %26, %12
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
define i32 @exists_non_delimiter(i8* %0, i8* %1) {
%3 = icmp ne i8* %0, null
%4 = icmp ne i8* %1, null
%5 = and i1 %3, %4
br i1 %5, label %6, label %18
6: ; preds = %2
%7 = load i8, i8* %0
%8 = icmp eq i8 %7, 0
br i1 %8, label %18, label %12
9: ; preds = %12
%10 = load i8, i8* %17
%11 = icmp eq i8 %10, 0
br i1 %11, label %18, label %12
12: ; preds = %6, %9
%13 = phi i8 [ %10, %9 ], [ %7, %6 ]
%14 = phi i8* [ %17, %9 ], [ %0, %6 ]
%15 = tail call i32 @strchr(i8* %1, i8 signext %13)
%16 = icmp eq i32 %15, 0
%17 = getelementptr inbounds i8, i8* %14, i64 1
br i1 %16, label %18, label %9
18: ; preds = %12, %9, %6, %2
%19 = phi i32 [ 0, %2 ], [ 0, %6 ], [ 1, %12 ], [ 0, %9 ]
ret i32 %19
}