#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 subparserColprintCompareLines(struct colprintLine *a,
                                  struct colprintLine *b) {
  const char *a_name = colprintLineGetColumn(a, 0);
  const char *b_name = colprintLineGetColumn(b, 0);
  int r;
  r = strcmp(a_name, b_name);
  if (r != 0)
    return r;
  const char *a_baseparser = colprintLineGetColumn(a, 1);
  const char *b_baseparser = colprintLineGetColumn(b, 1);
  return strcmp(a_baseparser, b_baseparser);
}


x86 assembly (clang, -O0):
<subparserColprintCompareLines>:
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,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1173 <subparserColprintCompareLines+0x53>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    11a7 <subparserColprintCompareLines+0x87>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1040 <colprintLineGetColumn@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<subparserColprintCompareLines>:
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 <subparserColprintCompareLines+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 @subparserColprintCompareLines(%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 i32
%9 = alloca i8*
%10 = alloca i8*
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* %8
%18 = load i32, i32* %8
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = load i32, i32* %8
store i32 %21, i32* %3
br label %30
22: ; preds = %2
%23 = load %struct.colprintLine*, %struct.colprintLine** %4
%24 = call i8* @colprintLineGetColumn(%struct.colprintLine* %23, i32 1)
store i8* %24, i8** %9
%25 = load %struct.colprintLine*, %struct.colprintLine** %5
%26 = call i8* @colprintLineGetColumn(%struct.colprintLine* %25, i32 1)
store i8* %26, i8** %10
%27 = load i8*, i8** %9
%28 = load i8*, i8** %10
%29 = call i32 @strcmp(i8* %27, i8* %28)
store i32 %29, i32* %3
br label %30
30: ; preds = %22, %20
%31 = load i32, i32* %3
ret i32 %31
}

LLVM IR (-O2):
%struct.colprintLine = type { i32 }
define i32 @subparserColprintCompareLines(%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 = %2, %7
%12 = phi i32 [ %10, %7 ], [ %5, %2 ]
ret i32 %12
}