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

/* Variables and functions */
int BLKRRPART;
int EVIOCSFF;
int FIFREEZE;
int RNDADDTOENTCNT;
int RNDGETENTCNT;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("{\n");
  printf("  'sizeof_int': %zu,\n", sizeof(int));
  printf("  'sizeof_ff_effect': %zu,\n", sizeof(struct ff_effect));
  printf("  'EVIOCSFF': 0x%08x,\n", EVIOCSFF);
  printf("  'BLKRRPART': 0x%08x,\n", BLKRRPART);
  printf("  'RNDGETENTCNT': 0x%08x,\n", RNDGETENTCNT);
  printf("  'RNDADDTOENTCNT': 0x%08x,\n", RNDADDTOENTCNT);
  printf("  'FIFREEZE': 0x%08x,\n", FIFREEZE);
  printf("}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%esi
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%esi
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"{\0A\00"
@.str.1 = [22 x i8] c" 'sizeof_int': %zu,\0A\00"
@.str.2 = [28 x i8] c" 'sizeof_ff_effect': %zu,\0A\00"
@.str.3 = [23 x i8] c" 'EVIOCSFF': 0x%08x,\0A\00"
@EVIOCSFF = global i32 0
@.str.4 = [24 x i8] c" 'BLKRRPART': 0x%08x,\0A\00"
@BLKRRPART = global i32 0
@.str.5 = [27 x i8] c" 'RNDGETENTCNT': 0x%08x,\0A\00"
@RNDGETENTCNT = global i32 0
@.str.6 = [29 x i8] c" 'RNDADDTOENTCNT': 0x%08x,\0A\00"
@RNDADDTOENTCNT = global i32 0
@.str.7 = [23 x i8] c" 'FIFREEZE': 0x%08x,\0A\00"
@FIFREEZE = global i32 0
@.str.8 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 4)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i64 4)
%5 = load i32, i32* @EVIOCSFF
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @BLKRRPART
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @RNDGETENTCNT
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @RNDADDTOENTCNT
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @FIFREEZE
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [22 x i8] c" 'sizeof_int': %zu,\0A\00"
@.str.2 = [28 x i8] c" 'sizeof_ff_effect': %zu,\0A\00"
@.str.3 = [23 x i8] c" 'EVIOCSFF': 0x%08x,\0A\00"
@EVIOCSFF = global i32 0
@.str.4 = [24 x i8] c" 'BLKRRPART': 0x%08x,\0A\00"
@BLKRRPART = global i32 0
@.str.5 = [27 x i8] c" 'RNDGETENTCNT': 0x%08x,\0A\00"
@RNDGETENTCNT = global i32 0
@.str.6 = [29 x i8] c" 'RNDADDTOENTCNT': 0x%08x,\0A\00"
@RNDADDTOENTCNT = global i32 0
@.str.7 = [23 x i8] c" 'FIFREEZE': 0x%08x,\0A\00"
@FIFREEZE = global i32 0
@str = [2 x i8] c"{\00"
@str.9 = [2 x i8] c"}\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 4)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i64 4)
%4 = load i32, i32* @EVIOCSFF
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @BLKRRPART
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @RNDGETENTCNT
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @RNDADDTOENTCNT
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @FIFREEZE
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %12)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0))
ret i32 0
}