#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__ strcmp(char *, char *);
int supported(char *str) {
  int i;
  char *sup[] = {":STRIPS",
                 ":NEGATION",
                 ":EQUALITY",
                 ":TYPING",
                 ":CONDITIONAL-EFFECTS",
                 ":NEGATIVE-PRECONDITIONS",
                 ":DISJUNCTIVE-PRECONDITIONS",
                 ":EXISTENTIAL-PRECONDITIONS",
                 ":UNIVERSAL-PRECONDITIONS",
                 ":QUANTIFIED-PRECONDITIONS",
                 ":ADL",
                 ":FLUENTS",
                 ":ACTION-COSTS",
                 ":DERIVED-PREDICATES",
                 NULL};
  for (i = 0; NULL != sup[i]; i++) {
    if (0 == strcmp(sup[i], str)) {
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<supported>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x90(%rbp),%rdi
lea    0x2c63(%rip),%rsi
mov    $0x78,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rcx
xor    %eax,%eax
cmp    -0x90(%rbp,%rcx,8),%rax
ff
je     11a4 <supported+0x84>
movslq -0x14(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rdi
ff
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1191 <supported+0x71>
movl   $0x1,-0x4(%rbp)
jmp    11ab <supported+0x8b>
jmp    1196 <supported+0x76>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114e <supported+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<supported>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xea2(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xe9f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xe9f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xea2(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xea9(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xeae(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xeb4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xea5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xe9a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1253 <supported+0x143>
lea    0xe94(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c":STRIPS\00"
@.str.1 = [10 x i8] c":NEGATION\00"
@.str.2 = [10 x i8] c":EQUALITY\00"
@.str.3 = [8 x i8] c":TYPING\00"
@.str.4 = [21 x i8] c":CONDITIONAL-EFFECTS\00"
@.str.5 = [24 x i8] c":NEGATIVE-PRECONDITIONS\00"
@.str.6 = [27 x i8] c":DISJUNCTIVE-PRECONDITIONS\00"
@.str.7 = [27 x i8] c":EXISTENTIAL-PRECONDITIONS\00"
@.str.8 = [25 x i8] c":UNIVERSAL-PRECONDITIONS\00"
@.str.9 = [26 x i8] c":QUANTIFIED-PRECONDITIONS\00"
@.str.10 = [5 x i8] c":ADL\00"
@.str.11 = [9 x i8] c":FLUENTS\00"
@.str.12 = [14 x i8] c":ACTION-COSTS\00"
@.str.13 = [20 x i8] c":DERIVED-PREDICATES\00"
@__const.supported.sup = [15 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i32 0, i32 0), i8* null]
define i32 @supported(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [15 x i8*]
store i8* %0, i8** %3
%6 = bitcast [15 x i8*]* %5 to i8*
store i32 0, i32* %4
br label %7
7: ; preds = %23, %1
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 %9
%11 = load i8*, i8** %10
%12 = icmp ne i8* null, %11
br i1 %12, label %13, label %26
13: ; preds = %7
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 %15
%17 = load i8*, i8** %16
%18 = load i8*, i8** %3
%19 = call i64 @strcmp(i8* %17, i8* %18)
%20 = icmp eq i64 0, %19
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 1, i32* %2
br label %27
22: ; preds = %13
br label %23
23: ; preds = %22
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %7
26: ; preds = %7
store i32 0, i32* %2
br label %27
27: ; preds = %26, %21
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
@.str = [8 x i8] c":STRIPS\00"
@.str.1 = [10 x i8] c":NEGATION\00"
@.str.2 = [10 x i8] c":EQUALITY\00"
@.str.3 = [8 x i8] c":TYPING\00"
@.str.4 = [21 x i8] c":CONDITIONAL-EFFECTS\00"
@.str.5 = [24 x i8] c":NEGATIVE-PRECONDITIONS\00"
@.str.6 = [27 x i8] c":DISJUNCTIVE-PRECONDITIONS\00"
@.str.7 = [27 x i8] c":EXISTENTIAL-PRECONDITIONS\00"
@.str.8 = [25 x i8] c":UNIVERSAL-PRECONDITIONS\00"
@.str.9 = [26 x i8] c":QUANTIFIED-PRECONDITIONS\00"
@.str.10 = [5 x i8] c":ADL\00"
@.str.11 = [9 x i8] c":FLUENTS\00"
@.str.12 = [14 x i8] c":ACTION-COSTS\00"
@.str.13 = [20 x i8] c":DERIVED-PREDICATES\00"
define i32 @supported(i8* %0) {
%2 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %44, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %44, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %44, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %44, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %44, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %44, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %44, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %44, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %44, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %44, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %44, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %44, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %44, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%42 = icmp eq i64 %41, 0
%43 = zext i1 %42 to i32
br label %44
44: ; preds = %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%45 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 1, %7 ], [ 1, %10 ], [ 1, %13 ], [ 1, %16 ], [ 1, %19 ], [ 1, %22 ], [ 1, %25 ], [ 1, %28 ], [ 1, %31 ], [ 1, %34 ], [ 1, %37 ], [ %43, %40 ]
ret i32 %45
}