#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ condAttribute(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ condNumber(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ condString(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ printf(char *);
unsigned int sis32toh(unsigned int);
scalar_t__ sisRead(int /*<<< orphan*/ *, unsigned int *, int, char *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, unsigned int);
int condExpr(FILE *fp, char *err, int errlen) {
  unsigned int condtype;
  if (sisRead(fp, &condtype, 4, err, errlen))
    return 1;
  condtype = sis32toh(condtype);
  switch (condtype) {
  case 0x00:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" == ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x01:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" != ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x02:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" > ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x03:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" < ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x04:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" >= ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x05:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" <= ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x06:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" AND ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x07:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" OR ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x08:
  case 0x09:
    printf("EXISTS(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0a:
    printf("DEVCAP(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0b:
    printf("NOT(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0c:
    if (condString(fp, err, errlen))
      return 1;
    break;
  case 0x0d:
    if (condAttribute(fp, err, errlen))
      return 1;
    break;
  case 0x0e:
    if (condNumber(fp, err, errlen))
      return 1;
    break;
  default:
    snprintf(err, errlen, "Unknown conditional type %04x", condtype);
    return 1;
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<condExpr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
lea    -0x20(%rbp),%rsi
mov    $0x4,%edx
call   1080 <sisRead@plt>
cmp    $0x0,%rax
je     11c3 <condExpr+0x43>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
mov    -0x20(%rbp),%edi
call   1040 <sis32toh@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %rax,-0x28(%rbp)
sub    $0xe,%rax
ja     160f <condExpr+0x48f>
mov    -0x28(%rbp),%rax
lea    0xe16(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1218 <condExpr+0x98>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xe1d(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1249 <condExpr+0xc9>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1273 <condExpr+0xf3>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xdc7(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     12a4 <condExpr+0x124>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     12ce <condExpr+0x14e>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xd71(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     12ff <condExpr+0x17f>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1329 <condExpr+0x1a9>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xd1a(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     135a <condExpr+0x1da>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1384 <condExpr+0x204>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xcc3(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     13b5 <condExpr+0x235>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     13df <condExpr+0x25f>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xc6d(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1410 <condExpr+0x290>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     143a <condExpr+0x2ba>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xc17(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     146b <condExpr+0x2eb>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1495 <condExpr+0x315>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xbc2(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     14c6 <condExpr+0x346>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
lea    0xb91(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     14fc <condExpr+0x37c>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xb68(%rip),%rdi
call   1060 <printf@plt>
jmp    1631 <condExpr+0x4b1>
lea    0xb59(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     153e <condExpr+0x3be>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xb26(%rip),%rdi
call   1060 <printf@plt>
jmp    1631 <condExpr+0x4b1>
lea    0xb1f(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1090 <condExpr@plt>
cmp    $0x0,%eax
je     1580 <condExpr+0x400>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
lea    0xae4(%rip),%rdi
call   1060 <printf@plt>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   10a0 <condString@plt>
cmp    $0x0,%eax
je     15b6 <condExpr+0x436>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <condAttribute@plt>
cmp    $0x0,%eax
je     15e0 <condExpr+0x460>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1050 <condNumber@plt>
cmp    $0x0,%eax
je     160a <condExpr+0x48a>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
jmp    1631 <condExpr+0x4b1>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%ecx
lea    0xa5a(%rip),%rdx
call   1070 <snprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1638 <condExpr+0x4b8>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<condExpr>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r15d
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
mov    %rbx,%rcx
mov    %r15d,%r8d
call   1090 <sisRead@plt>
mov    $0x1,%r14d
test   %rax,%rax
je     11ce <condExpr+0x3e>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x4(%rsp),%edi
call   1050 <sis32toh@plt>
mov    %eax,0x4(%rsp)
cmp    $0xe,%eax
ja     11fe <condExpr+0x6e>
mov    %eax,%eax
lea    0xe17(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe6a(%rip),%rdi
jmp    1334 <condExpr+0x1a4>
lea    0xe73(%rip),%rdx
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %eax,%ecx
call   1080 <snprintf@plt>
jmp    11c0 <condExpr+0x30>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xe0f(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xdf2(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xdd5(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xdb7(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xd9c(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xd82(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xd68(%rip),%rdi
jmp    130f <condExpr+0x17f>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
lea    0xd4f(%rip),%rdi
call   1070 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
jmp    1389 <condExpr+0x1f9>
lea    0xd40(%rip),%rdi
jmp    1334 <condExpr+0x1a4>
lea    0xd3f(%rip),%rdi
call   1070 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10a0 <condExpr@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
mov    $0x29,%edi
call   1030 <putchar@plt>
jmp    1391 <condExpr+0x201>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   10b0 <condString@plt>
jmp    1389 <condExpr+0x1f9>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   1040 <condAttribute@plt>
jmp    1389 <condExpr+0x1f9>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
call   1060 <condNumber@plt>
test   %eax,%eax
jne    11c0 <condExpr+0x30>
xor    %r14d,%r14d
jmp    11c0 <condExpr+0x30>

LLVM IR (-O0):
@.str = [5 x i8] c" == \00"
@.str.1 = [5 x i8] c" != \00"
@.str.2 = [4 x i8] c" > \00"
@.str.3 = [4 x i8] c" < \00"
@.str.4 = [5 x i8] c" >= \00"
@.str.5 = [5 x i8] c" <= \00"
@.str.6 = [6 x i8] c" AND \00"
@.str.7 = [5 x i8] c" OR \00"
@.str.8 = [8 x i8] c"EXISTS(\00"
@.str.9 = [2 x i8] c")\00"
@.str.10 = [8 x i8] c"DEVCAP(\00"
@.str.11 = [5 x i8] c"NOT(\00"
@.str.12 = [30 x i8] c"Unknown conditional type %04x\00"
define i32 @condExpr(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%9 = load i32*, i32** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = call i64 @sisRead(i32* %9, i32* %8, i32 4, i8* %10, i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 1, i32* %4
br label %207
15: ; preds = %3
%16 = load i32, i32* %8
%17 = call i32 @sis32toh(i32 %16)
store i32 %17, i32* %8
%18 = load i32, i32* %8
switch i32 %18, label %201 [
i32 0, label %19
i32 1, label %35
i32 2, label %51
i32 3, label %67
i32 4, label %83
i32 5, label %99
i32 6, label %115
i32 7, label %131
i32 8, label %147
i32 9, label %147
i32 10, label %157
i32 11, label %167
i32 12, label %177
i32 13, label %185
i32 14, label %193
]
19: ; preds = %15
%20 = load i32*, i32** %5
%21 = load i8*, i8** %6
%22 = load i32, i32* %7
%23 = call i32 @condExpr(i32* %20, i8* %21, i32 %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %19
store i32 1, i32* %4
br label %207
26: ; preds = %19
%27 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%28 = load i32*, i32** %5
%29 = load i8*, i8** %6
%30 = load i32, i32* %7
%31 = call i32 @condExpr(i32* %28, i8* %29, i32 %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store i32 1, i32* %4
br label %207
34: ; preds = %26
br label %206
35: ; preds = %15
%36 = load i32*, i32** %5
%37 = load i8*, i8** %6
%38 = load i32, i32* %7
%39 = call i32 @condExpr(i32* %36, i8* %37, i32 %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %35
store i32 1, i32* %4
br label %207
42: ; preds = %35
%43 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%44 = load i32*, i32** %5
%45 = load i8*, i8** %6
%46 = load i32, i32* %7
%47 = call i32 @condExpr(i32* %44, i8* %45, i32 %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %42
store i32 1, i32* %4
br label %207
50: ; preds = %42
br label %206
51: ; preds = %15
%52 = load i32*, i32** %5
%53 = load i8*, i8** %6
%54 = load i32, i32* %7
%55 = call i32 @condExpr(i32* %52, i8* %53, i32 %54)
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %51
store i32 1, i32* %4
br label %207
58: ; preds = %51
%59 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%60 = load i32*, i32** %5
%61 = load i8*, i8** %6
%62 = load i32, i32* %7
%63 = call i32 @condExpr(i32* %60, i8* %61, i32 %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %58
store i32 1, i32* %4
br label %207
66: ; preds = %58
br label %206
67: ; preds = %15
%68 = load i32*, i32** %5
%69 = load i8*, i8** %6
%70 = load i32, i32* %7
%71 = call i32 @condExpr(i32* %68, i8* %69, i32 %70)
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %67
store i32 1, i32* %4
br label %207
74: ; preds = %67
%75 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%76 = load i32*, i32** %5
%77 = load i8*, i8** %6
%78 = load i32, i32* %7
%79 = call i32 @condExpr(i32* %76, i8* %77, i32 %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %74
store i32 1, i32* %4
br label %207
82: ; preds = %74
br label %206
83: ; preds = %15
%84 = load i32*, i32** %5
%85 = load i8*, i8** %6
%86 = load i32, i32* %7
%87 = call i32 @condExpr(i32* %84, i8* %85, i32 %86)
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %83
store i32 1, i32* %4
br label %207
90: ; preds = %83
%91 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%92 = load i32*, i32** %5
%93 = load i8*, i8** %6
%94 = load i32, i32* %7
%95 = call i32 @condExpr(i32* %92, i8* %93, i32 %94)
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %90
store i32 1, i32* %4
br label %207
98: ; preds = %90
br label %206
99: ; preds = %15
%100 = load i32*, i32** %5
%101 = load i8*, i8** %6
%102 = load i32, i32* %7
%103 = call i32 @condExpr(i32* %100, i8* %101, i32 %102)
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %99
store i32 1, i32* %4
br label %207
106: ; preds = %99
%107 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%108 = load i32*, i32** %5
%109 = load i8*, i8** %6
%110 = load i32, i32* %7
%111 = call i32 @condExpr(i32* %108, i8* %109, i32 %110)
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %106
store i32 1, i32* %4
br label %207
114: ; preds = %106
br label %206
115: ; preds = %15
%116 = load i32*, i32** %5
%117 = load i8*, i8** %6
%118 = load i32, i32* %7
%119 = call i32 @condExpr(i32* %116, i8* %117, i32 %118)
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %115
store i32 1, i32* %4
br label %207
122: ; preds = %115
%123 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%124 = load i32*, i32** %5
%125 = load i8*, i8** %6
%126 = load i32, i32* %7
%127 = call i32 @condExpr(i32* %124, i8* %125, i32 %126)
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %130
129: ; preds = %122
store i32 1, i32* %4
br label %207
130: ; preds = %122
br label %206
131: ; preds = %15
%132 = load i32*, i32** %5
%133 = load i8*, i8** %6
%134 = load i32, i32* %7
%135 = call i32 @condExpr(i32* %132, i8* %133, i32 %134)
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %138
137: ; preds = %131
store i32 1, i32* %4
br label %207
138: ; preds = %131
%139 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%140 = load i32*, i32** %5
%141 = load i8*, i8** %6
%142 = load i32, i32* %7
%143 = call i32 @condExpr(i32* %140, i8* %141, i32 %142)
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %146
145: ; preds = %138
store i32 1, i32* %4
br label %207
146: ; preds = %138
br label %206
147: ; preds = %15, %15
%148 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%149 = load i32*, i32** %5
%150 = load i8*, i8** %6
%151 = load i32, i32* %7
%152 = call i32 @condExpr(i32* %149, i8* %150, i32 %151)
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %155
154: ; preds = %147
store i32 1, i32* %4
br label %207
155: ; preds = %147
%156 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %206
157: ; preds = %15
%158 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%159 = load i32*, i32** %5
%160 = load i8*, i8** %6
%161 = load i32, i32* %7
%162 = call i32 @condExpr(i32* %159, i8* %160, i32 %161)
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %165
164: ; preds = %157
store i32 1, i32* %4
br label %207
165: ; preds = %157
%166 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %206
167: ; preds = %15
%168 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%169 = load i32*, i32** %5
%170 = load i8*, i8** %6
%171 = load i32, i32* %7
%172 = call i32 @condExpr(i32* %169, i8* %170, i32 %171)
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %175
174: ; preds = %167
store i32 1, i32* %4
br label %207
175: ; preds = %167
%176 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %206
177: ; preds = %15
%178 = load i32*, i32** %5
%179 = load i8*, i8** %6
%180 = load i32, i32* %7
%181 = call i32 @condString(i32* %178, i8* %179, i32 %180)
%182 = icmp ne i32 %181, 0
br i1 %182, label %183, label %184
183: ; preds = %177
store i32 1, i32* %4
br label %207
184: ; preds = %177
br label %206
185: ; preds = %15
%186 = load i32*, i32** %5
%187 = load i8*, i8** %6
%188 = load i32, i32* %7
%189 = call i32 @condAttribute(i32* %186, i8* %187, i32 %188)
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %192
191: ; preds = %185
store i32 1, i32* %4
br label %207
192: ; preds = %185
br label %206
193: ; preds = %15
%194 = load i32*, i32** %5
%195 = load i8*, i8** %6
%196 = load i32, i32* %7
%197 = call i32 @condNumber(i32* %194, i8* %195, i32 %196)
%198 = icmp ne i32 %197, 0
br i1 %198, label %199, label %200
199: ; preds = %193
store i32 1, i32* %4
br label %207
200: ; preds = %193
br label %206
201: ; preds = %15
%202 = load i8*, i8** %6
%203 = load i32, i32* %7
%204 = load i32, i32* %8
%205 = call i32 @snprintf(i8* %202, i32 %203, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %204)
store i32 1, i32* %4
br label %207
206: ; preds = %200, %192, %184, %175, %165, %155, %146, %130, %114, %98, %82, %66, %50, %34
store i32 0, i32* %4
br label %207
207: ; preds = %206, %201, %199, %191, %183, %174, %164, %154, %145, %137, %129, %121, %113, %105, %97, %89, %81, %73, %65, %57, %49, %41, %33, %25, %14
%208 = load i32, i32* %4
ret i32 %208
}

LLVM IR (-O2):
@.str = [5 x i8] c" == \00"
@.str.1 = [5 x i8] c" != \00"
@.str.2 = [4 x i8] c" > \00"
@.str.3 = [4 x i8] c" < \00"
@.str.4 = [5 x i8] c" >= \00"
@.str.5 = [5 x i8] c" <= \00"
@.str.6 = [6 x i8] c" AND \00"
@.str.7 = [5 x i8] c" OR \00"
@.str.8 = [8 x i8] c"EXISTS(\00"
@.str.10 = [8 x i8] c"DEVCAP(\00"
@.str.11 = [5 x i8] c"NOT(\00"
@.str.12 = [30 x i8] c"Unknown conditional type %04x\00"
define i32 @condExpr(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = call i64 @sisRead(i32* %0, i32* %4, i32 4, i8* %1, i32 %2)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %93
8: ; preds = %3
%9 = load i32, i32* %4
%10 = call i32 @sis32toh(i32 %9)
store i32 %10, i32* %4
switch i32 %10, label %88 [
i32 0, label %11
i32 1, label %18
i32 2, label %25
i32 3, label %32
i32 4, label %39
i32 5, label %46
i32 6, label %53
i32 7, label %60
i32 8, label %67
i32 9, label %67
i32 10, label %71
i32 11, label %75
i32 12, label %79
i32 13, label %82
i32 14, label %85
]
11: ; preds = %8
%12 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %93
14: ; preds = %11
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%17 = icmp eq i32 %16, 0
br i1 %17, label %92, label %93
18: ; preds = %8
%19 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %93
21: ; preds = %18
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%24 = icmp eq i32 %23, 0
br i1 %24, label %92, label %93
25: ; preds = %8
%26 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %93
28: ; preds = %25
%29 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%31 = icmp eq i32 %30, 0
br i1 %31, label %92, label %93
32: ; preds = %8
%33 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %93
35: ; preds = %32
%36 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%38 = icmp eq i32 %37, 0
br i1 %38, label %92, label %93
39: ; preds = %8
%40 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %93
42: ; preds = %39
%43 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%44 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%45 = icmp eq i32 %44, 0
br i1 %45, label %92, label %93
46: ; preds = %8
%47 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %93
49: ; preds = %46
%50 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%52 = icmp eq i32 %51, 0
br i1 %52, label %92, label %93
53: ; preds = %8
%54 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %93
56: ; preds = %53
%57 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%58 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%59 = icmp eq i32 %58, 0
br i1 %59, label %92, label %93
60: ; preds = %8
%61 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %93
63: ; preds = %60
%64 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%65 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%66 = icmp eq i32 %65, 0
br i1 %66, label %92, label %93
67: ; preds = %8, %8
%68 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%69 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%70 = icmp eq i32 %69, 0
br i1 %70, label %90, label %93
71: ; preds = %8
%72 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%73 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%74 = icmp eq i32 %73, 0
br i1 %74, label %90, label %93
75: ; preds = %8
%76 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%77 = call i32 @condExpr(i32* %0, i8* %1, i32 %2)
%78 = icmp eq i32 %77, 0
br i1 %78, label %90, label %93
79: ; preds = %8
%80 = call i32 @condString(i32* %0, i8* %1, i32 %2)
%81 = icmp eq i32 %80, 0
br i1 %81, label %92, label %93
82: ; preds = %8
%83 = call i32 @condAttribute(i32* %0, i8* %1, i32 %2)
%84 = icmp eq i32 %83, 0
br i1 %84, label %92, label %93
85: ; preds = %8
%86 = call i32 @condNumber(i32* %0, i8* %1, i32 %2)
%87 = icmp eq i32 %86, 0
br i1 %87, label %92, label %93
88: ; preds = %8
%89 = call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %10)
br label %93
90: ; preds = %75, %71, %67
%91 = call i32 @putchar(i32 41)
br label %92
92: ; preds = %90, %85, %82, %79, %63, %56, %49, %42, %35, %28, %21, %14
br label %93
93: ; preds = %85, %82, %79, %75, %71, %67, %63, %60, %56, %53, %49, %46, %42, %39, %35, %32, %28, %25, %21, %18, %14, %11, %3, %92, %88
%94 = phi i32 [ 1, %88 ], [ 0, %92 ], [ 1, %3 ], [ 1, %11 ], [ 1, %14 ], [ 1, %18 ], [ 1, %21 ], [ 1, %25 ], [ 1, %28 ], [ 1, %32 ], [ 1, %35 ], [ 1, %39 ], [ 1, %42 ], [ 1, %46 ], [ 1, %49 ], [ 1, %53 ], [ 1, %56 ], [ 1, %60 ], [ 1, %63 ], [ 1, %67 ], [ 1, %71 ], [ 1, %75 ], [ 1, %79 ], [ 1, %82 ], [ 1, %85 ]
ret i32 %94
}