void pr9751() {
  const char kFormat1[] = "%d %d \n";
  printf(kFormat1, 0);
  printf("%d %s\n", 0);
  const char kFormat2[] = "%18$s\n";
  printf(kFormat2, 1, "foo");
  printf("%18$s\n", 1, "foo");
  const char kFormat3[] = "%n";
  printf(kFormat3, "as");
  printf("%n", "as");
  const char kFormat4[] = "%y";
  printf(kFormat4, 5);
  printf("%y", 5);
  const char kFormat5[] = "%.";
  printf(kFormat5, 5);
  printf("%.", 5);
  const char kFormat6[] = "%s";
  printf(kFormat6, 5);
  printf("%s", 5);
  const char kFormat7[] = "%0$";
  printf(kFormat7, 5);
  printf("%0$", 5);
  const char kFormat8[] = "%1$d %d";
  printf(kFormat8, 4, 4);
  printf("%1$d %d", 4, 4);
  const char kFormat9[] = "";
  printf(kFormat9, 4, 4);
  printf("", 4, 4);
  const char kFormat10[] = "\0%d";
  printf(kFormat10, 4);
  printf("\0%d", 4);
  const char kFormat11[] = "%*d";
  printf(kFormat11);
  printf("%*d");
  const char kFormat12[] = "%*d";
  printf(kFormat12, 4.4);
  printf("%*d", 4.4);
  const char kFormat13[] = "%.3p";
  void *p;
  printf(kFormat13, p);
  printf("%.3p", p);
  const char kFormat14[] = "%0s";
  printf(kFormat14, "a");
  printf("%0s", "a");
  const char kFormat15[] = "%hhs";
  printf(kFormat15, "a");
  printf("%hhs", "a");
  const char kFormat16[] = "%-0d";
  printf(kFormat16, 5);
  printf("%-0d", 5);
  printf(1 ? "yes %d" : "no %d");
  const char kFormat17[] = "%hu";
  printf(kFormat17, (int[]){0});
  printf("%a", (long double)0);
}


x86 assembly (clang, -O0):
<pr9751>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0xed9(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xec1(%rip),%eax
mov    %eax,-0xf(%rbp)
mov    0xebb(%rip),%ax
mov    %ax,-0xb(%rbp)
mov    0xeb3(%rip),%al
mov    %al,-0x9(%rbp)
lea    -0xf(%rbp),%rdi
mov    $0x1,%esi
lea    0xea1(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x1,%esi
lea    0xe87(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xe7d(%rip),%ax
mov    %ax,-0x12(%rbp)
mov    0xe75(%rip),%al
mov    %al,-0x10(%rbp)
lea    -0x12(%rbp),%rdi
lea    0xe68(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
lea    0xe53(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xe48(%rip),%ax
mov    %ax,-0x15(%rbp)
mov    0xe40(%rip),%al
mov    %al,-0x13(%rbp)
lea    -0x15(%rbp),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe24(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xe14(%rip),%ax
mov    %ax,-0x18(%rbp)
mov    0xe0c(%rip),%al
mov    %al,-0x16(%rbp)
lea    -0x18(%rbp),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf0(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xde0(%rip),%ax
mov    %ax,-0x1b(%rbp)
mov    0xdd8(%rip),%al
mov    %al,-0x19(%rbp)
lea    -0x1b(%rbp),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdbc(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xdad(%rip),%eax
mov    %eax,-0x1f(%rbp)
lea    -0x1f(%rbp),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd93(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xd84(%rip),%rax
mov    %rax,-0x27(%rbp)
lea    -0x27(%rbp),%rdi
mov    $0x4,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd67(%rip),%rdi
mov    $0x4,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1040 <memset@plt>
lea    -0x28(%rbp),%rdi
mov    $0x4,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd0a(%rip),%rdi
mov    $0x4,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xd49(%rip),%eax
mov    %eax,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd2f(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xcf8(%rip),%eax
mov    %eax,-0x30(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xcd6(%rip),%eax
mov    %eax,-0x34(%rbp)
lea    -0x34(%rbp),%rdi
movsd  0xc8a(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xcb9(%rip),%rdi
movsd  0xc74(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
mov    0xca8(%rip),%eax
mov    %eax,-0x39(%rbp)
mov    0xca3(%rip),%al
mov    %al,-0x35(%rbp)
lea    -0x39(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xc7a(%rip),%eax
mov    %eax,-0x4c(%rbp)
lea    -0x4c(%rbp),%rdi
lea    0xc86(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5e(%rip),%rdi
lea    0xc71(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xc4e(%rip),%eax
mov    %eax,-0x51(%rbp)
mov    0xc49(%rip),%al
mov    %al,-0x4d(%rbp)
lea    -0x51(%rbp),%rdi
lea    0xc4d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc29(%rip),%rdi
lea    0xc38(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xc1a(%rip),%eax
mov    %eax,-0x56(%rbp)
mov    0xc15(%rip),%al
mov    %al,-0x52(%rbp)
lea    -0x56(%rbp),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbf7(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbe9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xbe3(%rip),%eax
mov    %eax,-0x5a(%rbp)
lea    -0x5a(%rbp),%rdi
movl   $0x0,-0x60(%rbp)
lea    -0x60(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %rsp,%rax
fldz
fstpt  (%rax)
lea    0xbc0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pr9751>:
push   %r14
push   %rbx
sub    $0x78,%rsp
movabs $0xa206425206425,%rax
mov    %rax,0x70(%rsp)
lea    0x70(%rsp),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0xa7324,0x63(%rsp)
movl   $0x24383125,0x60(%rsp)
24
lea    0xeb8(%rip),%r14
lea    0xead(%rip),%rbx
lea    0x60(%rsp),%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x2a(%rsp)
movw   $0x6e25,0x28(%rsp)
lea    0xe82(%rip),%r14
lea    0xe78(%rip),%rbx
lea    0x28(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x26(%rsp)
movw   $0x7925,0x24(%rsp)
lea    0xe4f(%rip),%rbx
lea    0x24(%rsp),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x22(%rsp)
movw   $0x2e25,0x20(%rsp)
lea    0xe1f(%rip),%rbx
lea    0x20(%rsp),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x1e(%rsp)
movw   $0x7325,0x1c(%rsp)
lea    0xdef(%rip),%rbx
lea    0x1c(%rsp),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x243025,0x5c(%rsp)
lea    0x5c(%rsp),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdb2(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x64252064243125,%rax
mov    %rax,0x68(%rsp)
lea    0x68(%rsp),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd7e(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x1b(%rsp)
lea    0x1b(%rsp),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x642500,0x58(%rsp)
lea    0x58(%rsp),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x642a25,0x54(%rsp)
lea    0x54(%rsp),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd26(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x642a25,0x50(%rsp)
lea    0x50(%rsp),%rdi
movsd  0xcd2(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
mov    %rbx,%rdi
movsd  0xcc0(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
movb   $0x0,0x40(%rsp)
movl   $0x70332e25,0x3c(%rsp)
70
lea    0xcde(%rip),%rbx
lea    0x3c(%rsp),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x733025,0x4c(%rsp)
lea    0xcd4(%rip),%rbx
lea    0x4c(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xca8(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x38(%rsp)
movl   $0x73686825,0x34(%rsp)
73
lea    0xc8e(%rip),%r14
lea    0x34(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x0,0x30(%rsp)
movl   $0x64302d25,0x2c(%rsp)
64
lea    0xc63(%rip),%rbx
lea    0x2c(%rsp),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc41(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x756825,0x48(%rsp)
movl   $0x0,0x44(%rsp)
lea    0x48(%rsp),%rdi
lea    0x44(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
fldz
fstpt  (%rsp)
lea    0xc14(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.pr9751.kFormat1 = [8 x i8] c"%d %d \0A\00"
@.str = [7 x i8] c"%d %s\0A\00"
@__const.pr9751.kFormat2 = [7 x i8] c"%18$s\0A\00"
@.str.1 = [4 x i8] c"foo\00"
@.str.2 = [7 x i8] c"%18$s\0A\00"
@__const.pr9751.kFormat3 = [3 x i8] c"%n\00"
@.str.3 = [3 x i8] c"as\00"
@.str.4 = [3 x i8] c"%n\00"
@__const.pr9751.kFormat4 = [3 x i8] c"%y\00"
@.str.5 = [3 x i8] c"%y\00"
@__const.pr9751.kFormat5 = [3 x i8] c"%.\00"
@.str.6 = [3 x i8] c"%.\00"
@__const.pr9751.kFormat6 = [3 x i8] c"%s\00"
@.str.7 = [3 x i8] c"%s\00"
@__const.pr9751.kFormat7 = [4 x i8] c"%0$\00"
@.str.8 = [4 x i8] c"%0$\00"
@__const.pr9751.kFormat8 = [8 x i8] c"%1$d %d\00"
@.str.9 = [8 x i8] c"%1$d %d\00"
@.str.10 = [1 x i8] zeroinitializer
@__const.pr9751.kFormat10 = [4 x i8] c"\00%d\00"
@.str.11 = [4 x i8] c"\00%d\00"
@__const.pr9751.kFormat11 = [4 x i8] c"%*d\00"
@.str.12 = [4 x i8] c"%*d\00"
@__const.pr9751.kFormat12 = [4 x i8] c"%*d\00"
@__const.pr9751.kFormat13 = [5 x i8] c"%.3p\00"
@.str.13 = [5 x i8] c"%.3p\00"
@__const.pr9751.kFormat14 = [4 x i8] c"%0s\00"
@.str.14 = [2 x i8] c"a\00"
@.str.15 = [4 x i8] c"%0s\00"
@__const.pr9751.kFormat15 = [5 x i8] c"%hhs\00"
@.str.16 = [5 x i8] c"%hhs\00"
@__const.pr9751.kFormat16 = [5 x i8] c"%-0d\00"
@.str.17 = [5 x i8] c"%-0d\00"
@.str.18 = [7 x i8] c"yes %d\00"
@__const.pr9751.kFormat17 = [4 x i8] c"%hu\00"
@.str.19 = [3 x i8] c"%a\00"
define void @pr9751() {
%1 = alloca [8 x i8]
%2 = alloca [7 x i8]
%3 = alloca [3 x i8]
%4 = alloca [3 x i8]
%5 = alloca [3 x i8]
%6 = alloca [3 x i8]
%7 = alloca [4 x i8]
%8 = alloca [8 x i8]
%9 = alloca [1 x i8]
%10 = alloca [4 x i8]
%11 = alloca [4 x i8]
%12 = alloca [4 x i8]
%13 = alloca [5 x i8]
%14 = alloca i8*
%15 = alloca [4 x i8]
%16 = alloca [5 x i8]
%17 = alloca [5 x i8]
%18 = alloca [4 x i8]
%19 = alloca [1 x i32]
%20 = bitcast [8 x i8]* %1 to i8*
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 0
%22 = call i32 (i8*, ...) @printf(i8* %21, i32 0)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0)
%24 = bitcast [7 x i8]* %2 to i8*
%25 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%26 = call i32 (i8*, ...) @printf(i8* %25, i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%28 = bitcast [3 x i8]* %3 to i8*
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%30 = call i32 (i8*, ...) @printf(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%32 = bitcast [3 x i8]* %4 to i8*
%33 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* %33, i32 5)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 5)
%36 = bitcast [3 x i8]* %5 to i8*
%37 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%38 = call i32 (i8*, ...) @printf(i8* %37, i32 5)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 5)
%40 = bitcast [3 x i8]* %6 to i8*
%41 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%42 = call i32 (i8*, ...) @printf(i8* %41, i32 5)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 5)
%44 = bitcast [4 x i8]* %7 to i8*
%45 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* %45, i32 5)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 5)
%48 = bitcast [8 x i8]* %8 to i8*
%49 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%50 = call i32 (i8*, ...) @printf(i8* %49, i32 4, i32 4)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 4, i32 4)
%52 = bitcast [1 x i8]* %9 to i8*
%53 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* %53, i32 4, i32 4)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0), i32 4, i32 4)
%56 = bitcast [4 x i8]* %10 to i8*
%57 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%58 = call i32 (i8*, ...) @printf(i8* %57, i32 4)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 4)
%60 = bitcast [4 x i8]* %11 to i8*
%61 = getelementptr inbounds [4 x i8], [4 x i8]* %11, i64 0, i64 0
%62 = call i32 (i8*, ...) @printf(i8* %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%64 = bitcast [4 x i8]* %12 to i8*
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %12, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* %65, double 4.400000e+00)
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), double 4.400000e+00)
%68 = bitcast [5 x i8]* %13 to i8*
%69 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%70 = load i8*, i8** %14
%71 = call i32 (i8*, ...) @printf(i8* %69, i8* %70)
%72 = load i8*, i8** %14
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %72)
%74 = bitcast [4 x i8]* %15 to i8*
%75 = getelementptr inbounds [4 x i8], [4 x i8]* %15, i64 0, i64 0
%76 = call i32 (i8*, ...) @printf(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%78 = bitcast [5 x i8]* %16 to i8*
%79 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%80 = call i32 (i8*, ...) @printf(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%82 = bitcast [5 x i8]* %17 to i8*
%83 = getelementptr inbounds [5 x i8], [5 x i8]* %17, i64 0, i64 0
%84 = call i32 (i8*, ...) @printf(i8* %83, i32 5)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 5)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%87 = bitcast [4 x i8]* %18 to i8*
%88 = getelementptr inbounds [4 x i8], [4 x i8]* %18, i64 0, i64 0
%89 = getelementptr inbounds [1 x i32], [1 x i32]* %19, i64 0, i64 0
store i32 0, i32* %89
%90 = getelementptr inbounds [1 x i32], [1 x i32]* %19, i64 0, i64 0
%91 = call i32 (i8*, ...) @printf(i8* %88, i32* %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), x86_fp80 0xK00000000000000000000)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d %s\0A\00"
@.str.1 = [4 x i8] c"foo\00"
@.str.2 = [7 x i8] c"%18$s\0A\00"
@.str.3 = [3 x i8] c"as\00"
@.str.4 = [3 x i8] c"%n\00"
@.str.5 = [3 x i8] c"%y\00"
@.str.6 = [3 x i8] c"%.\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [4 x i8] c"%0$\00"
@.str.9 = [8 x i8] c"%1$d %d\00"
@.str.12 = [4 x i8] c"%*d\00"
@.str.13 = [5 x i8] c"%.3p\00"
@.str.14 = [2 x i8] c"a\00"
@.str.15 = [4 x i8] c"%0s\00"
@.str.16 = [5 x i8] c"%hhs\00"
@.str.17 = [5 x i8] c"%-0d\00"
@.str.18 = [7 x i8] c"yes %d\00"
@.str.19 = [3 x i8] c"%a\00"
define void @pr9751() {
%1 = alloca i64
%2 = alloca [7 x i8]
%3 = alloca [3 x i8]
%4 = alloca [3 x i8]
%5 = alloca [3 x i8]
%6 = alloca [3 x i8]
%7 = alloca i32
%8 = alloca i64
%9 = alloca [1 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [5 x i8]
%14 = alloca i32
%15 = alloca [5 x i8]
%16 = alloca [5 x i8]
%17 = alloca i32
%18 = alloca [1 x i32]
%19 = bitcast i64* %1 to i8*
store i64 2850364258804773, i64* %1
%20 = call i32 (i8*, ...) @printf(i8* %19, i32 0)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 0)
%22 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%23 = call i32 (i8*, ...) @printf(i8* %22, i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%25 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%26 = call i32 (i8*, ...) @printf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%28 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%29 = call i32 (i8*, ...) @printf(i8* %28, i32 5)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 5)
%31 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%32 = call i32 (i8*, ...) @printf(i8* %31, i32 5)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 5)
%34 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* %34, i32 5)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 5)
%37 = bitcast i32* %7 to i8*
store i32 2371621, i32* %7
%38 = call i32 (i8*, ...) @printf(i8* %37, i32 5)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 5)
%40 = bitcast i64* %8 to i8*
store i64 28188318720340261, i64* %8
%41 = call i32 (i8*, ...) @printf(i8* %40, i32 4, i32 4)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 4, i32 4)
%43 = getelementptr inbounds [1 x i8], [1 x i8]* %9, i64 0, i64 0
store i8 0, i8* %43
%44 = call i32 (i8*, ...) @printf(i8* %43, i32 4, i32 4)
%45 = bitcast i32* %10 to i8*
store i32 6563072, i32* %10
%46 = call i32 (i8*, ...) @printf(i8* %45, i32 4)
%47 = bitcast i32* %11 to i8*
store i32 6564389, i32* %11
%48 = call i32 (i8*, ...) @printf(i8* %47)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%50 = bitcast i32* %12 to i8*
store i32 6564389, i32* %12
%51 = call i32 (i8*, ...) @printf(i8* %50, double 4.400000e+00)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), double 4.400000e+00)
%53 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* %53, i8* undef)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* undef)
%56 = bitcast i32* %14 to i8*
store i32 7548965, i32* %14
%57 = call i32 (i8*, ...) @printf(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%59 = getelementptr inbounds [5 x i8], [5 x i8]* %15, i64 0, i64 0
%60 = call i32 (i8*, ...) @printf(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%62 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* %62, i32 5)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 5)
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%66 = bitcast i32* %17 to i8*
store i32 7694373, i32* %17
%67 = getelementptr inbounds [1 x i32], [1 x i32]* %18, i64 0, i64 0
store i32 0, i32* %67
%68 = call i32 (i8*, ...) @printf(i8* %66, i32* %67)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), x86_fp80 0xK00000000000000000000)
ret void
}