#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*/ nl();
int /*<<< orphan*/ ot(char *);
zge() {
  ot("cmpl");
  ot("%eax, %edx");
  nl();
  ot("setge");
  ot("%al");
  nl();
  ot("movzbl");
  ot("%al, %eax");
  nl();
}


x86 assembly (clang, -O0):
<zge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1040 <ot@plt>
lea    0xeca(%rip),%rdi
call   1040 <ot@plt>
mov    $0x0,%al
call   1030 <nl@plt>
lea    0xec2(%rip),%rdi
call   1040 <ot@plt>
lea    0xebc(%rip),%rdi
call   1040 <ot@plt>
mov    $0x0,%al
call   1030 <nl@plt>
lea    0xead(%rip),%rdi
call   1040 <ot@plt>
lea    0xea8(%rip),%rdi
call   1040 <ot@plt>
mov    $0x0,%al
call   1030 <nl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zge>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <ot@plt>
lea    0xed1(%rip),%rdi
call   1040 <ot@plt>
xor    %eax,%eax
call   1030 <nl@plt>
lea    0xec9(%rip),%rdi
call   1040 <ot@plt>
lea    0xec3(%rip),%rdi
call   1040 <ot@plt>
xor    %eax,%eax
call   1030 <nl@plt>
lea    0xeb4(%rip),%rdi
call   1040 <ot@plt>
lea    0xeaf(%rip),%rdi
call   1040 <ot@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <nl@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"cmpl\00"
@.str.1 = [11 x i8] c"%eax, %edx\00"
@.str.2 = [6 x i8] c"setge\00"
@.str.3 = [4 x i8] c"%al\00"
@.str.4 = [7 x i8] c"movzbl\00"
@.str.5 = [10 x i8] c"%al, %eax\00"
define i32 @zge() {
%1 = alloca i32
%2 = call i32 @ot(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @ot(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @nl()
%5 = call i32 @ot(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @ot(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (...) @nl()
%8 = call i32 @ot(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @ot(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (...) @nl()
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@.str = [5 x i8] c"cmpl\00"
@.str.1 = [11 x i8] c"%eax, %edx\00"
@.str.2 = [6 x i8] c"setge\00"
@.str.3 = [4 x i8] c"%al\00"
@.str.4 = [7 x i8] c"movzbl\00"
@.str.5 = [10 x i8] c"%al, %eax\00"
define i32 @zge() {
%1 = tail call i32 @ot(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @ot(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @nl()
%4 = tail call i32 @ot(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @ot(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (...) @nl()
%7 = tail call i32 @ot(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @ot(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (...) @nl()
ret i32 undef
}