#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*/ printf(char *);
void caenv488(void) {
  printf("\n CAEN V488 8ch. TDC Tool Box\n");
  printf("Inline : caenv488_HF_set(DWORD vmeBase);\n");
  printf("Inline : caenv488_HF_get(DWORD vmeBase, INT * mode);\n");
  printf("Inline : caenv488_reset(DWORD vmeBase);\n");
  printf("Inline : caenv488_CTL_write(DWORD vmeBase, WORD mode);\n");
  printf("Inline : caenv488_CTL_read(DWORD vmeBase, WORD * mode);\n");
  printf("Inline : caenv488_RR_write(DWORD vmeBase, WORD mode);\n");
  printf("Inline : caenv488_THRH_write(DWORD vmeBase, WORD value);\n");
  printf("Inline : caenv488_FF_set(DWORD vmeBase, WORD value);\n");
  printf("Inline : caenv488_read(DWORD vmeBase, WORD ** data);\n");
  printf("Test   : caenv488_MIW(DWORDS base)\n");
  printf("Test   : caenv488_status(DWORD base)\n");
  printf("Test   : caenv488_cstop_set(DWORDS base)\n");
  printf("Test   : caenv488_cstart_set(DWORDS base)\n");
  printf("Test   : caenv488_all_enable(DWORDS base)\n");
  printf("Test   : caenv488_all_disable(DWORDS base)\n");
  printf("Test   : caenv488_std_init(DWORDS base)\n");
  printf("Test   : caenv488_outb_read(DWORDS base)\n");
}


x86 assembly (clang, -O0):
<caenv488>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe1(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1039(%rip),%rdi
call   1030 <printf@plt>
lea    0x1063(%rip),%rdi
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1111(%rip),%rdi
call   1030 <printf@plt>
lea    0x112e(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<caenv488>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf17(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1033(%rip),%rdi
call   1030 <puts@plt>
lea    0x105c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1073(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c7(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1104(%rip),%rdi
call   1030 <puts@plt>
lea    0x1120(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"\0A CAEN V488 8ch. TDC Tool Box\0A\00"
@.str.1 = [42 x i8] c"Inline : caenv488_HF_set(DWORD vmeBase);\0A\00"
@.str.2 = [54 x i8] c"Inline : caenv488_HF_get(DWORD vmeBase, INT * mode);\0A\00"
@.str.3 = [41 x i8] c"Inline : caenv488_reset(DWORD vmeBase);\0A\00"
@.str.4 = [56 x i8] c"Inline : caenv488_CTL_write(DWORD vmeBase, WORD mode);\0A\00"
@.str.5 = [57 x i8] c"Inline : caenv488_CTL_read(DWORD vmeBase, WORD * mode);\0A\00"
@.str.6 = [55 x i8] c"Inline : caenv488_RR_write(DWORD vmeBase, WORD mode);\0A\00"
@.str.7 = [58 x i8] c"Inline : caenv488_THRH_write(DWORD vmeBase, WORD value);\0A\00"
@.str.8 = [54 x i8] c"Inline : caenv488_FF_set(DWORD vmeBase, WORD value);\0A\00"
@.str.9 = [54 x i8] c"Inline : caenv488_read(DWORD vmeBase, WORD ** data);\0A\00"
@.str.10 = [36 x i8] c"Test : caenv488_MIW(DWORDS base)\0A\00"
@.str.11 = [38 x i8] c"Test : caenv488_status(DWORD base)\0A\00"
@.str.12 = [42 x i8] c"Test : caenv488_cstop_set(DWORDS base)\0A\00"
@.str.13 = [43 x i8] c"Test : caenv488_cstart_set(DWORDS base)\0A\00"
@.str.14 = [43 x i8] c"Test : caenv488_all_enable(DWORDS base)\0A\00"
@.str.15 = [44 x i8] c"Test : caenv488_all_disable(DWORDS base)\0A\00"
@.str.16 = [41 x i8] c"Test : caenv488_std_init(DWORDS base)\0A\00"
@.str.17 = [42 x i8] c"Test : caenv488_outb_read(DWORDS base)\0A\00"
define void @caenv488() {
%1 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [30 x i8] c"\0A CAEN V488 8ch. TDC Tool Box\00"
@str.18 = [41 x i8] c"Inline : caenv488_HF_set(DWORD vmeBase);\00"
@str.19 = [53 x i8] c"Inline : caenv488_HF_get(DWORD vmeBase, INT * mode);\00"
@str.20 = [40 x i8] c"Inline : caenv488_reset(DWORD vmeBase);\00"
@str.21 = [55 x i8] c"Inline : caenv488_CTL_write(DWORD vmeBase, WORD mode);\00"
@str.22 = [56 x i8] c"Inline : caenv488_CTL_read(DWORD vmeBase, WORD * mode);\00"
@str.23 = [54 x i8] c"Inline : caenv488_RR_write(DWORD vmeBase, WORD mode);\00"
@str.24 = [57 x i8] c"Inline : caenv488_THRH_write(DWORD vmeBase, WORD value);\00"
@str.25 = [53 x i8] c"Inline : caenv488_FF_set(DWORD vmeBase, WORD value);\00"
@str.26 = [53 x i8] c"Inline : caenv488_read(DWORD vmeBase, WORD ** data);\00"
@str.27 = [35 x i8] c"Test : caenv488_MIW(DWORDS base)\00"
@str.28 = [37 x i8] c"Test : caenv488_status(DWORD base)\00"
@str.29 = [41 x i8] c"Test : caenv488_cstop_set(DWORDS base)\00"
@str.30 = [42 x i8] c"Test : caenv488_cstart_set(DWORDS base)\00"
@str.31 = [42 x i8] c"Test : caenv488_all_enable(DWORDS base)\00"
@str.32 = [43 x i8] c"Test : caenv488_all_disable(DWORDS base)\00"
@str.33 = [40 x i8] c"Test : caenv488_std_init(DWORDS base)\00"
@str.34 = [41 x i8] c"Test : caenv488_outb_read(DWORDS base)\00"
define void @caenv488() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.18, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.19, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.21, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.34, i64 0, i64 0))
ret void
}