#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*/ STEST1901(int, char *, char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ stdout;
void STEST1902(char *s) {
  char buf1[32] = "void STEST1902(void) 1";
  char buf2[32] = "void STEST1902(void) 2";
  fprintf(stdout, "sub  (test15l) C1902: ( input):          s=%s\n", s);
  fprintf(stdout, "sub  (test15l) C1902: (C1901 input):     s=%s:%s:%s\n", s,
          buf2, buf1);
  STEST1901(3, s, buf2, buf1);
  fprintf(stdout, "sub  (test15l) C1902: (output):          s=%s\n", s);
}


x86 assembly (clang, -O0):
<STEST1902>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xecd(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x30(%rbp),%r8
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x30(%rbp),%rcx
mov    $0x3,%edi
call   1030 <STEST1901@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xeb8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<STEST1902>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdi,%rbx
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xebf(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e7c(%rip),%r12
mov    (%r12),%edi
lea    0xed1(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r12),%edi
lea    0xeeb(%rip),%rsi
mov    %rsp,%r14
lea    0x20(%rsp),%r15
mov    %rbx,%rdx
mov    %r14,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x3,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1030 <STEST1901@plt>
mov    (%r12),%edi
lea    0xeea(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.STEST1902.buf1 = [32 x i8] c"void STEST1902(void) 1\00\00\00\00\00\00\00\00\00\00"
@__const.STEST1902.buf2 = [32 x i8] c"void STEST1902(void) 2\00\00\00\00\00\00\00\00\00\00"
@stdout = global i32 0
@.str = [47 x i8] c"sub (test15l) C1902: ( input): s=%s\0A\00"
@.str.1 = [53 x i8] c"sub (test15l) C1902: (C1901 input): s=%s:%s:%s\0A\00"
@.str.2 = [47 x i8] c"sub (test15l) C1902: (output): s=%s\0A\00"
define void @STEST1902(i8* %0) {
%2 = alloca i8*
%3 = alloca [32 x i8]
%4 = alloca [32 x i8]
store i8* %0, i8** %2
%5 = bitcast [32 x i8]* %3 to i8*
%6 = bitcast [32 x i8]* %4 to i8*
%7 = load i32, i32* @stdout
%8 = load i8*, i8** %2
%9 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = load i32, i32* @stdout
%11 = load i8*, i8** %2
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%14 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), i8* %11, i8* %12, i8* %13)
%15 = load i8*, i8** %2
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%18 = call i32 @STEST1901(i32 3, i8* %15, i8* %16, i8* %17)
%19 = load i32, i32* @stdout
%20 = load i8*, i8** %2
%21 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %20)
ret void
}

LLVM IR (-O2):
@__const.STEST1902.buf1 = [32 x i8] c"void STEST1902(void) 1\00\00\00\00\00\00\00\00\00\00"
@__const.STEST1902.buf2 = [32 x i8] c"void STEST1902(void) 2\00\00\00\00\00\00\00\00\00\00"
@stdout = global i32 0
@.str = [47 x i8] c"sub (test15l) C1902: ( input): s=%s\0A\00"
@.str.1 = [53 x i8] c"sub (test15l) C1902: (C1901 input): s=%s:%s:%s\0A\00"
@.str.2 = [47 x i8] c"sub (test15l) C1902: (output): s=%s\0A\00"
define void @STEST1902(i8* %0) {
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = load i32, i32* @stdout
%9 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %5, i8* %4)
%10 = call i32 @STEST1901(i32 3, i8* %0, i8* %5, i8* %4)
%11 = load i32, i32* @stdout
%12 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %0)
ret void
}