#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*/ character_comparison(char *, char *);
int main(void) {
  char character1, character2;
  character1 = 'a';
  character2 = 'b';
  character_comparison(&character1, &character2);
  character1 = 'z';
  character2 = 'z';
  character_comparison(&character1, &character2);
  character1 = '1';
  character2 = '2';
  character_comparison(&character1, &character2);
  character1 = '0';
  character2 = '0';
  character_comparison(&character1, &character2);
  character1 = '\0';
  character2 = '\0';
  character_comparison(&character1, &character2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x61,-0x5(%rbp)
movb   $0x62,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x6(%rbp),%rsi
call   1030 <character_comparison@plt>
movb   $0x7a,-0x5(%rbp)
movb   $0x7a,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x6(%rbp),%rsi
call   1030 <character_comparison@plt>
movb   $0x31,-0x5(%rbp)
movb   $0x32,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x6(%rbp),%rsi
call   1030 <character_comparison@plt>
movb   $0x30,-0x5(%rbp)
movb   $0x30,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x6(%rbp),%rsi
call   1030 <character_comparison@plt>
movb   $0x0,-0x5(%rbp)
movb   $0x0,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x6(%rbp),%rsi
call   1030 <character_comparison@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
movb   $0x61,0x7(%rsp)
movb   $0x62,0x6(%rsp)
lea    0x7(%rsp),%rbx
lea    0x6(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <character_comparison@plt>
movb   $0x7a,0x7(%rsp)
movb   $0x7a,0x6(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <character_comparison@plt>
movb   $0x31,0x7(%rsp)
movb   $0x32,0x6(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <character_comparison@plt>
movb   $0x30,0x7(%rsp)
movb   $0x30,0x6(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <character_comparison@plt>
movb   $0x0,0x7(%rsp)
movb   $0x0,0x6(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <character_comparison@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
store i8 97, i8* %2
store i8 98, i8* %3
%4 = call i32 @character_comparison(i8* %2, i8* %3)
store i8 122, i8* %2
store i8 122, i8* %3
%5 = call i32 @character_comparison(i8* %2, i8* %3)
store i8 49, i8* %2
store i8 50, i8* %3
%6 = call i32 @character_comparison(i8* %2, i8* %3)
store i8 48, i8* %2
store i8 48, i8* %3
%7 = call i32 @character_comparison(i8* %2, i8* %3)
store i8 0, i8* %2
store i8 0, i8* %3
%8 = call i32 @character_comparison(i8* %2, i8* %3)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
store i8 97, i8* %1
store i8 98, i8* %2
%3 = call i32 @character_comparison(i8* %1, i8* %2)
store i8 122, i8* %1
store i8 122, i8* %2
%4 = call i32 @character_comparison(i8* %1, i8* %2)
store i8 49, i8* %1
store i8 50, i8* %2
%5 = call i32 @character_comparison(i8* %1, i8* %2)
store i8 48, i8* %1
store i8 48, i8* %2
%6 = call i32 @character_comparison(i8* %1, i8* %2)
store i8 0, i8* %1
store i8 0, i8* %2
%7 = call i32 @character_comparison(i8* %1, i8* %2)
ret i32 0
}