#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*/ printInt2_wx(int);
int /*<<< orphan*/ printf(char *);
void print2_wx(int a, int b, int c, int d) {
  printInt2_wx(a);
  printf(" - ");
  printInt2_wx(b);
  printf(" = ");
  printInt2_wx(c);
  printf(", ");
  printInt2_wx(c);
  printf(" + ");
  printInt2_wx(d);
  printf(" (base 10) =");
}


x86 assembly (clang, -O0):
<print2_wx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <printInt2_wx@plt>
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%edi
call   1030 <printInt2_wx@plt>
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
call   1030 <printInt2_wx@plt>
lea    0xe9d(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
call   1030 <printInt2_wx@plt>
lea    0xe8c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%edi
call   1030 <printInt2_wx@plt>
lea    0xe7c(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print2_wx>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
call   1030 <printInt2_wx@plt>
lea    0xec9(%rip),%rdi
call   1040 <printf@plt>
mov    %ebx,%edi
call   1030 <printInt2_wx@plt>
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
mov    %ebp,%edi
call   1030 <printInt2_wx@plt>
lea    0xeab(%rip),%rdi
call   1040 <printf@plt>
mov    %ebp,%edi
call   1030 <printInt2_wx@plt>
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
mov    %r14d,%edi
call   1030 <printInt2_wx@plt>
lea    0xe8b(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" - \00"
@.str.1 = [4 x i8] c" = \00"
@.str.2 = [3 x i8] c", \00"
@.str.3 = [4 x i8] c" + \00"
@.str.4 = [13 x i8] c" (base 10) =\00"
define void @print2_wx(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = call i32 @printInt2_wx(i32 %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %6
%13 = call i32 @printInt2_wx(i32 %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32, i32* %7
%16 = call i32 @printInt2_wx(i32 %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %7
%19 = call i32 @printInt2_wx(i32 %18)
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%21 = load i32, i32* %8
%22 = call i32 @printInt2_wx(i32 %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" - \00"
@.str.1 = [4 x i8] c" = \00"
@.str.2 = [3 x i8] c", \00"
@.str.3 = [4 x i8] c" + \00"
@.str.4 = [13 x i8] c" (base 10) =\00"
define void @print2_wx(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @printInt2_wx(i32 %0)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @printInt2_wx(i32 %1)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @printInt2_wx(i32 %2)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @printInt2_wx(i32 %2)
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @printInt2_wx(i32 %3)
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
ret void
}