#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*/ is_error(char *);
int /*<<< orphan*/ mu_fail(char *);
void test_is_error() {
  do {
    if (!(is_error("400"))) {
      mu_fail("test_is_error: 400 should be a valid error");
      return;
    }
  } while (0);
  do {
    if (!(is_error("427"))) {
      mu_fail("test_is_error: 427 should be a valid error");
      return;
    }
  } while (0);
  do {
    if (!(is_error("599"))) {
      mu_fail("test_is_error: 599 should be a valid error");
      return;
    }
  } while (0);
  do {
    if (!(!is_error("200"))) {
      mu_fail("test_is_error: 200 should not be a valid error");
      return;
    }
  } while (0);
  do {
    if (!(!is_error("399"))) {
      mu_fail("test_is_error: 299 should not be a valid error");
      return;
    }
  } while (0);
  do {
    if (!(!is_error("600"))) {
      mu_fail("test_is_error: 600 should not be a valid error");
      return;
    }
  } while (0);
}


x86 assembly (clang, -O0):
<test_is_error>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <test_is_error+0x9>
lea    0xed0(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
jne    114f <test_is_error+0x2f>
lea    0xebf(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    1154 <test_is_error+0x34>
jmp    1159 <test_is_error+0x39>
lea    0xecf(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
jne    117f <test_is_error+0x5f>
lea    0xebe(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    1184 <test_is_error+0x64>
jmp    1189 <test_is_error+0x69>
lea    0xece(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
jne    11af <test_is_error+0x8f>
lea    0xebd(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    11b4 <test_is_error+0x94>
jmp    11b9 <test_is_error+0x99>
lea    0xecd(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
je     11df <test_is_error+0xbf>
lea    0xebc(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    11e4 <test_is_error+0xc4>
jmp    11e9 <test_is_error+0xc9>
lea    0xed0(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
je     120f <test_is_error+0xef>
lea    0xebf(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    1214 <test_is_error+0xf4>
jmp    1219 <test_is_error+0xf9>
lea    0xed3(%rip),%rdi
call   1030 <is_error@plt>
cmp    $0x0,%eax
je     123f <test_is_error+0x11f>
lea    0xec2(%rip),%rdi
call   1040 <mu_fail@plt>
jmp    1244 <test_is_error+0x124>
jmp    1244 <test_is_error+0x124>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_is_error>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     116e <test_is_error+0x4e>
lea    0xef7(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     117b <test_is_error+0x5b>
lea    0xf16(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     1188 <test_is_error+0x68>
lea    0xf35(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     1195 <test_is_error+0x75>
lea    0xf29(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
lea    0xe8f(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
lea    0xeb1(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
lea    0xed3(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
lea    0xf24(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     11b2 <test_is_error+0x92>
lea    0xf18(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
lea    0xf3a(%rip),%rdi
call   1030 <is_error@plt>
test   %eax,%eax
je     11cf <test_is_error+0xaf>
lea    0xf2e(%rip),%rdi
pop    %rax
jmp    1040 <mu_fail@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [4 x i8] c"400\00"
@.str.1 = [43 x i8] c"test_is_error: 400 should be a valid error\00"
@.str.2 = [4 x i8] c"427\00"
@.str.3 = [43 x i8] c"test_is_error: 427 should be a valid error\00"
@.str.4 = [4 x i8] c"599\00"
@.str.5 = [43 x i8] c"test_is_error: 599 should be a valid error\00"
@.str.6 = [4 x i8] c"200\00"
@.str.7 = [47 x i8] c"test_is_error: 200 should not be a valid error\00"
@.str.8 = [4 x i8] c"399\00"
@.str.9 = [47 x i8] c"test_is_error: 299 should not be a valid error\00"
@.str.10 = [4 x i8] c"600\00"
@.str.11 = [47 x i8] c"test_is_error: 600 should not be a valid error\00"
define void @test_is_error() {
br label %1
1: ; preds = %0
%2 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = call i32 @mu_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %42
6: ; preds = %1
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = call i32 @mu_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
br label %42
13: ; preds = %8
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp ne i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = call i32 @mu_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
br label %42
20: ; preds = %15
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @mu_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
br label %42
27: ; preds = %22
br label %28
28: ; preds = %27
br label %29
29: ; preds = %28
%30 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @mu_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
br label %42
34: ; preds = %29
br label %35
35: ; preds = %34
br label %36
36: ; preds = %35
%37 = call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @mu_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
br label %42
41: ; preds = %36
br label %42
42: ; preds = %4, %11, %18, %25, %32, %39, %41
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"400\00"
@.str.1 = [43 x i8] c"test_is_error: 400 should be a valid error\00"
@.str.2 = [4 x i8] c"427\00"
@.str.3 = [43 x i8] c"test_is_error: 427 should be a valid error\00"
@.str.4 = [4 x i8] c"599\00"
@.str.5 = [43 x i8] c"test_is_error: 599 should be a valid error\00"
@.str.6 = [4 x i8] c"200\00"
@.str.7 = [47 x i8] c"test_is_error: 200 should not be a valid error\00"
@.str.8 = [4 x i8] c"399\00"
@.str.9 = [47 x i8] c"test_is_error: 299 should not be a valid error\00"
@.str.10 = [4 x i8] c"600\00"
@.str.11 = [47 x i8] c"test_is_error: 600 should not be a valid error\00"
define void @test_is_error() {
%1 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %18, label %3
3: ; preds = %0
%4 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %18, label %6
6: ; preds = %3
%7 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %9
%13 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = tail call i32 @is_error(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %15, %12, %9, %6, %3, %0
%19 = phi i8* [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), %0 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), %3 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), %9 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), %12 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), %15 ]
%20 = tail call i32 @mu_fail(i8* %19)
br label %21
21: ; preds = %18, %15
ret void
}