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


x86 assembly (clang, -O0):
<print2_w4>:
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   1040 <printInt4_w4@plt>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1040 <printInt4_w4@plt>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <printInt4_w4@plt>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <printInt4_w4@plt>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%edi
call   1040 <printInt4_w4@plt>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print2_w4>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
call   1040 <printInt4_w4@plt>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <printInt4_w4@plt>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    %ebp,%edi
call   1040 <printInt4_w4@plt>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    %ebp,%edi
call   1040 <printInt4_w4@plt>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    %r14d,%edi
call   1040 <printInt4_w4@plt>
lea    0xe8b(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <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 = [17 x i8] c" (_base_w4 10) =\00"
define void @print2_w4(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 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(i32 %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 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 = [17 x i8] c" (_base_w4 10) =\00"
define void @print2_w4(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(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 @printInt4_w4(i32 %3)
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
ret void
}