#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*/ detectCircle();
int /*<<< orphan*/ insert(int);
int /*<<< orphan*/ makeitcircular(int, int);
int /*<<< orphan*/ print();
int main() {
  insert(1);
  insert(2);
  insert(3);
  insert(4);
  insert(5);
  insert(6);
  insert(7);
  insert(8);
  insert(9);
  insert(10);
  insert(11);
  insert(12);
  insert(13);
  insert(14);
  print();
  makeitcircular(3, 12);
  detectCircle();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1050 <insert@plt>
mov    $0x2,%edi
call   1050 <insert@plt>
mov    $0x3,%edi
call   1050 <insert@plt>
mov    $0x4,%edi
call   1050 <insert@plt>
mov    $0x5,%edi
call   1050 <insert@plt>
mov    $0x6,%edi
call   1050 <insert@plt>
mov    $0x7,%edi
call   1050 <insert@plt>
mov    $0x8,%edi
call   1050 <insert@plt>
mov    $0x9,%edi
call   1050 <insert@plt>
mov    $0xa,%edi
call   1050 <insert@plt>
mov    $0xb,%edi
call   1050 <insert@plt>
mov    $0xc,%edi
call   1050 <insert@plt>
mov    $0xd,%edi
call   1050 <insert@plt>
mov    $0xe,%edi
call   1050 <insert@plt>
mov    $0x0,%al
call   1040 <print@plt>
mov    $0x3,%edi
mov    $0xc,%esi
call   1060 <makeitcircular@plt>
mov    $0x0,%al
call   1030 <detectCircle@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1050 <insert@plt>
mov    $0x2,%edi
call   1050 <insert@plt>
mov    $0x3,%edi
call   1050 <insert@plt>
mov    $0x4,%edi
call   1050 <insert@plt>
mov    $0x5,%edi
call   1050 <insert@plt>
mov    $0x6,%edi
call   1050 <insert@plt>
mov    $0x7,%edi
call   1050 <insert@plt>
mov    $0x8,%edi
call   1050 <insert@plt>
mov    $0x9,%edi
call   1050 <insert@plt>
mov    $0xa,%edi
call   1050 <insert@plt>
mov    $0xb,%edi
call   1050 <insert@plt>
mov    $0xc,%edi
call   1050 <insert@plt>
mov    $0xd,%edi
call   1050 <insert@plt>
mov    $0xe,%edi
call   1050 <insert@plt>
xor    %eax,%eax
call   1040 <print@plt>
mov    $0x3,%edi
mov    $0xc,%esi
call   1060 <makeitcircular@plt>
xor    %eax,%eax
call   1030 <detectCircle@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @insert(i32 1)
%2 = call i32 @insert(i32 2)
%3 = call i32 @insert(i32 3)
%4 = call i32 @insert(i32 4)
%5 = call i32 @insert(i32 5)
%6 = call i32 @insert(i32 6)
%7 = call i32 @insert(i32 7)
%8 = call i32 @insert(i32 8)
%9 = call i32 @insert(i32 9)
%10 = call i32 @insert(i32 10)
%11 = call i32 @insert(i32 11)
%12 = call i32 @insert(i32 12)
%13 = call i32 @insert(i32 13)
%14 = call i32 @insert(i32 14)
%15 = call i32 (...) @print()
%16 = call i32 @makeitcircular(i32 3, i32 12)
%17 = call i32 (...) @detectCircle()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @insert(i32 1)
%2 = tail call i32 @insert(i32 2)
%3 = tail call i32 @insert(i32 3)
%4 = tail call i32 @insert(i32 4)
%5 = tail call i32 @insert(i32 5)
%6 = tail call i32 @insert(i32 6)
%7 = tail call i32 @insert(i32 7)
%8 = tail call i32 @insert(i32 8)
%9 = tail call i32 @insert(i32 9)
%10 = tail call i32 @insert(i32 10)
%11 = tail call i32 @insert(i32 11)
%12 = tail call i32 @insert(i32 12)
%13 = tail call i32 @insert(i32 13)
%14 = tail call i32 @insert(i32 14)
%15 = tail call i32 (...) @print()
%16 = tail call i32 @makeitcircular(i32 3, i32 12)
%17 = tail call i32 (...) @detectCircle()
ret i32 0
}