#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*/ Inst_Printf(char *, char *, ...);
void C_Ret(void) {
  Inst_Printf("lwz",
              "r"
              "0"
              ",%d("
              "r"
              "1"
              ")",
              (32 + 1) * 4);
  Inst_Printf("mtlr", "r"
                      "0");
  Inst_Printf("addi",
              "r"
              "1"
              ","
              "r"
              "1"
              ",%d",
              32 * 4);
  Inst_Printf("blr", "");
}


x86 assembly (clang, -O0):
<C_Ret>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee2(%rip),%rsi
mov    $0x84,%edx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xed9(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xecc(%rip),%rdi
lea    0xeca(%rip),%rsi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xec0(%rip),%rdi
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<C_Ret>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee5(%rip),%rsi
mov    $0x84,%edx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xedc(%rip),%rdi
lea    0xeda(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xecf(%rip),%rdi
lea    0xecd(%rip),%rsi
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xec3(%rip),%rdi
lea    0xea5(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1030 <Inst_Printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"lwz\00"
@.str.1 = [10 x i8] c"r0,%d(r1)\00"
@.str.2 = [5 x i8] c"mtlr\00"
@.str.3 = [3 x i8] c"r0\00"
@.str.4 = [5 x i8] c"addi\00"
@.str.5 = [9 x i8] c"r1,r1,%d\00"
@.str.6 = [4 x i8] c"blr\00"
@.str.7 = [1 x i8] zeroinitializer
define void @C_Ret() {
%1 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 132)
%2 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 128)
%4 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"lwz\00"
@.str.1 = [10 x i8] c"r0,%d(r1)\00"
@.str.2 = [5 x i8] c"mtlr\00"
@.str.3 = [3 x i8] c"r0\00"
@.str.4 = [5 x i8] c"addi\00"
@.str.5 = [9 x i8] c"r1,r1,%d\00"
@.str.6 = [4 x i8] c"blr\00"
@.str.7 = [1 x i8] zeroinitializer
define void @C_Ret() {
%1 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 132)
%2 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 128)
%4 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
ret void
}