#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 Cyc_List_List {
  int dummy;
};

/* Variables and functions */
int Cyc_Absyn_strlist_cmp(struct Cyc_List_List *, struct Cyc_List_List *);
int Cyc_Absyn_varlist_cmp(struct Cyc_List_List *vs1,
                          struct Cyc_List_List *vs2) {
  struct Cyc_List_List *_T0;
  int _T1;
  struct Cyc_List_List *_T2;
  int _T3;
  int _T4;
  _T0 = vs1;
  _T1 = (int)_T0;
  _T2 = vs2;
  _T3 = (int)_T2;
  if (_T1 != _T3)
    goto _TL1A;
  return 0;
_TL1A:
  _T4 = Cyc_Absyn_strlist_cmp(vs1, vs2);
  return _T4;
}


x86 assembly (clang, -O0):
<Cyc_Absyn_varlist_cmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %eax,-0x34(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     114f <Cyc_Absyn_varlist_cmp+0x3f>
jmp    115b <Cyc_Absyn_varlist_cmp+0x4b>
movl   $0x0,-0x4(%rbp)
jmp    1171 <Cyc_Absyn_varlist_cmp+0x61>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <Cyc_Absyn_strlist_cmp@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Absyn_varlist_cmp>:
cmp    %esi,%edi
jne    1117 <Cyc_Absyn_varlist_cmp+0x7>
xor    %eax,%eax
ret
jmp    1030 <Cyc_Absyn_strlist_cmp@plt>

LLVM IR (-O0):
%struct.Cyc_List_List = type { i32 }
define i32 @Cyc_Absyn_varlist_cmp(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1) {
%3 = alloca i32
%4 = alloca %struct.Cyc_List_List*
%5 = alloca %struct.Cyc_List_List*
%6 = alloca %struct.Cyc_List_List*
%7 = alloca i32
%8 = alloca %struct.Cyc_List_List*
%9 = alloca i32
%10 = alloca i32
store %struct.Cyc_List_List* %0, %struct.Cyc_List_List** %4
store %struct.Cyc_List_List* %1, %struct.Cyc_List_List** %5
%11 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
store %struct.Cyc_List_List* %11, %struct.Cyc_List_List** %6
%12 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %6
%13 = ptrtoint %struct.Cyc_List_List* %12 to i32
store i32 %13, i32* %7
%14 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %5
store %struct.Cyc_List_List* %14, %struct.Cyc_List_List** %8
%15 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %8
%16 = ptrtoint %struct.Cyc_List_List* %15 to i32
store i32 %16, i32* %9
%17 = load i32, i32* %7
%18 = load i32, i32* %9
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %2
br label %22
21: ; preds = %2
store i32 0, i32* %3
br label %27
22: ; preds = %20
%23 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%24 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %5
%25 = call i32 @Cyc_Absyn_strlist_cmp(%struct.Cyc_List_List* %23, %struct.Cyc_List_List* %24)
store i32 %25, i32* %10
%26 = load i32, i32* %10
store i32 %26, i32* %3
br label %27
27: ; preds = %22, %21
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
%struct.Cyc_List_List = type { i32 }
define i32 @Cyc_Absyn_varlist_cmp(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1) {
%3 = ptrtoint %struct.Cyc_List_List* %0 to i64
%4 = trunc i64 %3 to i32
%5 = ptrtoint %struct.Cyc_List_List* %1 to i64
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %4, %6
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = tail call i32 @Cyc_Absyn_strlist_cmp(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1)
br label %10
10: ; preds = %2, %8
%11 = phi i32 [ %9, %8 ], [ 0, %2 ]
ret i32 %11
}