#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__ KeyVal_strcmp(char *, char *);
int /*<<< orphan*/ ok(int, char *);
void test10() {
  ok(KeyVal_strcmp("a", "a") == 0, "10a. a == a");
  ok(KeyVal_strcmp("a", "b") < 0, "10b. a < b");
  ok(KeyVal_strcmp("b", "a") > 0, "10c. b > a");
  ok(KeyVal_strcmp("a", "aa") < 0, "10d. a < aa");
  ok(KeyVal_strcmp("aa", "a") > 0, "10e. aa > a");
  ok(KeyVal_strcmp("", "foo") < 0, "10f. '' < foo");
  ok(KeyVal_strcmp("foo", "") > 0, "10g. foo > ''");
  ok(KeyVal_strcmp("", "") == 0, "10h. '' == ''");
  ok(KeyVal_strcmp("foo::1", "foo::10") < 0, "10i. foo::1 < foo::10");
  ok(KeyVal_strcmp("foo::10", "foo::1") > 0, "10j. foo::10 > foo::1");
  ok(KeyVal_strcmp("foo::1", "foo::1::bar") < 0, "10k. foo::1 < foo::1::bar");
  ok(KeyVal_strcmp("foo::1::bar", "foo::1") > 0, "10l. foo::1::bar > foo::1");
  ok(KeyVal_strcmp("foo::1::bar", "foo::10") < 0, "10m. foo::1::bar < foo::10");
  ok(KeyVal_strcmp("foo::10", "foo::1::bar") > 0, "10n. foo::10 > foo::1::bar");
  ok(KeyVal_strcmp("a:b", "a:c") < 0, "10o. a:b < a:c");
  ok(KeyVal_strcmp("a:c", "a:b") > 0, "10p. a:c > a:b");
  ok(KeyVal_strcmp("a::b:c", "a::b:c") == 0, "10q. a::b:c == a::b:c");
  ok(KeyVal_strcmp("a::b:c", "a::b:d") < 0, "10r. a::b:c < a::b:d");
  ok(KeyVal_strcmp("a::b:d", "a::b:c") > 0, "10s. a::b:d > a::b:c");
  ok(KeyVal_strcmp("a:", "a:") == 0, "10t. a: == a:");
  ok(KeyVal_strcmp("a:", "a0") > 0, "10u. a: > a0");
  ok(KeyVal_strcmp("a0", "a:") < 0, "10v. a0 < a:");
}


x86 assembly (clang, -O0):
<test10>:
push   %rbp
mov    %rsp,%rbp
lea    0xedf(%rip),%rsi
mov    %rsi,%rdi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xeba(%rip),%rsi
call   1030 <ok@plt>
lea    0xeb8(%rip),%rdi
lea    0xebc(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe9b(%rip),%rsi
call   1030 <ok@plt>
lea    0xe98(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe7b(%rip),%rsi
call   1030 <ok@plt>
lea    0xe62(%rip),%rdi
lea    0xe7c(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe5b(%rip),%rsi
call   1030 <ok@plt>
lea    0xe58(%rip),%rdi
lea    0xe30(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe3c(%rip),%rsi
call   1030 <ok@plt>
lea    0xe65(%rip),%rdi
lea    0xe3f(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe1d(%rip),%rsi
call   1030 <ok@plt>
lea    0xe1b(%rip),%rdi
lea    0xe33(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xe00(%rip),%rsi
call   1030 <ok@plt>
lea    0xe0f(%rip),%rsi
mov    %rsi,%rdi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xde7(%rip),%rsi
call   1030 <ok@plt>
lea    0xe0e(%rip),%rdi
lea    0xdf0(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xdca(%rip),%rsi
call   1030 <ok@plt>
lea    0xdcc(%rip),%rdi
lea    0xddc(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xdb5(%rip),%rsi
call   1030 <ok@plt>
lea    0xdb8(%rip),%rdi
lea    0xdc6(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xda0(%rip),%rsi
call   1030 <ok@plt>
lea    0xda2(%rip),%rdi
lea    0xd86(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd8f(%rip),%rsi
call   1030 <ok@plt>
lea    0xd77(%rip),%rdi
lea    0xd44(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd7e(%rip),%rsi
call   1030 <ok@plt>
lea    0xd20(%rip),%rdi
lea    0xd45(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd6e(%rip),%rsi
call   1030 <ok@plt>
lea    0xd97(%rip),%rdi
lea    0xd81(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd5e(%rip),%rsi
call   1030 <ok@plt>
lea    0xd5d(%rip),%rdi
lea    0xd65(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd42(%rip),%rsi
call   1030 <ok@plt>
lea    0xd54(%rip),%rsi
mov    %rsi,%rdi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd2a(%rip),%rsi
call   1030 <ok@plt>
lea    0xd2d(%rip),%rdi
lea    0xd3b(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xd15(%rip),%rsi
call   1030 <ok@plt>
lea    0xd17(%rip),%rdi
lea    0xcfb(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xcff(%rip),%rsi
call   1030 <ok@plt>
lea    0xd2d(%rip),%rsi
mov    %rsi,%rdi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xced(%rip),%rsi
call   1030 <ok@plt>
lea    0xd06(%rip),%rdi
lea    0xcf2(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xcd0(%rip),%rsi
call   1030 <ok@plt>
lea    0xcce(%rip),%rdi
lea    0xcd4(%rip),%rsi
call   1040 <KeyVal_strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xcb2(%rip),%rsi
call   1030 <ok@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test10>:
push   %r15
push   %r14
push   %rbx
lea    0xede(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xeb9(%rip),%rsi
call   1030 <ok@plt>
lea    0xec2(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xea3(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xe8c(%rip),%rsi
call   1030 <ok@plt>
lea    0xe94(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xe75(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xe5f(%rip),%rsi
call   1030 <ok@plt>
lea    0xe88(%rip),%rbx
lea    0xe62(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xe42(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xe2e(%rip),%rsi
call   1030 <ok@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xe1c(%rip),%rsi
call   1030 <ok@plt>
lea    0xe43(%rip),%r15
lea    0xe25(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xe01(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xdf5(%rip),%rsi
call   1030 <ok@plt>
lea    0xe0d(%rip),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xde9(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xde1(%rip),%rsi
call   1030 <ok@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xde0(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xdd9(%rip),%rsi
call   1030 <ok@plt>
lea    0xe02(%rip),%r14
lea    0xdec(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xdcb(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xdb8(%rip),%rsi
call   1030 <ok@plt>
lea    0xdca(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xda0(%rip),%rsi
call   1030 <ok@plt>
lea    0xdb8(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xd94(%rip),%rsi
mov    %eax,%edi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xd87(%rip),%rsi
call   1030 <ok@plt>
lea    0xdb5(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xd75(%rip),%rsi
call   1030 <ok@plt>
lea    0xd81(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <KeyVal_strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
lea    0xd5c(%rip),%rsi
call   1030 <ok@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <KeyVal_strcmp@plt>
shr    $0x3f,%rax
lea    0xd4e(%rip),%rsi
mov    %eax,%edi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <ok@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [12 x i8] c"10a. a == a\00"
@.str.2 = [2 x i8] c"b\00"
@.str.3 = [11 x i8] c"10b. a < b\00"
@.str.4 = [11 x i8] c"10c. b > a\00"
@.str.5 = [3 x i8] c"aa\00"
@.str.6 = [12 x i8] c"10d. a < aa\00"
@.str.7 = [12 x i8] c"10e. aa > a\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [4 x i8] c"foo\00"
@.str.10 = [14 x i8] c"10f. '' < foo\00"
@.str.11 = [14 x i8] c"10g. foo > ''\00"
@.str.12 = [14 x i8] c"10h. '' == ''\00"
@.str.13 = [7 x i8] c"foo::1\00"
@.str.14 = [8 x i8] c"foo::10\00"
@.str.15 = [22 x i8] c"10i. foo::1 < foo::10\00"
@.str.16 = [22 x i8] c"10j. foo::10 > foo::1\00"
@.str.17 = [12 x i8] c"foo::1::bar\00"
@.str.18 = [26 x i8] c"10k. foo::1 < foo::1::bar\00"
@.str.19 = [26 x i8] c"10l. foo::1::bar > foo::1\00"
@.str.20 = [27 x i8] c"10m. foo::1::bar < foo::10\00"
@.str.21 = [27 x i8] c"10n. foo::10 > foo::1::bar\00"
@.str.22 = [4 x i8] c"a:b\00"
@.str.23 = [4 x i8] c"a:c\00"
@.str.24 = [15 x i8] c"10o. a:b < a:c\00"
@.str.25 = [15 x i8] c"10p. a:c > a:b\00"
@.str.26 = [7 x i8] c"a::b:c\00"
@.str.27 = [22 x i8] c"10q. a::b:c == a::b:c\00"
@.str.28 = [7 x i8] c"a::b:d\00"
@.str.29 = [21 x i8] c"10r. a::b:c < a::b:d\00"
@.str.30 = [21 x i8] c"10s. a::b:d > a::b:c\00"
@.str.31 = [3 x i8] c"a:\00"
@.str.32 = [14 x i8] c"10t. a: == a:\00"
@.str.33 = [3 x i8] c"a0\00"
@.str.34 = [13 x i8] c"10u. a: > a0\00"
@.str.35 = [13 x i8] c"10v. a0 < a:\00"
define void @test10() {
%1 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @ok(i32 %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%5 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp slt i64 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @ok(i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%9 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = icmp sgt i64 %9, 0
%11 = zext i1 %10 to i32
%12 = call i32 @ok(i32 %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%13 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%14 = icmp slt i64 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @ok(i32 %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%17 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = icmp sgt i64 %17, 0
%19 = zext i1 %18 to i32
%20 = call i32 @ok(i32 %19, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%21 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%22 = icmp slt i64 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @ok(i32 %23, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%25 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%26 = icmp sgt i64 %25, 0
%27 = zext i1 %26 to i32
%28 = call i32 @ok(i32 %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%29 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i32
%32 = call i32 @ok(i32 %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%33 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%34 = icmp slt i64 %33, 0
%35 = zext i1 %34 to i32
%36 = call i32 @ok(i32 %35, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%37 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%38 = icmp sgt i64 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @ok(i32 %39, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%41 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%42 = icmp slt i64 %41, 0
%43 = zext i1 %42 to i32
%44 = call i32 @ok(i32 %43, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%45 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp sgt i64 %45, 0
%47 = zext i1 %46 to i32
%48 = call i32 @ok(i32 %47, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0))
%49 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%50 = icmp slt i64 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @ok(i32 %51, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0))
%53 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%54 = icmp sgt i64 %53, 0
%55 = zext i1 %54 to i32
%56 = call i32 @ok(i32 %55, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0))
%57 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
%58 = icmp slt i64 %57, 0
%59 = zext i1 %58 to i32
%60 = call i32 @ok(i32 %59, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%61 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%62 = icmp sgt i64 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 @ok(i32 %63, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
%65 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
%67 = zext i1 %66 to i32
%68 = call i32 @ok(i32 %67, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0))
%69 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%70 = icmp slt i64 %69, 0
%71 = zext i1 %70 to i32
%72 = call i32 @ok(i32 %71, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.29, i64 0, i64 0))
%73 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%74 = icmp sgt i64 %73, 0
%75 = zext i1 %74 to i32
%76 = call i32 @ok(i32 %75, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.30, i64 0, i64 0))
%77 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @ok(i32 %79, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0))
%81 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
%82 = icmp sgt i64 %81, 0
%83 = zext i1 %82 to i32
%84 = call i32 @ok(i32 %83, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0))
%85 = call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
%86 = icmp slt i64 %85, 0
%87 = zext i1 %86 to i32
%88 = call i32 @ok(i32 %87, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [12 x i8] c"10a. a == a\00"
@.str.2 = [2 x i8] c"b\00"
@.str.3 = [11 x i8] c"10b. a < b\00"
@.str.4 = [11 x i8] c"10c. b > a\00"
@.str.5 = [3 x i8] c"aa\00"
@.str.6 = [12 x i8] c"10d. a < aa\00"
@.str.7 = [12 x i8] c"10e. aa > a\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [4 x i8] c"foo\00"
@.str.10 = [14 x i8] c"10f. '' < foo\00"
@.str.11 = [14 x i8] c"10g. foo > ''\00"
@.str.12 = [14 x i8] c"10h. '' == ''\00"
@.str.13 = [7 x i8] c"foo::1\00"
@.str.14 = [8 x i8] c"foo::10\00"
@.str.15 = [22 x i8] c"10i. foo::1 < foo::10\00"
@.str.16 = [22 x i8] c"10j. foo::10 > foo::1\00"
@.str.17 = [12 x i8] c"foo::1::bar\00"
@.str.18 = [26 x i8] c"10k. foo::1 < foo::1::bar\00"
@.str.19 = [26 x i8] c"10l. foo::1::bar > foo::1\00"
@.str.20 = [27 x i8] c"10m. foo::1::bar < foo::10\00"
@.str.21 = [27 x i8] c"10n. foo::10 > foo::1::bar\00"
@.str.22 = [4 x i8] c"a:b\00"
@.str.23 = [4 x i8] c"a:c\00"
@.str.24 = [15 x i8] c"10o. a:b < a:c\00"
@.str.25 = [15 x i8] c"10p. a:c > a:b\00"
@.str.26 = [7 x i8] c"a::b:c\00"
@.str.27 = [22 x i8] c"10q. a::b:c == a::b:c\00"
@.str.28 = [7 x i8] c"a::b:d\00"
@.str.29 = [21 x i8] c"10r. a::b:c < a::b:d\00"
@.str.30 = [21 x i8] c"10s. a::b:d > a::b:c\00"
@.str.31 = [3 x i8] c"a:\00"
@.str.32 = [14 x i8] c"10t. a: == a:\00"
@.str.33 = [3 x i8] c"a0\00"
@.str.34 = [13 x i8] c"10u. a: > a0\00"
@.str.35 = [13 x i8] c"10v. a0 < a:\00"
define void @test10() {
%1 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @ok(i32 %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = lshr i64 %5, 63
%7 = trunc i64 %6 to i32
%8 = tail call i32 @ok(i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = icmp sgt i64 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @ok(i32 %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%14 = lshr i64 %13, 63
%15 = trunc i64 %14 to i32
%16 = tail call i32 @ok(i32 %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = icmp sgt i64 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @ok(i32 %19, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%21 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%22 = lshr i64 %21, 63
%23 = trunc i64 %22 to i32
%24 = tail call i32 @ok(i32 %23, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%25 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%26 = icmp sgt i64 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @ok(i32 %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%29 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @ok(i32 %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%33 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%34 = lshr i64 %33, 63
%35 = trunc i64 %34 to i32
%36 = tail call i32 @ok(i32 %35, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%37 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%38 = icmp sgt i64 %37, 0
%39 = zext i1 %38 to i32
%40 = tail call i32 @ok(i32 %39, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%41 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%42 = lshr i64 %41, 63
%43 = trunc i64 %42 to i32
%44 = tail call i32 @ok(i32 %43, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%45 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp sgt i64 %45, 0
%47 = zext i1 %46 to i32
%48 = tail call i32 @ok(i32 %47, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0))
%49 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
%50 = lshr i64 %49, 63
%51 = trunc i64 %50 to i32
%52 = tail call i32 @ok(i32 %51, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0))
%53 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%54 = icmp sgt i64 %53, 0
%55 = zext i1 %54 to i32
%56 = tail call i32 @ok(i32 %55, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0))
%57 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
%58 = lshr i64 %57, 63
%59 = trunc i64 %58 to i32
%60 = tail call i32 @ok(i32 %59, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%61 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%62 = icmp sgt i64 %61, 0
%63 = zext i1 %62 to i32
%64 = tail call i32 @ok(i32 %63, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
%65 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
%67 = zext i1 %66 to i32
%68 = tail call i32 @ok(i32 %67, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0))
%69 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%70 = lshr i64 %69, 63
%71 = trunc i64 %70 to i32
%72 = tail call i32 @ok(i32 %71, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.29, i64 0, i64 0))
%73 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%74 = icmp sgt i64 %73, 0
%75 = zext i1 %74 to i32
%76 = tail call i32 @ok(i32 %75, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.30, i64 0, i64 0))
%77 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = tail call i32 @ok(i32 %79, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0))
%81 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
%82 = icmp sgt i64 %81, 0
%83 = zext i1 %82 to i32
%84 = tail call i32 @ok(i32 %83, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0))
%85 = tail call i64 @KeyVal_strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
%86 = lshr i64 %85, 63
%87 = trunc i64 %86 to i32
%88 = tail call i32 @ok(i32 %87, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0))
ret void
}