#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 */
typedef int /*<<< orphan*/ mmask_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int /*<<< orphan*/);
void gen_mouse_events(void) {
  mmask_t all1 = 0;
  mmask_t all2 = 0;
  mmask_t all3 = 0;
  mmask_t all4 = 0;
  printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", "BUTTON1_EVENTS",
         all1);
  printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", "BUTTON2_EVENTS",
         all2);
  printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", "BUTTON3_EVENTS",
         all3);
  printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", "BUTTON4_EVENTS",
         all4);
}


x86 assembly (clang, -O0):
<gen_mouse_events>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%edx
lea    0xec2(%rip),%rdi
lea    0xee9(%rip),%rsi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edx
lea    0xeac(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1030 <printf@plt>
mov    -0xc(%rbp),%edx
lea    0xe96(%rip),%rdi
lea    0xedb(%rip),%rsi
call   1030 <printf@plt>
mov    -0x10(%rbp),%edx
lea    0xe80(%rip),%rdi
lea    0xed4(%rip),%rsi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_mouse_events>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xf0f(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <printf@plt>
lea    0xf0d(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <printf@plt>
lea    0xf0b(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <printf@plt>
lea    0xf09(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [46 x i8] c" %-25s : constant Event_Mask := 8#%011lo#;\0A\00"
@.str.1 = [15 x i8] c"BUTTON1_EVENTS\00"
@.str.2 = [15 x i8] c"BUTTON2_EVENTS\00"
@.str.3 = [15 x i8] c"BUTTON3_EVENTS\00"
@.str.4 = [15 x i8] c"BUTTON4_EVENTS\00"
define void @gen_mouse_events() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%5 = load i32, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %3
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load i32, i32* %4
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %11)
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c" %-25s : constant Event_Mask := 8#%011lo#;\0A\00"
@.str.1 = [15 x i8] c"BUTTON1_EVENTS\00"
@.str.2 = [15 x i8] c"BUTTON2_EVENTS\00"
@.str.3 = [15 x i8] c"BUTTON3_EVENTS\00"
@.str.4 = [15 x i8] c"BUTTON4_EVENTS\00"
define void @gen_mouse_events() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 0)
ret void
}