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

/* Variables and functions */
int /*<<< orphan*/
Cyc_PrattProver_add_constraint(struct Cyc_PrattProver_Graph *, void *,
                               unsigned int, void *);
void Cyc_PrattProver_add_eq(struct Cyc_PrattProver_Graph *g, void *t1,
                            void *t2) {
  if (t1 != t2)
    goto _TL2C7;
  return;
_TL2C7:
  Cyc_PrattProver_add_constraint(g, t1, 5U, t2);
  Cyc_PrattProver_add_constraint(g, t2, 5U, t1);
  Cyc_PrattProver_add_constraint(g, t1, 3U, t2);
  Cyc_PrattProver_add_constraint(g, t2, 3U, t1);
}


x86 assembly (clang, -O0):
<Cyc_PrattProver_add_eq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
je     1137 <Cyc_PrattProver_add_eq+0x27>
jmp    113c <Cyc_PrattProver_add_eq+0x2c>
jmp    1194 <Cyc_PrattProver_add_eq+0x84>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    $0x5,%edx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rcx
mov    $0x5,%edx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    $0x3,%edx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rcx
mov    $0x3,%edx
call   1030 <Cyc_PrattProver_add_constraint@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_PrattProver_add_eq>:
cmp    %rdx,%rsi
je     116e <Cyc_PrattProver_add_eq+0x5e>
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0x5,%edx
mov    %rbx,%rcx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x5,%edx
mov    %r14,%rcx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1030 <Cyc_PrattProver_add_constraint@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
mov    %r14,%rcx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <Cyc_PrattProver_add_constraint@plt>
ret

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

LLVM IR (-O2):
%struct.Cyc_PrattProver_Graph = type { i32 }
define void @Cyc_PrattProver_add_eq(%struct.Cyc_PrattProver_Graph* %0, i8* %1, i8* %2) {
%4 = icmp eq i8* %1, %2
br i1 %4, label %10, label %5
5: ; preds = %3
%6 = tail call i32 @Cyc_PrattProver_add_constraint(%struct.Cyc_PrattProver_Graph* %0, i8* %1, i32 5, i8* %2)
%7 = tail call i32 @Cyc_PrattProver_add_constraint(%struct.Cyc_PrattProver_Graph* %0, i8* %2, i32 5, i8* %1)
%8 = tail call i32 @Cyc_PrattProver_add_constraint(%struct.Cyc_PrattProver_Graph* %0, i8* %1, i32 3, i8* %2)
%9 = tail call i32 @Cyc_PrattProver_add_constraint(%struct.Cyc_PrattProver_Graph* %0, i8* %2, i32 3, i8* %1)
br label %10
10: ; preds = %3, %5
ret void
}