#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 */
struct colprintLine {
  int dummy;
};

/* Variables and functions */
char *colprintLineGetColumn(struct colprintLine *, int);
int strcmp(char const *, char const *);
int kindColprintCompareLines(struct colprintLine *a, struct colprintLine *b) {
  const char *a_parser = colprintLineGetColumn(a, 0);
  const char *b_parser = colprintLineGetColumn(b, 0);
  const char *a_letter;
  const char *b_letter;
  int r;
  r = strcmp(a_parser, b_parser);
  if (r != 0)
    return r;
  a_letter = colprintLineGetColumn(a, 1);
  b_letter = colprintLineGetColumn(b, 1);
  r = strcmp(a_letter, b_letter);
  if (r != 0)
    return r;
  return 0;
}


x86 assembly (clang, -O0):
<kindColprintCompareLines>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     1173 <kindColprintCompareLines+0x53>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    11c3 <kindColprintCompareLines+0xa3>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     11bc <kindColprintCompareLines+0x9c>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    11c3 <kindColprintCompareLines+0xa3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kindColprintCompareLines>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
xor    %esi,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,%rbx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1154 <kindColprintCompareLines+0x34>
pop    %rbx
pop    %r14
pop    %r15
ret
mov    %r15,%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
%struct.colprintLine = type { i32 }
define i32 @kindColprintCompareLines(%struct.colprintLine* %0, %struct.colprintLine* %1) {
%3 = alloca i32
%4 = alloca %struct.colprintLine*
%5 = alloca %struct.colprintLine*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
store %struct.colprintLine* %0, %struct.colprintLine** %4
store %struct.colprintLine* %1, %struct.colprintLine** %5
%11 = load %struct.colprintLine*, %struct.colprintLine** %4
%12 = call i8* @colprintLineGetColumn(%struct.colprintLine* %11, i32 0)
store i8* %12, i8** %6
%13 = load %struct.colprintLine*, %struct.colprintLine** %5
%14 = call i8* @colprintLineGetColumn(%struct.colprintLine* %13, i32 0)
store i8* %14, i8** %7
%15 = load i8*, i8** %6
%16 = load i8*, i8** %7
%17 = call i32 @strcmp(i8* %15, i8* %16)
store i32 %17, i32* %10
%18 = load i32, i32* %10
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = load i32, i32* %10
store i32 %21, i32* %3
br label %35
22: ; preds = %2
%23 = load %struct.colprintLine*, %struct.colprintLine** %4
%24 = call i8* @colprintLineGetColumn(%struct.colprintLine* %23, i32 1)
store i8* %24, i8** %8
%25 = load %struct.colprintLine*, %struct.colprintLine** %5
%26 = call i8* @colprintLineGetColumn(%struct.colprintLine* %25, i32 1)
store i8* %26, i8** %9
%27 = load i8*, i8** %8
%28 = load i8*, i8** %9
%29 = call i32 @strcmp(i8* %27, i8* %28)
store i32 %29, i32* %10
%30 = load i32, i32* %10
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %22
%33 = load i32, i32* %10
store i32 %33, i32* %3
br label %35
34: ; preds = %22
store i32 0, i32* %3
br label %35
35: ; preds = %34, %32, %20
%36 = load i32, i32* %3
ret i32 %36
}

LLVM IR (-O2):
%struct.colprintLine = type { i32 }
define i32 @kindColprintCompareLines(%struct.colprintLine* %0, %struct.colprintLine* %1) {
%3 = tail call i8* @colprintLineGetColumn(%struct.colprintLine* %0, i32 0)
%4 = tail call i8* @colprintLineGetColumn(%struct.colprintLine* %1, i32 0)
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(1) %4)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = tail call i8* @colprintLineGetColumn(%struct.colprintLine* %0, i32 1)
%9 = tail call i8* @colprintLineGetColumn(%struct.colprintLine* %1, i32 1)
%10 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(1) %9)
br label %11
11: ; preds = %7, %2
%12 = phi i32 [ %5, %2 ], [ %10, %7 ]
ret i32 %12
}