#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 */
scalar_t__ KVM_CHECK_EXTENSION;
scalar_t__ KVM_CREATE_VCPU;
scalar_t__ KVM_CREATE_VM;
scalar_t__ KVM_GET_API_VERSION;
scalar_t__ KVM_GET_DEBUGREGS;
scalar_t__ KVM_GET_MSRS;
scalar_t__ KVM_GET_MSR_INDEX_LIST;
scalar_t__ KVM_GET_REGS;
scalar_t__ KVM_GET_SREGS;
scalar_t__ KVM_GET_VCPU_MMAP_SIZE;
scalar_t__ KVM_INTERRUPT;
scalar_t__ KVM_RUN;
scalar_t__ KVM_SET_CPUID;
scalar_t__ KVM_SET_DEBUGREGS;
scalar_t__ KVM_SET_GUEST_DEBUG;
scalar_t__ KVM_SET_MSRS;
scalar_t__ KVM_SET_REGS;
scalar_t__ KVM_SET_SREGS;
scalar_t__ KVM_SET_USER_MEMORY_REGION;
scalar_t__ KVM_TRANSLATE;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("System IOCTLs:\n");
  printf("  %-30s = 0x%08lX\n", "KVM_GET_API_VERSION",
         (long unsigned int)KVM_GET_API_VERSION);
  printf("  %-30s = 0x%08lX\n", "KVM_CREATE_VM",
         (long unsigned int)KVM_CREATE_VM);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_MSR_INDEX_LIST",
         (long unsigned int)KVM_GET_MSR_INDEX_LIST);
  printf("  %-30s = 0x%08lX\n", "KVM_CHECK_EXTENSION",
         (long unsigned int)KVM_CHECK_EXTENSION);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_VCPU_MMAP_SIZE",
         (long unsigned int)KVM_GET_VCPU_MMAP_SIZE);
  printf("VM IOCTLs:\n");
  printf("  %-30s = 0x%08lX\n", "KVM_CREATE_VCPU",
         (long unsigned int)KVM_CREATE_VCPU);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_USER_MEMORY_REGION",
         (long unsigned int)KVM_SET_USER_MEMORY_REGION);
  printf("VCPU IOCTLs:\n");
  printf("  %-30s = 0x%08lX\n", "KVM_RUN", (long unsigned int)KVM_RUN);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_REGS",
         (long unsigned int)KVM_GET_REGS);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_REGS",
         (long unsigned int)KVM_SET_REGS);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_SREGS",
         (long unsigned int)KVM_GET_SREGS);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_SREGS",
         (long unsigned int)KVM_SET_SREGS);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_DEBUGREGS",
         (long unsigned int)KVM_GET_DEBUGREGS);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_DEBUGREGS",
         (long unsigned int)KVM_SET_DEBUGREGS);
  printf("  %-30s = 0x%08lX\n", "KVM_TRANSLATE",
         (long unsigned int)KVM_TRANSLATE);
  printf("  %-30s = 0x%08lX\n", "KVM_INTERRUPT",
         (long unsigned int)KVM_INTERRUPT);
  printf("  %-30s = 0x%08lX\n", "KVM_GET_MSRS",
         (long unsigned int)KVM_GET_MSRS);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_MSRS",
         (long unsigned int)KVM_SET_MSRS);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_CPUID",
         (long unsigned int)KVM_SET_CPUID);
  printf("  %-30s = 0x%08lX\n", "KVM_SET_GUEST_DEBUG",
         (long unsigned int)KVM_SET_GUEST_DEBUG);
  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>
mov    0x2e34(%rip),%rax
mov    (%rax),%rdx
lea    0xed2(%rip),%rdi
lea    0xede(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%rdx
lea    0xeb3(%rip),%rdi
lea    0xed3(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%rdx
lea    0xe94(%rip),%rdi
lea    0xec2(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%rdx
lea    0xe75(%rip),%rdi
lea    0xeba(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%rdx
lea    0xe56(%rip),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%rdx
lea    0xe29(%rip),%rdi
lea    0xea5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%rdx
lea    0xe0a(%rip),%rdi
lea    0xe96(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%rdx
lea    0xddd(%rip),%rdi
lea    0xe92(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2da8(%rip),%rax
mov    (%rax),%rdx
lea    0xdbe(%rip),%rdi
lea    0xe7b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%rdx
lea    0xd9f(%rip),%rdi
lea    0xe69(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%rdx
lea    0xd80(%rip),%rdi
lea    0xe57(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c9b(%rip),%rax
mov    (%rax),%rdx
lea    0xd61(%rip),%rdi
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cbc(%rip),%rax
mov    (%rax),%rdx
lea    0xd42(%rip),%rdi
lea    0xe35(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c6d(%rip),%rax
mov    (%rax),%rdx
lea    0xd23(%rip),%rdi
lea    0xe28(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cbe(%rip),%rax
mov    (%rax),%rdx
lea    0xd04(%rip),%rdi
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cb7(%rip),%rax
mov    (%rax),%rdx
lea    0xce5(%rip),%rdi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%rdx
lea    0xcc6(%rip),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c99(%rip),%rax
mov    (%rax),%rdx
lea    0xca7(%rip),%rdi
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c0a(%rip),%rax
mov    (%rax),%rdx
lea    0xc88(%rip),%rdi
lea    0xdd5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2bd3(%rip),%rax
mov    (%rax),%rdx
lea    0xc69(%rip),%rdi
lea    0xdc4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%rdx
lea    0xec2(%rip),%rbx
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%rdx
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2de7(%rip),%rax
mov    (%rax),%rdx
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%rdx
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%rdx
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%rdx
lea    0xe9f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d77(%rip),%rax
mov    (%rax),%rdx
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%rdx
lea    0xe88(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%rdx
lea    0xe75(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%rdx
lea    0xe67(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d2f(%rip),%rax
mov    (%rax),%rdx
lea    0xe59(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%rdx
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2ce9(%rip),%rax
mov    (%rax),%rdx
lea    0xe3f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%rdx
lea    0xe36(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cf3(%rip),%rax
mov    (%rax),%rdx
lea    0xe2d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cf0(%rip),%rax
mov    (%rax),%rdx
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c75(%rip),%rax
mov    (%rax),%rdx
lea    0xe13(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cda(%rip),%rax
mov    (%rax),%rdx
lea    0xe05(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%rdx
lea    0xdf7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c1c(%rip),%rax
mov    (%rax),%rdx
lea    0xdea(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"System IOCTLs:\0A\00"
@.str.1 = [19 x i8] c" %-30s = 0x%08lX\0A\00"
@.str.2 = [20 x i8] c"KVM_GET_API_VERSION\00"
@KVM_GET_API_VERSION = global i64 0
@.str.3 = [14 x i8] c"KVM_CREATE_VM\00"
@KVM_CREATE_VM = global i64 0
@.str.4 = [23 x i8] c"KVM_GET_MSR_INDEX_LIST\00"
@KVM_GET_MSR_INDEX_LIST = global i64 0
@.str.5 = [20 x i8] c"KVM_CHECK_EXTENSION\00"
@KVM_CHECK_EXTENSION = global i64 0
@.str.6 = [23 x i8] c"KVM_GET_VCPU_MMAP_SIZE\00"
@KVM_GET_VCPU_MMAP_SIZE = global i64 0
@.str.7 = [12 x i8] c"VM IOCTLs:\0A\00"
@.str.8 = [16 x i8] c"KVM_CREATE_VCPU\00"
@KVM_CREATE_VCPU = global i64 0
@.str.9 = [27 x i8] c"KVM_SET_USER_MEMORY_REGION\00"
@KVM_SET_USER_MEMORY_REGION = global i64 0
@.str.10 = [14 x i8] c"VCPU IOCTLs:\0A\00"
@.str.11 = [8 x i8] c"KVM_RUN\00"
@KVM_RUN = global i64 0
@.str.12 = [13 x i8] c"KVM_GET_REGS\00"
@KVM_GET_REGS = global i64 0
@.str.13 = [13 x i8] c"KVM_SET_REGS\00"
@KVM_SET_REGS = global i64 0
@.str.14 = [14 x i8] c"KVM_GET_SREGS\00"
@KVM_GET_SREGS = global i64 0
@.str.15 = [14 x i8] c"KVM_SET_SREGS\00"
@KVM_SET_SREGS = global i64 0
@.str.16 = [18 x i8] c"KVM_GET_DEBUGREGS\00"
@KVM_GET_DEBUGREGS = global i64 0
@.str.17 = [18 x i8] c"KVM_SET_DEBUGREGS\00"
@KVM_SET_DEBUGREGS = global i64 0
@.str.18 = [14 x i8] c"KVM_TRANSLATE\00"
@KVM_TRANSLATE = global i64 0
@.str.19 = [14 x i8] c"KVM_INTERRUPT\00"
@KVM_INTERRUPT = global i64 0
@.str.20 = [13 x i8] c"KVM_GET_MSRS\00"
@KVM_GET_MSRS = global i64 0
@.str.21 = [13 x i8] c"KVM_SET_MSRS\00"
@KVM_SET_MSRS = global i64 0
@.str.22 = [14 x i8] c"KVM_SET_CPUID\00"
@KVM_SET_CPUID = global i64 0
@.str.23 = [20 x i8] c"KVM_SET_GUEST_DEBUG\00"
@KVM_SET_GUEST_DEBUG = global i64 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = load i64, i64* @KVM_GET_API_VERSION
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %3)
%5 = load i64, i64* @KVM_CREATE_VM
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %5)
%7 = load i64, i64* @KVM_GET_MSR_INDEX_LIST
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 %7)
%9 = load i64, i64* @KVM_CHECK_EXTENSION
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i64 %9)
%11 = load i64, i64* @KVM_GET_VCPU_MMAP_SIZE
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %11)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%14 = load i64, i64* @KVM_CREATE_VCPU
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i64 %14)
%16 = load i64, i64* @KVM_SET_USER_MEMORY_REGION
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%19 = load i64, i64* @KVM_RUN
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i64 %19)
%21 = load i64, i64* @KVM_GET_REGS
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i64 %21)
%23 = load i64, i64* @KVM_SET_REGS
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i64 %23)
%25 = load i64, i64* @KVM_GET_SREGS
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i64 %25)
%27 = load i64, i64* @KVM_SET_SREGS
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i64 %27)
%29 = load i64, i64* @KVM_GET_DEBUGREGS
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i64 %29)
%31 = load i64, i64* @KVM_SET_DEBUGREGS
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i64 %31)
%33 = load i64, i64* @KVM_TRANSLATE
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i64 %33)
%35 = load i64, i64* @KVM_INTERRUPT
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i64 %35)
%37 = load i64, i64* @KVM_GET_MSRS
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i64 %37)
%39 = load i64, i64* @KVM_SET_MSRS
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i64 %39)
%41 = load i64, i64* @KVM_SET_CPUID
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i64 %41)
%43 = load i64, i64* @KVM_SET_GUEST_DEBUG
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i64 %43)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c" %-30s = 0x%08lX\0A\00"
@.str.2 = [20 x i8] c"KVM_GET_API_VERSION\00"
@KVM_GET_API_VERSION = global i64 0
@.str.3 = [14 x i8] c"KVM_CREATE_VM\00"
@KVM_CREATE_VM = global i64 0
@.str.4 = [23 x i8] c"KVM_GET_MSR_INDEX_LIST\00"
@KVM_GET_MSR_INDEX_LIST = global i64 0
@.str.5 = [20 x i8] c"KVM_CHECK_EXTENSION\00"
@KVM_CHECK_EXTENSION = global i64 0
@.str.6 = [23 x i8] c"KVM_GET_VCPU_MMAP_SIZE\00"
@KVM_GET_VCPU_MMAP_SIZE = global i64 0
@.str.8 = [16 x i8] c"KVM_CREATE_VCPU\00"
@KVM_CREATE_VCPU = global i64 0
@.str.9 = [27 x i8] c"KVM_SET_USER_MEMORY_REGION\00"
@KVM_SET_USER_MEMORY_REGION = global i64 0
@.str.11 = [8 x i8] c"KVM_RUN\00"
@KVM_RUN = global i64 0
@.str.12 = [13 x i8] c"KVM_GET_REGS\00"
@KVM_GET_REGS = global i64 0
@.str.13 = [13 x i8] c"KVM_SET_REGS\00"
@KVM_SET_REGS = global i64 0
@.str.14 = [14 x i8] c"KVM_GET_SREGS\00"
@KVM_GET_SREGS = global i64 0
@.str.15 = [14 x i8] c"KVM_SET_SREGS\00"
@KVM_SET_SREGS = global i64 0
@.str.16 = [18 x i8] c"KVM_GET_DEBUGREGS\00"
@KVM_GET_DEBUGREGS = global i64 0
@.str.17 = [18 x i8] c"KVM_SET_DEBUGREGS\00"
@KVM_SET_DEBUGREGS = global i64 0
@.str.18 = [14 x i8] c"KVM_TRANSLATE\00"
@KVM_TRANSLATE = global i64 0
@.str.19 = [14 x i8] c"KVM_INTERRUPT\00"
@KVM_INTERRUPT = global i64 0
@.str.20 = [13 x i8] c"KVM_GET_MSRS\00"
@KVM_GET_MSRS = global i64 0
@.str.21 = [13 x i8] c"KVM_SET_MSRS\00"
@KVM_SET_MSRS = global i64 0
@.str.22 = [14 x i8] c"KVM_SET_CPUID\00"
@KVM_SET_CPUID = global i64 0
@.str.23 = [20 x i8] c"KVM_SET_GUEST_DEBUG\00"
@KVM_SET_GUEST_DEBUG = global i64 0
@str = [15 x i8] c"System IOCTLs:\00"
@str.24 = [11 x i8] c"VM IOCTLs:\00"
@str.25 = [13 x i8] c"VCPU IOCTLs:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%2 = load i64, i64* @KVM_GET_API_VERSION
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %2)
%4 = load i64, i64* @KVM_CREATE_VM
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i64 %4)
%6 = load i64, i64* @KVM_GET_MSR_INDEX_LIST
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 %6)
%8 = load i64, i64* @KVM_CHECK_EXTENSION
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i64 %8)
%10 = load i64, i64* @KVM_GET_VCPU_MMAP_SIZE
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %10)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.24, i64 0, i64 0))
%13 = load i64, i64* @KVM_CREATE_VCPU
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i64 %13)
%15 = load i64, i64* @KVM_SET_USER_MEMORY_REGION
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 %15)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.25, i64 0, i64 0))
%18 = load i64, i64* @KVM_RUN
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i64 %18)
%20 = load i64, i64* @KVM_GET_REGS
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i64 %20)
%22 = load i64, i64* @KVM_SET_REGS
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i64 %22)
%24 = load i64, i64* @KVM_GET_SREGS
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i64 %24)
%26 = load i64, i64* @KVM_SET_SREGS
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i64 %26)
%28 = load i64, i64* @KVM_GET_DEBUGREGS
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i64 %28)
%30 = load i64, i64* @KVM_SET_DEBUGREGS
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i64 %30)
%32 = load i64, i64* @KVM_TRANSLATE
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i64 %32)
%34 = load i64, i64* @KVM_INTERRUPT
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i64 %34)
%36 = load i64, i64* @KVM_GET_MSRS
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i64 %36)
%38 = load i64, i64* @KVM_SET_MSRS
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i64 %38)
%40 = load i64, i64* @KVM_SET_CPUID
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i64 %40)
%42 = load i64, i64* @KVM_SET_GUEST_DEBUG
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i64 %42)
ret i32 0
}