#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, char, char, char,
                          char, short, char, char, char);
int test25b(char *c1, char *c2, short *c3, char *c4) {
  int r = 0;
  char *pt;
  printf("sub  (test25b) C   input  :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\n", c1[0],
         c1[1], c1[2], c1[3], c1[4], c1[5], c2[0], c2[1], *c3, c4[0], c4[1],
         c4[2]);
  pt = c1;
  *pt = 'p';
  pt++;
  *pt = 'q';
  pt++;
  *pt = 'r';
  pt++;
  *pt = 's';
  pt++;
  *pt = 't';
  pt++;
  *pt = 'y';
  pt = c2;
  *pt = '1';
  pt++;
  *pt = '4';
  *c3 = 18;
  pt = c4;
  *pt = '1';
  pt++;
  *pt = '4';
  pt++;
  *pt = '4';
  pt = NULL;
  printf("sub  (test25b) C   return :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\n", c1[0],
         c1[1], c1[2], c1[3], c1[4], c1[5], c2[0], c2[1], *c3, c4[0], c4[1],
         c4[2]);
  return r;
}


x86 assembly (clang, -O0):
<test25b>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%sil
mov    -0x28(%rbp),%rax
mov    0x1(%rax),%dl
mov    -0x28(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x28(%rbp),%rax
mov    0x3(%rax),%r8b
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%r9b
mov    -0x28(%rbp),%rax
mov    0x5(%rax),%r12b
mov    -0x30(%rbp),%rax
mov    (%rax),%r15b
mov    -0x30(%rbp),%rax
mov    0x1(%rax),%r14b
mov    -0x38(%rbp),%rax
mov    (%rax),%bx
mov    -0x40(%rbp),%rax
mov    (%rax),%r11b
mov    -0x40(%rbp),%rax
mov    0x1(%rax),%r10b
mov    -0x40(%rbp),%rax
lea    0xe6d(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r12b,%r12d
mov    %r12d,(%rsp)
movsbl %r15b,%r15d
mov    %r15d,0x8(%rsp)
movsbl %r14b,%r14d
mov    %r14d,0x10(%rsp)
movswl %bx,%ebx
mov    %ebx,0x18(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x20(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x28(%rsp)
movsbl 0x2(%rax),%eax
mov    %eax,0x30(%rsp)
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x70,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x71,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x72,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x73,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x74,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x79,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x31,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x34,(%rax)
mov    -0x38(%rbp),%rax
movw   $0x12,(%rax)
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x31,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x34,(%rax)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movb   $0x34,(%rax)
movq   $0x0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%sil
mov    -0x28(%rbp),%rax
mov    0x1(%rax),%dl
mov    -0x28(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x28(%rbp),%rax
mov    0x3(%rax),%r8b
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%r9b
mov    -0x28(%rbp),%rax
mov    0x5(%rax),%r12b
mov    -0x30(%rbp),%rax
mov    (%rax),%r15b
mov    -0x30(%rbp),%rax
mov    0x1(%rax),%r14b
mov    -0x38(%rbp),%rax
mov    (%rax),%bx
mov    -0x40(%rbp),%rax
mov    (%rax),%r11b
mov    -0x40(%rbp),%rax
mov    0x1(%rax),%r10b
mov    -0x40(%rbp),%rax
lea    0xd23(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r12b,%r12d
mov    %r12d,(%rsp)
movsbl %r15b,%r15d
mov    %r15d,0x8(%rsp)
movsbl %r14b,%r14d
mov    %r14d,0x10(%rsp)
movswl %bx,%ebx
mov    %ebx,0x18(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x20(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x28(%rsp)
movsbl 0x2(%rax),%eax
mov    %eax,0x30(%rsp)
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<test25b>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,%r12
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movsbl (%rdi),%esi
movsbl 0x1(%rdi),%edx
movsbl 0x2(%rdi),%ecx
movsbl 0x3(%rdi),%r8d
movsbl 0x4(%rdi),%r9d
movsbl 0x5(%rdi),%eax
mov    %rax,0x10(%rsp)
movsbl (%r15),%eax
mov    %rax,0x8(%rsp)
movsbl 0x1(%r15),%r13d
movswl (%r14),%r11d
movsbl (%r12),%ebp
movsbl 0x1(%r12),%r10d
movsbl 0x2(%r12),%eax
sub    $0x8,%rsp
lea    0xe8a(%rip),%rdi
push   %rax
push   %r10
push   %rbp
push   %r11
push   %r13
push   0x38(%rsp)
push   0x48(%rsp)
call   1030 <printf@plt>
add    $0x40,%rsp
movl   $0x73727170,(%rbx)
movw   $0x7974,0x4(%rbx)
movw   $0x3431,(%r15)
movw   $0x12,(%r14)
movw   $0x3431,(%r12)
movb   $0x34,0x2(%r12)
movsbl (%rbx),%esi
movsbl 0x1(%rbx),%edx
movsbl 0x2(%rbx),%ecx
movsbl 0x3(%rbx),%r8d
movsbl 0x4(%rbx),%r9d
movsbl 0x5(%rbx),%r10d
movsbl (%r15),%ebp
movsbl 0x1(%r15),%ebx
movswl (%r14),%eax
sub    $0x8,%rsp
lea    0xe55(%rip),%rdi
push   $0x34
push   $0x34
push   $0x31
push   %rax
push   %rbx
push   %rbp
push   %r10
call   1030 <printf@plt>
add    $0x40,%rsp
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [59 x i8] c"sub (test25b) C input :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\0A\00"
@.str.1 = [59 x i8] c"sub (test25b) C return :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\0A\00"
define i32 @test25b(i8* %0, i8* %1, i16* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i16*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i16* %2, i16** %7
store i8* %3, i8** %8
store i32 0, i32* %9
%11 = load i8*, i8** %5
%12 = getelementptr inbounds i8, i8* %11, i64 0
%13 = load i8, i8* %12
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = load i8, i8* %15
%17 = load i8*, i8** %5
%18 = getelementptr inbounds i8, i8* %17, i64 2
%19 = load i8, i8* %18
%20 = load i8*, i8** %5
%21 = getelementptr inbounds i8, i8* %20, i64 3
%22 = load i8, i8* %21
%23 = load i8*, i8** %5
%24 = getelementptr inbounds i8, i8* %23, i64 4
%25 = load i8, i8* %24
%26 = load i8*, i8** %5
%27 = getelementptr inbounds i8, i8* %26, i64 5
%28 = load i8, i8* %27
%29 = load i8*, i8** %6
%30 = getelementptr inbounds i8, i8* %29, i64 0
%31 = load i8, i8* %30
%32 = load i8*, i8** %6
%33 = getelementptr inbounds i8, i8* %32, i64 1
%34 = load i8, i8* %33
%35 = load i16*, i16** %7
%36 = load i16, i16* %35
%37 = load i8*, i8** %8
%38 = getelementptr inbounds i8, i8* %37, i64 0
%39 = load i8, i8* %38
%40 = load i8*, i8** %8
%41 = getelementptr inbounds i8, i8* %40, i64 1
%42 = load i8, i8* %41
%43 = load i8*, i8** %8
%44 = getelementptr inbounds i8, i8* %43, i64 2
%45 = load i8, i8* %44
%46 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8 signext %13, i8 signext %16, i8 signext %19, i8 signext %22, i8 signext %25, i8 signext %28, i8 signext %31, i8 signext %34, i16 signext %36, i8 signext %39, i8 signext %42, i8 signext %45)
%47 = load i8*, i8** %5
store i8* %47, i8** %10
%48 = load i8*, i8** %10
store i8 112, i8* %48
%49 = load i8*, i8** %10
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %10
%51 = load i8*, i8** %10
store i8 113, i8* %51
%52 = load i8*, i8** %10
%53 = getelementptr inbounds i8, i8* %52, i32 1
store i8* %53, i8** %10
%54 = load i8*, i8** %10
store i8 114, i8* %54
%55 = load i8*, i8** %10
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %10
%57 = load i8*, i8** %10
store i8 115, i8* %57
%58 = load i8*, i8** %10
%59 = getelementptr inbounds i8, i8* %58, i32 1
store i8* %59, i8** %10
%60 = load i8*, i8** %10
store i8 116, i8* %60
%61 = load i8*, i8** %10
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %10
%63 = load i8*, i8** %10
store i8 121, i8* %63
%64 = load i8*, i8** %6
store i8* %64, i8** %10
%65 = load i8*, i8** %10
store i8 49, i8* %65
%66 = load i8*, i8** %10
%67 = getelementptr inbounds i8, i8* %66, i32 1
store i8* %67, i8** %10
%68 = load i8*, i8** %10
store i8 52, i8* %68
%69 = load i16*, i16** %7
store i16 18, i16* %69
%70 = load i8*, i8** %8
store i8* %70, i8** %10
%71 = load i8*, i8** %10
store i8 49, i8* %71
%72 = load i8*, i8** %10
%73 = getelementptr inbounds i8, i8* %72, i32 1
store i8* %73, i8** %10
%74 = load i8*, i8** %10
store i8 52, i8* %74
%75 = load i8*, i8** %10
%76 = getelementptr inbounds i8, i8* %75, i32 1
store i8* %76, i8** %10
%77 = load i8*, i8** %10
store i8 52, i8* %77
store i8* null, i8** %10
%78 = load i8*, i8** %5
%79 = getelementptr inbounds i8, i8* %78, i64 0
%80 = load i8, i8* %79
%81 = load i8*, i8** %5
%82 = getelementptr inbounds i8, i8* %81, i64 1
%83 = load i8, i8* %82
%84 = load i8*, i8** %5
%85 = getelementptr inbounds i8, i8* %84, i64 2
%86 = load i8, i8* %85
%87 = load i8*, i8** %5
%88 = getelementptr inbounds i8, i8* %87, i64 3
%89 = load i8, i8* %88
%90 = load i8*, i8** %5
%91 = getelementptr inbounds i8, i8* %90, i64 4
%92 = load i8, i8* %91
%93 = load i8*, i8** %5
%94 = getelementptr inbounds i8, i8* %93, i64 5
%95 = load i8, i8* %94
%96 = load i8*, i8** %6
%97 = getelementptr inbounds i8, i8* %96, i64 0
%98 = load i8, i8* %97
%99 = load i8*, i8** %6
%100 = getelementptr inbounds i8, i8* %99, i64 1
%101 = load i8, i8* %100
%102 = load i16*, i16** %7
%103 = load i16, i16* %102
%104 = load i8*, i8** %8
%105 = getelementptr inbounds i8, i8* %104, i64 0
%106 = load i8, i8* %105
%107 = load i8*, i8** %8
%108 = getelementptr inbounds i8, i8* %107, i64 1
%109 = load i8, i8* %108
%110 = load i8*, i8** %8
%111 = getelementptr inbounds i8, i8* %110, i64 2
%112 = load i8, i8* %111
%113 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i8 signext %80, i8 signext %83, i8 signext %86, i8 signext %89, i8 signext %92, i8 signext %95, i8 signext %98, i8 signext %101, i16 signext %103, i8 signext %106, i8 signext %109, i8 signext %112)
%114 = load i32, i32* %9
ret i32 %114
}

LLVM IR (-O2):
@.str = [59 x i8] c"sub (test25b) C input :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\0A\00"
@.str.1 = [59 x i8] c"sub (test25b) C return :%c%c%c%c%c%c:%c%c:%02d:%c%c%c:\0A\00"
define i32 @test25b(i8* nocapture %0, i8* nocapture %1, i16* nocapture %2, i8* nocapture %3) {
%5 = load i8, i8* %0
%6 = getelementptr inbounds i8, i8* %0, i64 1
%7 = load i8, i8* %6
%8 = getelementptr inbounds i8, i8* %0, i64 2
%9 = load i8, i8* %8
%10 = getelementptr inbounds i8, i8* %0, i64 3
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %0, i64 4
%13 = load i8, i8* %12
%14 = getelementptr inbounds i8, i8* %0, i64 5
%15 = load i8, i8* %14
%16 = load i8, i8* %1
%17 = getelementptr inbounds i8, i8* %1, i64 1
%18 = load i8, i8* %17
%19 = load i16, i16* %2
%20 = load i8, i8* %3
%21 = getelementptr inbounds i8, i8* %3, i64 1
%22 = load i8, i8* %21
%23 = getelementptr inbounds i8, i8* %3, i64 2
%24 = load i8, i8* %23
%25 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8 signext %5, i8 signext %7, i8 signext %9, i8 signext %11, i8 signext %13, i8 signext %15, i8 signext %16, i8 signext %18, i16 signext %19, i8 signext %20, i8 signext %22, i8 signext %24)
store i8 112, i8* %0
store i8 113, i8* %6
store i8 114, i8* %8
store i8 115, i8* %10
store i8 116, i8* %12
store i8 121, i8* %14
store i8 49, i8* %1
store i8 52, i8* %17
store i16 18, i16* %2
store i8 49, i8* %3
store i8 52, i8* %21
store i8 52, i8* %23
%26 = load i8, i8* %0
%27 = load i8, i8* %6
%28 = load i8, i8* %8
%29 = load i8, i8* %10
%30 = load i8, i8* %12
%31 = load i8, i8* %14
%32 = load i8, i8* %1
%33 = load i8, i8* %17
%34 = load i16, i16* %2
%35 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i8 signext %26, i8 signext %27, i8 signext %28, i8 signext %29, i8 signext %30, i8 signext %31, i8 signext %32, i8 signext %33, i16 signext %34, i8 signext 49, i8 signext 52, i8 signext 52)
ret i32 0
}