#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*/ make_lower_temp(char *);
int /*<<< orphan*/ strcmp(int /*<<< orphan*/, char *);
int must_have_real_or_double(char *str) {
  int retval;
  retval = (!strcmp(make_lower_temp(str), "inputtype") ||
            !strcmp(make_lower_temp(str), "outputtype") ||
            !strcmp(make_lower_temp(str), "continuousstatetype") ||
            !strcmp(make_lower_temp(str), "discretestatetype") ||
            !strcmp(make_lower_temp(str), "constraintstatetype") ||
            !strcmp(make_lower_temp(str), "partialoutputpinputtype") ||
            !strcmp(make_lower_temp(str), "partialcontstatepinputtype") ||
            !strcmp(make_lower_temp(str), "partialdiscstatepinputtype") ||
            !strcmp(make_lower_temp(str), "partialconstrstatepinputtype") || 0);
  return (retval);
}


x86 assembly (clang, -O0):
<must_have_real_or_double>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xf4b(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe9b(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe7f(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe6c(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe57(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe44(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe35(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe29(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
mov    -0x8(%rbp),%rdi
call   1040 <make_lower_temp@plt>
mov    %eax,%edi
lea    0xe1d(%rip),%rsi
call   1030 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1295 <must_have_real_or_double+0x175>
xor    %eax,%eax
mov    %al,-0xd(%rbp)
jmp    1295 <must_have_real_or_double+0x175>
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<must_have_real_or_double>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <make_lower_temp@plt>
lea    0xf57(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xeab(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe98(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe8e(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe82(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe7c(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe7a(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe7b(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1226 <must_have_real_or_double+0x106>
mov    %rbx,%rdi
call   1040 <make_lower_temp@plt>
lea    0xe7c(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
xor    %ebp,%ebp
test   %eax,%eax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"inputtype\00"
@.str.1 = [11 x i8] c"outputtype\00"
@.str.2 = [20 x i8] c"continuousstatetype\00"
@.str.3 = [18 x i8] c"discretestatetype\00"
@.str.4 = [20 x i8] c"constraintstatetype\00"
@.str.5 = [24 x i8] c"partialoutputpinputtype\00"
@.str.6 = [27 x i8] c"partialcontstatepinputtype\00"
@.str.7 = [27 x i8] c"partialdiscstatepinputtype\00"
@.str.8 = [29 x i8] c"partialconstrstatepinputtype\00"
define i32 @must_have_real_or_double(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @make_lower_temp(i8* %4)
%6 = call i32 @strcmp(i32 %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %49
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @make_lower_temp(i8* %9)
%11 = call i32 @strcmp(i32 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %49
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = call i32 @make_lower_temp(i8* %14)
%16 = call i32 @strcmp(i32 %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %49
18: ; preds = %13
%19 = load i8*, i8** %2
%20 = call i32 @make_lower_temp(i8* %19)
%21 = call i32 @strcmp(i32 %20, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %49
23: ; preds = %18
%24 = load i8*, i8** %2
%25 = call i32 @make_lower_temp(i8* %24)
%26 = call i32 @strcmp(i32 %25, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %49
28: ; preds = %23
%29 = load i8*, i8** %2
%30 = call i32 @make_lower_temp(i8* %29)
%31 = call i32 @strcmp(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %49
33: ; preds = %28
%34 = load i8*, i8** %2
%35 = call i32 @make_lower_temp(i8* %34)
%36 = call i32 @strcmp(i32 %35, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %49
38: ; preds = %33
%39 = load i8*, i8** %2
%40 = call i32 @make_lower_temp(i8* %39)
%41 = call i32 @strcmp(i32 %40, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = call i32 @make_lower_temp(i8* %44)
%46 = call i32 @strcmp(i32 %45, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %43
br label %49
49: ; preds = %48, %43, %38, %33, %28, %23, %18, %13, %8, %1
%50 = phi i1 [ true, %43 ], [ true, %38 ], [ true, %33 ], [ true, %28 ], [ true, %23 ], [ true, %18 ], [ true, %13 ], [ true, %8 ], [ true, %1 ], [ false, %48 ]
%51 = zext i1 %50 to i32
store i32 %51, i32* %3
%52 = load i32, i32* %3
ret i32 %52
}

LLVM IR (-O2):
@.str = [10 x i8] c"inputtype\00"
@.str.1 = [11 x i8] c"outputtype\00"
@.str.2 = [20 x i8] c"continuousstatetype\00"
@.str.3 = [18 x i8] c"discretestatetype\00"
@.str.4 = [20 x i8] c"constraintstatetype\00"
@.str.5 = [24 x i8] c"partialoutputpinputtype\00"
@.str.6 = [27 x i8] c"partialcontstatepinputtype\00"
@.str.7 = [27 x i8] c"partialdiscstatepinputtype\00"
@.str.8 = [29 x i8] c"partialconstrstatepinputtype\00"
define i32 @must_have_real_or_double(i8* %0) {
%2 = tail call i32 @make_lower_temp(i8* %0)
%3 = tail call i32 @strcmp(i32 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %38, label %5
5: ; preds = %1
%6 = tail call i32 @make_lower_temp(i8* %0)
%7 = tail call i32 @strcmp(i32 %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %38, label %9
9: ; preds = %5
%10 = tail call i32 @make_lower_temp(i8* %0)
%11 = tail call i32 @strcmp(i32 %10, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %38, label %13
13: ; preds = %9
%14 = tail call i32 @make_lower_temp(i8* %0)
%15 = tail call i32 @strcmp(i32 %14, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %38, label %17
17: ; preds = %13
%18 = tail call i32 @make_lower_temp(i8* %0)
%19 = tail call i32 @strcmp(i32 %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %38, label %21
21: ; preds = %17
%22 = tail call i32 @make_lower_temp(i8* %0)
%23 = tail call i32 @strcmp(i32 %22, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %38, label %25
25: ; preds = %21
%26 = tail call i32 @make_lower_temp(i8* %0)
%27 = tail call i32 @strcmp(i32 %26, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %38, label %29
29: ; preds = %25
%30 = tail call i32 @make_lower_temp(i8* %0)
%31 = tail call i32 @strcmp(i32 %30, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %38, label %33
33: ; preds = %29
%34 = tail call i32 @make_lower_temp(i8* %0)
%35 = tail call i32 @strcmp(i32 %34, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i32
br label %38
38: ; preds = %33, %29, %25, %21, %17, %13, %9, %5, %1
%39 = phi i32 [ 1, %29 ], [ 1, %25 ], [ 1, %21 ], [ 1, %17 ], [ 1, %13 ], [ 1, %9 ], [ 1, %5 ], [ 1, %1 ], [ %37, %33 ]
ret i32 %39
}