#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 *, unsigned int, unsigned int);
void print_sdramc_priorities_weights() {
  printf("priorities in reg 0x%x: 0x%x\n\r",
         (unsigned int)(0xFFC20000 + 0x50AC),
         (unsigned int)(*((unsigned int *)(0xFFC20000 + 0x50AC))));
  printf("weights 0 in reg 0x%x: 0x%x\n\r", (unsigned int)(0xFFC20000 + 0x50B0),
         (unsigned int)(*((unsigned int *)(0xFFC20000 + 0x50B0))));
  printf("weights 1 in reg 0x%x: 0x%x\n\r", (unsigned int)(0xFFC20000 + 0x50B4),
         (unsigned int)(*((unsigned int *)(0xFFC20000 + 0x50B4))));
  return;
}


x86 assembly (clang, -O0):
<print_sdramc_priorities_weights>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffc250ac,%eax
mov    (%rax),%edx
lea    0xede(%rip),%rdi
mov    $0xffc250ac,%esi
call   1030 <printf@plt>
mov    $0xffc250b0,%eax
mov    (%rax),%edx
lea    0xee5(%rip),%rdi
mov    $0xffc250b0,%esi
call   1030 <printf@plt>
mov    $0xffc250b4,%eax
mov    (%rax),%edx
lea    0xeeb(%rip),%rdi
mov    $0xffc250b4,%esi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_sdramc_priorities_weights>:
push   %rbx
mov    $0xffc250ac,%ebx
mov    (%rbx),%edx
lea    0xee1(%rip),%rdi
mov    $0xffc250ac,%esi
call   1030 <printf@plt>
mov    0x4(%rbx),%edx
lea    0xeec(%rip),%rdi
mov    $0xffc250b0,%esi
call   1030 <printf@plt>
mov    0x8(%rbx),%edx
lea    0xef6(%rip),%rdi
mov    $0xffc250b4,%esi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"priorities in reg 0x%x: 0x%x\0A\0D\00"
@.str.1 = [30 x i8] c"weights 0 in reg 0x%x: 0x%x\0A\0D\00"
@.str.2 = [30 x i8] c"weights 1 in reg 0x%x: 0x%x\0A\0D\00"
define void @print_sdramc_priorities_weights() {
%1 = load i32, i32* inttoptr (i64 4290924716 to i32*)
%2 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 -4042580, i32 %1)
%3 = load i32, i32* inttoptr (i64 4290924720 to i32*)
%4 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 -4042576, i32 %3)
%5 = load i32, i32* inttoptr (i64 4290924724 to i32*)
%6 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 -4042572, i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"priorities in reg 0x%x: 0x%x\0A\0D\00"
@.str.1 = [30 x i8] c"weights 0 in reg 0x%x: 0x%x\0A\0D\00"
@.str.2 = [30 x i8] c"weights 1 in reg 0x%x: 0x%x\0A\0D\00"
define void @print_sdramc_priorities_weights() {
%1 = load i32, i32* inttoptr (i64 4290924716 to i32*)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 -4042580, i32 %1)
%3 = load i32, i32* inttoptr (i64 4290924720 to i32*)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 -4042576, i32 %3)
%5 = load i32, i32* inttoptr (i64 4290924724 to i32*)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 -4042572, i32 %5)
ret void
}