#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*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, long *, long *);
int /*<<< orphan*/ system(char *);
int main() {
  long int a, b;
  system("clear");
  gotoxy(10, 10);
  printf("Enter values a and b: ");
  scanf("%ld %ld", &a, &b);
  (a >= b) ? printf("\n A is greater") : printf("\n B id greater");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1030 <system@plt>
mov    $0xa,%esi
mov    %esi,%edi
call   1060 <gotoxy@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jl     11a6 <main+0x66>
lea    0xe89(%rip),%rdi
call   1040 <printf@plt>
jmp    11b2 <main+0x72>
lea    0xe87(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xeb5(%rip),%rdi
call   1030 <system@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1060 <gotoxy@plt>
lea    0xea0(%rip),%rdi
call   1040 <printf@plt>
lea    0xeab(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
mov    0x10(%rsp),%rax
cmp    0x8(%rsp),%rax
lea    0xea2(%rip),%rax
lea    0xe8c(%rip),%rdi
cmovl  %rax,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [23 x i8] c"Enter values a and b: \00"
@.str.2 = [8 x i8] c"%ld %ld\00"
@.str.3 = [15 x i8] c"\0A A is greater\00"
@.str.4 = [15 x i8] c"\0A B id greater\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
%4 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @gotoxy(i32 10, i32 10)
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64* %2, i64* %3)
%8 = load i64, i64* %2
%9 = load i64, i64* %3
%10 = icmp sge i64 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %15
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = phi i32 [ %12, %11 ], [ %14, %13 ]
%17 = load i32, i32* %1
ret i32 %17
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [23 x i8] c"Enter values a and b: \00"
@.str.2 = [8 x i8] c"%ld %ld\00"
@.str.3 = [15 x i8] c"\0A A is greater\00"
@.str.4 = [15 x i8] c"\0A B id greater\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = bitcast i64* %1 to i8*
%4 = bitcast i64* %2 to i8*
%5 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @gotoxy(i32 10, i32 10)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64* %1, i64* %2)
%9 = load i64, i64* %1
%10 = load i64, i64* %2
%11 = icmp slt i64 %9, %10
%12 = select i1 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0)
%13 = call i32 @printf(i8* dereferenceable(1) %12)
ret i32 0
}