#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 *, char *, char *, char *);
void STEST910(char *s1, char *s2, char *s3, char *s4) {
  printf("C910:(%4s%4s%4s%4s):(ABCD0123EFGH4567):Call by ref and content in "
         "alternance\n",
         s1, s2, s3, s4);
  s1[2] = '9';
  s2[2] = '9';
  s3[2] = '9';
  s4[2] = '9';
}


x86 assembly (clang, -O0):
<STEST910>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movb   $0x39,0x2(%rax)
mov    -0x10(%rbp),%rax
movb   $0x39,0x2(%rax)
mov    -0x18(%rbp),%rax
movb   $0x39,0x2(%rax)
mov    -0x20(%rbp),%rax
movb   $0x39,0x2(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<STEST910>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <printf@plt>
movb   $0x39,0x2(%rbx)
movb   $0x39,0x2(%r12)
movb   $0x39,0x2(%r15)
movb   $0x39,0x2(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [78 x i8] c"C910:(%4s%4s%4s%4s):(ABCD0123EFGH4567):Call by ref and content in alternance\0A\00"
define void @STEST910(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10, i8* %11, i8* %12)
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i64 2
store i8 57, i8* %15
%16 = load i8*, i8** %6
%17 = getelementptr inbounds i8, i8* %16, i64 2
store i8 57, i8* %17
%18 = load i8*, i8** %7
%19 = getelementptr inbounds i8, i8* %18, i64 2
store i8 57, i8* %19
%20 = load i8*, i8** %8
%21 = getelementptr inbounds i8, i8* %20, i64 2
store i8 57, i8* %21
ret void
}

LLVM IR (-O2):
@.str = [78 x i8] c"C910:(%4s%4s%4s%4s):(ABCD0123EFGH4567):Call by ref and content in alternance\0A\00"
define void @STEST910(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i8* %3)
%6 = getelementptr inbounds i8, i8* %0, i64 2
store i8 57, i8* %6
%7 = getelementptr inbounds i8, i8* %1, i64 2
store i8 57, i8* %7
%8 = getelementptr inbounds i8, i8* %2, i64 2
store i8 57, i8* %8
%9 = getelementptr inbounds i8, i8* %3, i64 2
store i8 57, i8* %9
ret void
}