#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_numeric_response(char *);
int /*<<< orphan*/ mu_fail(char *);
void test_is_numeric_response() {
  do {
    if (!(is_numeric_response("200"))) {
      mu_fail("test_is_numeric_response: 200 should be a valid response");
      return;
    }
  } while (0);
  do {
    if (!(is_numeric_response("399"))) {
      mu_fail("test_is_numeric_response: 399 should be a valid response");
      return;
    }
  } while (0);
  do {
    if (!(is_numeric_response("250"))) {
      mu_fail("test_is_numeric_response: 250 should be a valid response");
      return;
    }
  } while (0);
  do {
    if (!(!is_numeric_response("199"))) {
      mu_fail("test_is_numeric_response: 199 should not be a valid response");
      return;
    }
  } while (0);
  do {
    if (!(!is_numeric_response("400"))) {
      mu_fail("test_is_numeric_response: 400 should not be a valid response");
      return;
    }
  } while (0);
  do {
    if (!(!is_numeric_response("403"))) {
      mu_fail("test_is_numeric_response: 403 should not be a valid response");
      return;
    }
  } while (0);
}


x86 assembly (clang, -O0):
<test_is_numeric_response>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <test_is_numeric_response+0x9>
lea    0xed0(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
jne    114f <test_is_numeric_response+0x2f>
lea    0xebf(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    1154 <test_is_numeric_response+0x34>
jmp    1159 <test_is_numeric_response+0x39>
lea    0xedd(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
jne    117f <test_is_numeric_response+0x5f>
lea    0xecc(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    1184 <test_is_numeric_response+0x64>
jmp    1189 <test_is_numeric_response+0x69>
lea    0xeea(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
jne    11af <test_is_numeric_response+0x8f>
lea    0xed9(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    11b4 <test_is_numeric_response+0x94>
jmp    11b9 <test_is_numeric_response+0x99>
lea    0xef7(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
je     11df <test_is_numeric_response+0xbf>
lea    0xee6(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    11e4 <test_is_numeric_response+0xc4>
jmp    11e9 <test_is_numeric_response+0xc9>
lea    0xf08(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
je     120f <test_is_numeric_response+0xef>
lea    0xef7(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    1214 <test_is_numeric_response+0xf4>
jmp    1219 <test_is_numeric_response+0xf9>
lea    0xf19(%rip),%rdi
call   1040 <is_numeric_response@plt>
cmp    $0x0,%eax
je     123f <test_is_numeric_response+0x11f>
lea    0xf08(%rip),%rdi
call   1030 <mu_fail@plt>
jmp    1244 <test_is_numeric_response+0x124>
jmp    1244 <test_is_numeric_response+0x124>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_is_numeric_response>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     116e <test_is_numeric_response+0x4e>
lea    0xf05(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     117b <test_is_numeric_response+0x5b>
lea    0xf32(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     1188 <test_is_numeric_response+0x68>
lea    0xf5f(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     1195 <test_is_numeric_response+0x75>
lea    0xf53(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
lea    0xe8f(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
lea    0xebf(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
lea    0xeef(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
lea    0xf5c(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     11b2 <test_is_numeric_response+0x92>
lea    0xf50(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
lea    0xf80(%rip),%rdi
call   1040 <is_numeric_response@plt>
test   %eax,%eax
je     11cf <test_is_numeric_response+0xaf>
lea    0xf74(%rip),%rdi
pop    %rax
jmp    1030 <mu_fail@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [4 x i8] c"200\00"
@.str.1 = [57 x i8] c"test_is_numeric_response: 200 should be a valid response\00"
@.str.2 = [4 x i8] c"399\00"
@.str.3 = [57 x i8] c"test_is_numeric_response: 399 should be a valid response\00"
@.str.4 = [4 x i8] c"250\00"
@.str.5 = [57 x i8] c"test_is_numeric_response: 250 should be a valid response\00"
@.str.6 = [4 x i8] c"199\00"
@.str.7 = [61 x i8] c"test_is_numeric_response: 199 should not be a valid response\00"
@.str.8 = [4 x i8] c"400\00"
@.str.9 = [61 x i8] c"test_is_numeric_response: 400 should not be a valid response\00"
@.str.10 = [4 x i8] c"403\00"
@.str.11 = [61 x i8] c"test_is_numeric_response: 403 should not be a valid response\00"
define void @test_is_numeric_response() {
br label %1
1: ; preds = %0
%2 = call i32 @is_numeric_response(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 ([57 x i8], [57 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_numeric_response(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 ([57 x i8], [57 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_numeric_response(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 ([57 x i8], [57 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_numeric_response(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 ([61 x i8], [61 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_numeric_response(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 ([61 x i8], [61 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_numeric_response(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 ([61 x i8], [61 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"200\00"
@.str.1 = [57 x i8] c"test_is_numeric_response: 200 should be a valid response\00"
@.str.2 = [4 x i8] c"399\00"
@.str.3 = [57 x i8] c"test_is_numeric_response: 399 should be a valid response\00"
@.str.4 = [4 x i8] c"250\00"
@.str.5 = [57 x i8] c"test_is_numeric_response: 250 should be a valid response\00"
@.str.6 = [4 x i8] c"199\00"
@.str.7 = [61 x i8] c"test_is_numeric_response: 199 should not be a valid response\00"
@.str.8 = [4 x i8] c"400\00"
@.str.9 = [61 x i8] c"test_is_numeric_response: 400 should not be a valid response\00"
@.str.10 = [4 x i8] c"403\00"
@.str.11 = [61 x i8] c"test_is_numeric_response: 403 should not be a valid response\00"
define void @test_is_numeric_response() {
%1 = tail call i32 @is_numeric_response(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_numeric_response(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_numeric_response(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_numeric_response(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_numeric_response(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_numeric_response(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 ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), %0 ], [ getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), %3 ], [ getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0), %9 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), %12 ], [ getelementptr inbounds ([61 x i8], [61 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
}