#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 *, int, int, char *, char *);
void STEST904(char *p1, int p2, int p3, char *p4, char *p5) {
  printf("sub  (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,3,5,XYZ,123):Call "
         "alternating modes\n",
         p1, p2, p3, p4, p5);
  p2 = 6;
  p3 = 4;
  printf("sub  (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,6,4,XYZ,123):Call "
         "alternating modes\n",
         p1, p2, p3, p4, p5);
}


x86 assembly (clang, -O0):
<STEST904>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
movl   $0x6,-0xc(%rbp)
movl   $0x4,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<STEST904>:
push   %r15
push   %r14
push   %rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rbx
lea    0xed7(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%r8
mov    %r14,%r9
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    %rbx,%rsi
mov    $0x6,%edx
mov    $0x4,%ecx
mov    %r15,%r8
mov    %r14,%r9
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [82 x i8] c"sub (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,3,5,XYZ,123):Call alternating modes\0A\00"
@.str.1 = [82 x i8] c"sub (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,6,4,XYZ,123):Call alternating modes\0A\00"
define void @STEST904(i8* %0, i32 %1, i32 %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i8*, i8** %9
%15 = load i8*, i8** %10
%16 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0), i8* %11, i32 %12, i32 %13, i8* %14, i8* %15)
store i32 6, i32* %7
store i32 4, i32* %8
%17 = load i8*, i8** %6
%18 = load i32, i32* %7
%19 = load i32, i32* %8
%20 = load i8*, i8** %9
%21 = load i8*, i8** %10
%22 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0), i8* %17, i32 %18, i32 %19, i8* %20, i8* %21)
ret void
}

LLVM IR (-O2):
@.str = [82 x i8] c"sub (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,3,5,XYZ,123):Call alternating modes\0A\00"
@.str.1 = [82 x i8] c"sub (test15f) C904:(%3s,%d,%d,%3s,%3s):(XYZ,6,4,XYZ,123):Call alternating modes\0A\00"
define void @STEST904(i8* %0, i32 %1, i32 %2, i8* %3, i8* %4) {
%6 = tail call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i32 %2, i8* %3, i8* %4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 6, i32 4, i8* %3, i8* %4)
ret void
}