#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 *, char *, ...);
void show_global_ddr_status(void) {
  printf("%-30s%10s%10s\t\n", "name", "phy addr", "size");
  printf("%-30s%10x%10x\n", "DDR_APP_ACP_ADDR", (0x30000000), 0x00000000);
  printf("%-30s%10x%10x\n", "DDR_ACORE_ADDR",
         (((((((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
                  (0x00200000))) +
                (0x05000000))) +
              (0x200000))) +
            (0x280000))) +
          (0x80000)),
         0x0);
  printf("%-30s%10x%10x\n", "DDR_MCORE_ADDR",
         (((((((0x30000000)) + (0x00000000))) + (0x00B00000))) + (0x00200000)),
         0x05000000);
  printf("%-30s%10x%10x\n", "DDR_SHARED_MEM_ADDR",
         (((((((((((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
                      (0x00200000))) +
                    (0x05000000))) +
                  (0x200000))) +
                (0x280000))) +
              (0x80000))) +
            (0x0))) +
          (0x0)),
         0x00300000);
  printf("%-30s%10x%10x\n", "DDR_MNTN_ADDR", (0x3f800000),
         (0x00800000 - 0x00008000));
  printf("%-30s%10x%10x\n", "DDR_GU_ADDR", (((0x30000000)) + (0x00000000)),
         0x00B00000);
  printf("%-30s%10x%10x\n", "DDR_TLPHY_IMAGE_ADDR",
         (((((0x30000000)) + (0x00000000))) + (0x00B00000)), 0x00200000);
  printf(
      "%-30s%10x%10x\n", "DDR_LPHY_SDR_ADDR",
      (((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) + (0x00200000))) +
       (0x05000000)),
      0x200000);
  printf("%-30s%10x%10x\n", "DDR_SOCP_ADDR",
         (((((((((((((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
                        (0x00200000))) +
                      (0x05000000))) +
                    (0x200000))) +
                  (0x280000))) +
                (0x80000))) +
              (0x0))) +
            (0x0))) +
          (0x00300000) + 0x00100000),
         0x01100000);
  printf("%-30s%10x%10x\n", "DDR_LCS_ADDR",
         (((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
              (0x00200000))) +
            (0x05000000))) +
          (0x200000)),
         0x280000);
  printf("%-30s%10x%10x\n", "DDR_HIFI_ADDR",
         (((((((((((((((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
                          (0x00200000))) +
                        (0x05000000))) +
                      (0x200000))) +
                    (0x280000))) +
                  (0x80000))) +
                (0x0))) +
              (0x0))) +
            (0x00300000) + 0x00100000)) +
          (0x01100000)),
         0x00900000);
  printf("%-30s%10x%10x\n", "DDR_MDM_ACP_ADDR",
         (((((((((((((((((0x30000000)) + (0x00000000))) + (0x00B00000))) +
                    (0x00200000))) +
                  (0x05000000))) +
                (0x200000))) +
              (0x280000))) +
            (0x80000))) +
          (0x0)),
         0x0);
}


x86 assembly (clang, -O0):
<show_global_ddr_status>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeee(%rip),%rsi
lea    0xeec(%rip),%rdx
lea    0xeee(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0xeed(%rip),%rsi
mov    $0x30000000,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
lea    0xee2(%rip),%rsi
mov    $0x36200000,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
lea    0xed5(%rip),%rsi
mov    $0x30d00000,%edx
mov    $0x5000000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    0xec5(%rip),%rsi
mov    $0x36200000,%edx
mov    $0x300000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
lea    0xeba(%rip),%rsi
mov    $0x3f800000,%edx
mov    $0x7f8000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe50(%rip),%rdi
lea    0xea9(%rip),%rsi
mov    $0x30000000,%edx
mov    $0xb00000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe31(%rip),%rdi
lea    0xe96(%rip),%rsi
mov    $0x30b00000,%edx
mov    $0x200000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe12(%rip),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x35d00000,%edx
mov    $0x200000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf3(%rip),%rdi
lea    0xe7f(%rip),%rsi
mov    $0x36600000,%edx
mov    $0x1100000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd4(%rip),%rdi
lea    0xe6e(%rip),%rsi
mov    $0x35f00000,%edx
mov    $0x280000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdb5(%rip),%rdi
lea    0xe5c(%rip),%rsi
mov    $0x37700000,%edx
mov    $0x900000,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd96(%rip),%rdi
lea    0xe4b(%rip),%rsi
mov    $0x36200000,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_global_ddr_status>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xef1(%rip),%rsi
lea    0xeef(%rip),%rdx
lea    0xef1(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee8(%rip),%rbx
lea    0xef0(%rip),%rsi
mov    %rbx,%rdi
mov    $0x30000000,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x36200000,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rsi
mov    %rbx,%rdi
mov    $0x30d00000,%edx
mov    $0x5000000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
mov    $0x36200000,%edx
mov    $0x300000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecd(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3f800000,%edx
mov    $0x7f8000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec0(%rip),%rsi
mov    %rbx,%rdi
mov    $0x30000000,%edx
mov    $0xb00000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x30b00000,%edx
mov    $0x200000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeab(%rip),%rsi
mov    %rbx,%rdi
mov    $0x35d00000,%edx
mov    $0x200000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x36600000,%edx
mov    $0x1100000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
mov    $0x35f00000,%edx
mov    $0x280000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
mov    $0x37700000,%edx
mov    $0x900000,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe7a(%rip),%rsi
mov    %rbx,%rdi
mov    $0x36200000,%edx
xor    %ecx,%ecx
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"%-30s%10s%10s\09\0A\00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [9 x i8] c"phy addr\00"
@.str.3 = [5 x i8] c"size\00"
@.str.4 = [15 x i8] c"%-30s%10x%10x\0A\00"
@.str.5 = [17 x i8] c"DDR_APP_ACP_ADDR\00"
@.str.6 = [15 x i8] c"DDR_ACORE_ADDR\00"
@.str.7 = [15 x i8] c"DDR_MCORE_ADDR\00"
@.str.8 = [20 x i8] c"DDR_SHARED_MEM_ADDR\00"
@.str.9 = [14 x i8] c"DDR_MNTN_ADDR\00"
@.str.10 = [12 x i8] c"DDR_GU_ADDR\00"
@.str.11 = [21 x i8] c"DDR_TLPHY_IMAGE_ADDR\00"
@.str.12 = [18 x i8] c"DDR_LPHY_SDR_ADDR\00"
@.str.13 = [14 x i8] c"DDR_SOCP_ADDR\00"
@.str.14 = [13 x i8] c"DDR_LCS_ADDR\00"
@.str.15 = [14 x i8] c"DDR_HIFI_ADDR\00"
@.str.16 = [17 x i8] c"DDR_MDM_ACP_ADDR\00"
define void @show_global_ddr_status() {
%1 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%2 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 805306368, i32 0)
%3 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 908066816, i32 0)
%4 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 818937856, i32 83886080)
%5 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 908066816, i32 3145728)
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 1065353216, i32 8355840)
%7 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 805306368, i32 11534336)
%8 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 816840704, i32 2097152)
%9 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 902823936, i32 2097152)
%10 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 912261120, i32 17825792)
%11 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 904921088, i32 2621440)
%12 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i32 930086912, i32 9437184)
%13 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i32 908066816, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"%-30s%10s%10s\09\0A\00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [9 x i8] c"phy addr\00"
@.str.3 = [5 x i8] c"size\00"
@.str.4 = [15 x i8] c"%-30s%10x%10x\0A\00"
@.str.5 = [17 x i8] c"DDR_APP_ACP_ADDR\00"
@.str.6 = [15 x i8] c"DDR_ACORE_ADDR\00"
@.str.7 = [15 x i8] c"DDR_MCORE_ADDR\00"
@.str.8 = [20 x i8] c"DDR_SHARED_MEM_ADDR\00"
@.str.9 = [14 x i8] c"DDR_MNTN_ADDR\00"
@.str.10 = [12 x i8] c"DDR_GU_ADDR\00"
@.str.11 = [21 x i8] c"DDR_TLPHY_IMAGE_ADDR\00"
@.str.12 = [18 x i8] c"DDR_LPHY_SDR_ADDR\00"
@.str.13 = [14 x i8] c"DDR_SOCP_ADDR\00"
@.str.14 = [13 x i8] c"DDR_LCS_ADDR\00"
@.str.15 = [14 x i8] c"DDR_HIFI_ADDR\00"
@.str.16 = [17 x i8] c"DDR_MDM_ACP_ADDR\00"
define void @show_global_ddr_status() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 805306368, i32 0)
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 908066816, i32 0)
%4 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 818937856, i32 83886080)
%5 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 908066816, i32 3145728)
%6 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 1065353216, i32 8355840)
%7 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 805306368, i32 11534336)
%8 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 816840704, i32 2097152)
%9 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 902823936, i32 2097152)
%10 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 912261120, i32 17825792)
%11 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 904921088, i32 2621440)
%12 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i32 930086912, i32 9437184)
%13 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i32 908066816, i32 0)
ret void
}