#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 GLUT_DOWN;
int GLUT_LEFT_BUTTON;
int GLUT_RIGHT_BUTTON;
int GLUT_UP;
void triggerHandle(int button, int state, int x, int y) {
  if (button == GLUT_LEFT_BUTTON) {
    if (state == GLUT_DOWN) {
    }
    if (state == GLUT_UP) {
    }
  }
  if (button == GLUT_RIGHT_BUTTON) {
    if (state == GLUT_DOWN) {
    }
    if (state == GLUT_DOWN) {
    }
  }
}


x86 assembly (clang, -O0):
<triggerHandle>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2eae(%rip),%rcx
cmp    (%rcx),%eax
jne    1155 <triggerHandle+0x55>
mov    -0x8(%rbp),%eax
mov    0x2eb4(%rip),%rcx
cmp    (%rcx),%eax
jne    1139 <triggerHandle+0x39>
jmp    1139 <triggerHandle+0x39>
mov    -0x8(%rbp),%eax
mov    0x2e8d(%rip),%rcx
cmp    (%rcx),%eax
jne    1150 <triggerHandle+0x50>
jmp    1150 <triggerHandle+0x50>
jmp    1155 <triggerHandle+0x55>
mov    -0x4(%rbp),%eax
mov    0x2e89(%rip),%rcx
cmp    (%rcx),%eax
jne    119a <triggerHandle+0x9a>
mov    -0x8(%rbp),%eax
mov    0x2e6f(%rip),%rcx
cmp    (%rcx),%eax
jne    117e <triggerHandle+0x7e>
jmp    117e <triggerHandle+0x7e>
mov    -0x8(%rbp),%eax
mov    0x2e58(%rip),%rcx
cmp    (%rcx),%eax
jne    1195 <triggerHandle+0x95>
jmp    1195 <triggerHandle+0x95>
jmp    119a <triggerHandle+0x9a>
pop    %rbp
ret

x86 assembly (clang, -O2):
<triggerHandle>:
ret

LLVM IR (-O0):
@GLUT_LEFT_BUTTON = global i32 0
@GLUT_DOWN = global i32 0
@GLUT_UP = global i32 0
@GLUT_RIGHT_BUTTON = global i32 0
define void @triggerHandle(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* @GLUT_LEFT_BUTTON
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %4
%13 = load i32, i32* %6
%14 = load i32, i32* @GLUT_DOWN
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
br label %17
17: ; preds = %16, %12
%18 = load i32, i32* %6
%19 = load i32, i32* @GLUT_UP
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %17
br label %22
22: ; preds = %21, %17
br label %23
23: ; preds = %22, %4
%24 = load i32, i32* %5
%25 = load i32, i32* @GLUT_RIGHT_BUTTON
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %38
27: ; preds = %23
%28 = load i32, i32* %6
%29 = load i32, i32* @GLUT_DOWN
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %32
31: ; preds = %27
br label %32
32: ; preds = %31, %27
%33 = load i32, i32* %6
%34 = load i32, i32* @GLUT_DOWN
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %32
br label %37
37: ; preds = %36, %32
br label %38
38: ; preds = %37, %23
ret void
}

LLVM IR (-O2):
@GLUT_LEFT_BUTTON = global i32 0
@GLUT_DOWN = global i32 0
@GLUT_UP = global i32 0
@GLUT_RIGHT_BUTTON = global i32 0
define void @triggerHandle(i32 %0, i32 %1, i32 %2, i32 %3) {
ret void
}