#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 lrs1190(void) {
  printf("\n---> LRS 1190 Dual port memory buffer (lrs1190.c) <---\n");
  printf("Macro  : LRS1190_ENABLE (DWORD vmeBase);\n");
  printf("Macro  : LRS1190_DISABLE (DWORD vmeBase);\n");
  printf("Macro  : LRS1190_CLEAR (DWORD vmeBase);\n");
  printf("Macro  : LRS1190_COUNT (DWORD vmeBase, int * count);\n");
  printf("Macro  : LRS1190_READI4 (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf("Macro  : LRS1190_READL2 (DWORD vmeBase, WORD *d , int repeat);\n");
  printf("Macro  : LRS1190_READH2 (DWORD vmeBase, WORD *d , int repeat);\n");
  printf(
      "Macro  : LRS1190_READL2_TONY (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf("Inline : lrs1190_enable (DWORD vmeBase);\n");
  printf("Inline : lrs1190_disable (DWORD vmeBase);\n");
  printf("Inline : lrs1190_clear (DWORD vmeBase);\n");
  printf("Inline : lrs1190_count (DWORD vmeBase, int * count);\n");
  printf("Inline : lrs1190_readi4 (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf("Inline : lrs1190_readl2 (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf("Inline : lrs1190_readh2 (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf(
      "Inline : lrs1190_readl2_tony (DWORD vmeBase, DWORD *d , int repeat);\n");
  printf("Test : ena1190  (0x7f0000)         <--- enable  VME buffer\n");
  printf("Test : dis1190  (0x7f0000)         <--- disable VME buffer\n");
  printf("Test : res1190  (0x7f0000)         <--- reset   VME buffer\n");
  printf(
      "Test : cn1190   (0x7f0000)         <--- read    WORD count register\n");
  printf(
      "Test : rd1190   (0x7f0000)         <--- read             VME buffer\n");
  printf(
      "Test : rd1190l  (0x7f0000)         <--- read low  WORD   VME buffer\n");
  printf(
      "Test : rd1190h  (0x7f0000)         <--- read high WORD   VME buffer\n");
}


x86 assembly (clang, -O0):
<lrs1190>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf30(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcb(%rip),%rdi
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
call   1030 <printf@plt>
lea    0x106d(%rip),%rdi
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c7(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1126(%rip),%rdi
call   1030 <printf@plt>
lea    0x115b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1190(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ca(%rip),%rdi
call   1030 <printf@plt>
lea    0x11fa(%rip),%rdi
call   1030 <printf@plt>
lea    0x122a(%rip),%rdi
call   1030 <printf@plt>
lea    0x125a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1293(%rip),%rdi
call   1030 <printf@plt>
lea    0x12cc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1305(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lrs1190>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf94(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xffb(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1067(%rip),%rdi
call   1030 <puts@plt>
lea    0x1084(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1030 <puts@plt>
lea    0x111b(%rip),%rdi
call   1030 <puts@plt>
lea    0x114f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1183(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bc(%rip),%rdi
call   1030 <puts@plt>
lea    0x11eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x121a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1249(%rip),%rdi
call   1030 <puts@plt>
lea    0x1281(%rip),%rdi
call   1030 <puts@plt>
lea    0x12b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [57 x i8] c"\0A---> LRS 1190 Dual port memory buffer (lrs1190.c) <---\0A\00"
@.str.1 = [42 x i8] c"Macro : LRS1190_ENABLE (DWORD vmeBase);\0A\00"
@.str.2 = [43 x i8] c"Macro : LRS1190_DISABLE (DWORD vmeBase);\0A\00"
@.str.3 = [41 x i8] c"Macro : LRS1190_CLEAR (DWORD vmeBase);\0A\00"
@.str.4 = [54 x i8] c"Macro : LRS1190_COUNT (DWORD vmeBase, int * count);\0A\00"
@.str.5 = [65 x i8] c"Macro : LRS1190_READI4 (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.6 = [64 x i8] c"Macro : LRS1190_READL2 (DWORD vmeBase, WORD *d , int repeat);\0A\00"
@.str.7 = [64 x i8] c"Macro : LRS1190_READH2 (DWORD vmeBase, WORD *d , int repeat);\0A\00"
@.str.8 = [70 x i8] c"Macro : LRS1190_READL2_TONY (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.9 = [42 x i8] c"Inline : lrs1190_enable (DWORD vmeBase);\0A\00"
@.str.10 = [43 x i8] c"Inline : lrs1190_disable (DWORD vmeBase);\0A\00"
@.str.11 = [41 x i8] c"Inline : lrs1190_clear (DWORD vmeBase);\0A\00"
@.str.12 = [54 x i8] c"Inline : lrs1190_count (DWORD vmeBase, int * count);\0A\00"
@.str.13 = [65 x i8] c"Inline : lrs1190_readi4 (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.14 = [65 x i8] c"Inline : lrs1190_readl2 (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.15 = [65 x i8] c"Inline : lrs1190_readh2 (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.16 = [70 x i8] c"Inline : lrs1190_readl2_tony (DWORD vmeBase, DWORD *d , int repeat);\0A\00"
@.str.17 = [60 x i8] c"Test : ena1190 (0x7f0000) <--- enable VME buffer\0A\00"
@.str.18 = [60 x i8] c"Test : dis1190 (0x7f0000) <--- disable VME buffer\0A\00"
@.str.19 = [60 x i8] c"Test : res1190 (0x7f0000) <--- reset VME buffer\0A\00"
@.str.20 = [69 x i8] c"Test : cn1190 (0x7f0000) <--- read WORD count register\0A\00"
@.str.21 = [69 x i8] c"Test : rd1190 (0x7f0000) <--- read VME buffer\0A\00"
@.str.22 = [69 x i8] c"Test : rd1190l (0x7f0000) <--- read low WORD VME buffer\0A\00"
@.str.23 = [69 x i8] c"Test : rd1190h (0x7f0000) <--- read high WORD VME buffer\0A\00"
define void @lrs1190() {
%1 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 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 ([43 x i8], [43 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 ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.23, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [56 x i8] c"\0A---> LRS 1190 Dual port memory buffer (lrs1190.c) <---\00"
@str.24 = [41 x i8] c"Macro : LRS1190_ENABLE (DWORD vmeBase);\00"
@str.25 = [42 x i8] c"Macro : LRS1190_DISABLE (DWORD vmeBase);\00"
@str.26 = [40 x i8] c"Macro : LRS1190_CLEAR (DWORD vmeBase);\00"
@str.27 = [53 x i8] c"Macro : LRS1190_COUNT (DWORD vmeBase, int * count);\00"
@str.28 = [64 x i8] c"Macro : LRS1190_READI4 (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.29 = [63 x i8] c"Macro : LRS1190_READL2 (DWORD vmeBase, WORD *d , int repeat);\00"
@str.30 = [63 x i8] c"Macro : LRS1190_READH2 (DWORD vmeBase, WORD *d , int repeat);\00"
@str.31 = [69 x i8] c"Macro : LRS1190_READL2_TONY (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.32 = [41 x i8] c"Inline : lrs1190_enable (DWORD vmeBase);\00"
@str.33 = [42 x i8] c"Inline : lrs1190_disable (DWORD vmeBase);\00"
@str.34 = [40 x i8] c"Inline : lrs1190_clear (DWORD vmeBase);\00"
@str.35 = [53 x i8] c"Inline : lrs1190_count (DWORD vmeBase, int * count);\00"
@str.36 = [64 x i8] c"Inline : lrs1190_readi4 (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.37 = [64 x i8] c"Inline : lrs1190_readl2 (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.38 = [64 x i8] c"Inline : lrs1190_readh2 (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.39 = [69 x i8] c"Inline : lrs1190_readl2_tony (DWORD vmeBase, DWORD *d , int repeat);\00"
@str.40 = [59 x i8] c"Test : ena1190 (0x7f0000) <--- enable VME buffer\00"
@str.41 = [59 x i8] c"Test : dis1190 (0x7f0000) <--- disable VME buffer\00"
@str.42 = [59 x i8] c"Test : res1190 (0x7f0000) <--- reset VME buffer\00"
@str.43 = [68 x i8] c"Test : cn1190 (0x7f0000) <--- read WORD count register\00"
@str.44 = [68 x i8] c"Test : rd1190 (0x7f0000) <--- read VME buffer\00"
@str.45 = [68 x i8] c"Test : rd1190l (0x7f0000) <--- read low WORD VME buffer\00"
@str.46 = [68 x i8] c"Test : rd1190h (0x7f0000) <--- read high WORD VME buffer\00"
define void @lrs1190() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.24, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.25, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.26, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.27, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.28, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.30, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.31, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.32, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.33, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.34, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.35, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.40, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.41, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.42, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.43, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.44, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.45, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.46, i64 0, i64 0))
ret void
}