#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*/ fmtchk(char *);
int /*<<< orphan*/ fmtst1chk(char *);
int /*<<< orphan*/ fmtst2chk(char *);
int /*<<< orphan*/ fp_test();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, int, ...);
int main(void) {
  static char shortstr[] = "Hi, Z.";
  static char longstr[] = "Good morning, Doctor Chandra.  This is Hal.  I am "
                          "ready for my first lesson today.";
  fmtchk("%.4x");
  fmtchk("%04x");
  fmtchk("%4.4x");
  fmtchk("%04.4x");
  fmtchk("%4.3x");
  fmtchk("%04.3x");
  fmtst1chk("%.*x");
  fmtst1chk("%0*x");
  fmtst2chk("%*.*x");
  fmtst2chk("%0*.*x");
  printf("bad format:\t\"%z\"\n");
  printf("nil pointer (padded):\t\"%10p\"\n", (void *)NULL);
  printf("decimal negative:\t\"%d\"\n", -2345);
  printf("octal negative:\t\"%o\"\n", -2345);
  printf("hex negative:\t\"%x\"\n", -2345);
  printf("long decimal number:\t\"%ld\"\n", -123456);
  printf("long octal negative:\t\"%lo\"\n", -2345L);
  printf("long unsigned decimal number:\t\"%lu\"\n", -123456);
  printf("zero-padded LDN:\t\"%010ld\"\n", -123456);
  printf("left-adjusted ZLDN:\t\"%-010ld\"\n", -123456);
  printf("space-padded LDN:\t\"%10ld\"\n", -123456);
  printf("left-adjusted SLDN:\t\"%-10ld\"\n", -123456);
  printf("zero-padded string:\t\"%010s\"\n", shortstr);
  printf("left-adjusted Z string:\t\"%-010s\"\n", shortstr);
  printf("space-padded string:\t\"%10s\"\n", shortstr);
  printf("left-adjusted S string:\t\"%-10s\"\n", shortstr);
  printf("null string:\t\"%s\"\n", (char *)NULL);
  printf("e-style >= 1:\t\"%e\"\n", 12.34);
  printf("e-style >= .1:\t\"%e\"\n", 0.1234);
  printf("e-style < .1:\t\"%e\"\n", 0.001234);
  printf("e-style big:\t\"%.60e\"\n", 1e20);
  printf("e-style == .1:\t\"%e\"\n", 0.1);
  printf("f-style >= 1:\t\"%f\"\n", 12.34);
  printf("f-style >= .1:\t\"%f\"\n", 0.1234);
  printf("f-style < .1:\t\"%f\"\n", 0.001234);
  printf("g-style >= 1:\t\"%g\"\n", 12.34);
  printf("g-style >= .1:\t\"%g\"\n", 0.1234);
  printf("g-style < .1:\t\"%g\"\n", 0.001234);
  printf("g-style big:\t\"%.60g\"\n", 1e20);
  {
    char buf[128];
    sprintf(buf, "new test: %.15g", 99.85);
    printf(":%s:\n", buf);
  }
  printf(" %6.5lf\n", .099999999860301614);
  printf(" %6.5lf\n", .1);
  printf("x%5.4lfx\n", .5);
  printf("%#03x\n", 1);
  printf("|%12.4f|%12.4e|%12.4g|\n", 0.0, 0.0, 0.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 1.0, 1.0, 1.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", -1.0, -1.0, -1.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 100.0, 100.0, 100.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 1000.0, 1000.0, 1000.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 10000.0, 10000.0, 10000.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 12345.0, 12345.0, 12345.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 100000.0, 100000.0, 100000.0);
  printf("|%12.4f|%12.4e|%12.4g|\n", 123456.0, 123456.0, 123456.0);
  fp_test();
  fp_test();
  fp_test();
  fp_test();
  fp_test();
  fp_test();
  fp_test();
  fp_test();
  printf("%e should be 1.234568e+06\n", 1234567.8);
  printf("%f should be 1234567.800000\n", 1234567.8);
  printf("%g should be 1.23457e+06\n", 1234567.8);
  printf("%g should be 123.456\n", 123.456);
  printf("%g should be 1e+06\n", 1000000.0);
  printf("%g should be 10\n", 10.0);
  printf("%g should be 0.02\n", 0.02);
  {
    char buf[128];
    sprintf(buf, "%#.*f", 4, (double)0.70000);
    printf("testing parametric fields: %s\n", buf);
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf2f(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf28(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf21(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf1b(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf16(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf10(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf0b(%rip),%rdi
call   1060 <fmtst1chk@plt>
lea    0xf04(%rip),%rdi
call   1060 <fmtst1chk@plt>
lea    0xefd(%rip),%rdi
call   1050 <fmtst2chk@plt>
lea    0xef7(%rip),%rdi
call   1050 <fmtst2chk@plt>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0xfffff6d7,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0xfffff6d7,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0xfffff6d7,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0xfffffffffffff6d7,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0xfffe1dc0,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf54(%rip),%rdi
lea    0x2d88(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5c(%rip),%rdi
lea    0x2d73(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf69(%rip),%rdi
lea    0x2d5e(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf71(%rip),%rdi
lea    0x2d49(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf7d(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
movsd  0xd61(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf7c(%rip),%rdi
movsd  0xd43(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf7b(%rip),%rdi
movsd  0xd25(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf79(%rip),%rdi
movsd  0xd07(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf79(%rip),%rdi
movsd  0xce1(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf78(%rip),%rdi
movsd  0xcf3(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf76(%rip),%rdi
movsd  0xcd5(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf75(%rip),%rdi
movsd  0xcb7(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf73(%rip),%rdi
movsd  0xcb1(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf71(%rip),%rdi
movsd  0xc93(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf70(%rip),%rdi
movsd  0xc75(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf6e(%rip),%rdi
movsd  0xc57(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    0xf67(%rip),%rsi
mov    $0x63,%edx
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0x90(%rbp),%rsi
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf55(%rip),%rdi
movsd  0xc0a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf3f(%rip),%rdi
movsd  0xbec(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf32(%rip),%rdi
movsd  0xbce(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf26(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1a(%rip),%rdi
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
movsd  0xb86(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
movsd  0xb62(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
movsd  0xb3e(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xeaf(%rip),%rdi
movsd  0xb1a(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
movsd  0xaf6(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xe77(%rip),%rdi
movsd  0xad2(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xe5b(%rip),%rdi
movsd  0xaae(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xe3f(%rip),%rdi
movsd  0xa8a(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
mov    $0x0,%al
call   1080 <fp_test@plt>
lea    0xe03(%rip),%rdi
movsd  0xa2e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe08(%rip),%rdi
movsd  0xa18(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe0f(%rip),%rdi
movsd  0xa02(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe13(%rip),%rdi
movsd  0x9e4(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe13(%rip),%rdi
movsd  0x9c6(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe11(%rip),%rdi
movsd  0x9a8(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe0c(%rip),%rdi
movsd  0x98a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0x110(%rbp),%rdi
lea    0xe02(%rip),%rsi
mov    $0x4,%edx
movsd  0x960(%rip),%xmm0
mov    $0x1,%al
call   1070 <sprintf@plt>
lea    -0x110(%rbp),%rsi
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x80,%rsp
lea    0xf39(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf32(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf2b(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf25(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf20(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf1a(%rip),%rdi
call   1030 <fmtchk@plt>
lea    0xf15(%rip),%rdi
call   1060 <fmtst1chk@plt>
lea    0xf0e(%rip),%rdi
call   1060 <fmtst1chk@plt>
lea    0xf07(%rip),%rdi
call   1050 <fmtst2chk@plt>
lea    0xf01(%rip),%rdi
call   1050 <fmtst2chk@plt>
lea    0xefc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0xfffff6d7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0xfffff6d7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0xfffff6d7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0xfffffffffffff6d7,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf55(%rip),%rdi
mov    $0xfffe1dc0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf60(%rip),%rdi
lea    0x2d84(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf65(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf76(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf82(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf95(%rip),%rdi
movsd  0xcd8(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf93(%rip),%rdi
movsd  0xcca(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
movsd  0xcbc(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf90(%rip),%rdi
movsd  0xcae(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf90(%rip),%rdi
movsd  0xca0(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf8f(%rip),%rdi
movsd  0xc6a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf8d(%rip),%rdi
movsd  0xc5c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
movsd  0xc4e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf8a(%rip),%rdi
movsd  0xc28(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf88(%rip),%rdi
movsd  0xc1a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf87(%rip),%rdi
movsd  0xc0c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf85(%rip),%rdi
movsd  0xbfe(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf85(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x63,%edx
xor    %eax,%eax
call   1070 <sprintf@plt>
lea    0xf7c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf71(%rip),%rbx
movsd  0xbce(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
movsd  0xbb1(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf4f(%rip),%rdi
movsd  0xbab(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf37(%rip),%rbx
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    %rbx,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb77(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb67(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb57(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb47(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb37(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb27(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb17(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0xb07(%rip),%xmm0
mov    %rbx,%rdi
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
xor    %eax,%eax
call   1080 <fp_test@plt>
lea    0xe3d(%rip),%rdi
movsd  0xab8(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe42(%rip),%rdi
movsd  0xaa2(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe49(%rip),%rdi
movsd  0xa8c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe4d(%rip),%rdi
movsd  0xa7e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe4d(%rip),%rdi
movsd  0xa70(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe4b(%rip),%rdi
movsd  0xa62(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe46(%rip),%rdi
movsd  0xa54(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe43(%rip),%rsi
mov    %rsp,%rbx
movsd  0xa43(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%edx
mov    $0x1,%al
call   1070 <sprintf@plt>
lea    0xe28(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@main.shortstr = internal global [7 x i8] c"Hi, Z.\00"
@main.longstr = internal global [83 x i8] c"Good morning, Doctor Chandra. This is Hal. I am ready for my first lesson today.\00"
@.str = [5 x i8] c"%.4x\00"
@.str.1 = [5 x i8] c"%04x\00"
@.str.2 = [6 x i8] c"%4.4x\00"
@.str.3 = [7 x i8] c"%04.4x\00"
@.str.4 = [6 x i8] c"%4.3x\00"
@.str.5 = [7 x i8] c"%04.3x\00"
@.str.6 = [5 x i8] c"%.*x\00"
@.str.7 = [5 x i8] c"%0*x\00"
@.str.8 = [6 x i8] c"%*.*x\00"
@.str.9 = [7 x i8] c"%0*.*x\00"
@.str.10 = [18 x i8] c"bad format:\09\22%z\22\0A\00"
@.str.11 = [30 x i8] c"nil pointer (padded):\09\22%10p\22\0A\00"
@.str.12 = [24 x i8] c"decimal negative:\09\22%d\22\0A\00"
@.str.13 = [22 x i8] c"octal negative:\09\22%o\22\0A\00"
@.str.14 = [20 x i8] c"hex negative:\09\22%x\22\0A\00"
@.str.15 = [28 x i8] c"long decimal number:\09\22%ld\22\0A\00"
@.str.16 = [28 x i8] c"long octal negative:\09\22%lo\22\0A\00"
@.str.17 = [37 x i8] c"long unsigned decimal number:\09\22%lu\22\0A\00"
@.str.18 = [27 x i8] c"zero-padded LDN:\09\22%010ld\22\0A\00"
@.str.19 = [31 x i8] c"left-adjusted ZLDN:\09\22%-010ld\22\0A\00"
@.str.20 = [27 x i8] c"space-padded LDN:\09\22%10ld\22\0A\00"
@.str.21 = [30 x i8] c"left-adjusted SLDN:\09\22%-10ld\22\0A\00"
@.str.22 = [29 x i8] c"zero-padded string:\09\22%010s\22\0A\00"
@.str.23 = [34 x i8] c"left-adjusted Z string:\09\22%-010s\22\0A\00"
@.str.24 = [29 x i8] c"space-padded string:\09\22%10s\22\0A\00"
@.str.25 = [33 x i8] c"left-adjusted S string:\09\22%-10s\22\0A\00"
@.str.26 = [19 x i8] c"null string:\09\22%s\22\0A\00"
@.str.27 = [20 x i8] c"e-style >= 1:\09\22%e\22\0A\00"
@.str.28 = [21 x i8] c"e-style >= .1:\09\22%e\22\0A\00"
@.str.29 = [20 x i8] c"e-style < .1:\09\22%e\22\0A\00"
@.str.30 = [22 x i8] c"e-style big:\09\22%.60e\22\0A\00"
@.str.31 = [21 x i8] c"e-style == .1:\09\22%e\22\0A\00"
@.str.32 = [20 x i8] c"f-style >= 1:\09\22%f\22\0A\00"
@.str.33 = [21 x i8] c"f-style >= .1:\09\22%f\22\0A\00"
@.str.34 = [20 x i8] c"f-style < .1:\09\22%f\22\0A\00"
@.str.35 = [20 x i8] c"g-style >= 1:\09\22%g\22\0A\00"
@.str.36 = [21 x i8] c"g-style >= .1:\09\22%g\22\0A\00"
@.str.37 = [20 x i8] c"g-style < .1:\09\22%g\22\0A\00"
@.str.38 = [22 x i8] c"g-style big:\09\22%.60g\22\0A\00"
@.str.39 = [16 x i8] c"new test: %.15g\00"
@.str.40 = [6 x i8] c":%s:\0A\00"
@.str.41 = [9 x i8] c" %6.5lf\0A\00"
@.str.42 = [10 x i8] c"x%5.4lfx\0A\00"
@.str.43 = [7 x i8] c"%x\0A\00"
@.str.44 = [24 x i8] c"|%12.4f|%12.4e|%12.4g|\0A\00"
@.str.45 = [27 x i8] c"%e should be 1.234568e+06\0A\00"
@.str.46 = [29 x i8] c"%f should be 1234567.800000\0A\00"
@.str.47 = [26 x i8] c"%g should be 1.23457e+06\0A\00"
@.str.48 = [22 x i8] c"%g should be 123.456\0A\00"
@.str.49 = [20 x i8] c"%g should be 1e+06\0A\00"
@.str.50 = [17 x i8] c"%g should be 10\0A\00"
@.str.51 = [19 x i8] c"%g should be 0.02\0A\00"
@.str.52 = [6 x i8] c"%#.*f\00"
@.str.53 = [31 x i8] c"testing parametric fields: %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [128 x i8]
%3 = alloca [128 x i8]
store i32 0, i32* %1
%4 = call i32 @fmtchk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @fmtchk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @fmtchk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @fmtchk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @fmtchk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @fmtchk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @fmtst1chk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @fmtst1chk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @fmtst2chk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @fmtst2chk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* null)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 -2345)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 -2345)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i32 -2345)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 -123456)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i64 -2345)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0), i32 -123456)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), i32 -123456)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.19, i64 0, i64 0), i32 -123456)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), i32 -123456)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0), i32 -123456)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.26, i64 0, i64 0), i8* null)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0), double 1.234000e+01)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0), double 1.234000e-01)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.29, i64 0, i64 0), double 1.234000e-03)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), double 1.000000e+20)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.31, i64 0, i64 0), double 1.000000e-01)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), double 1.234000e+01)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0), double 1.234000e-01)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0), double 1.234000e-03)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), double 1.234000e+01)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.36, i64 0, i64 0), double 1.234000e-01)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.37, i64 0, i64 0), double 1.234000e-03)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.38, i64 0, i64 0), double 1.000000e+20)
%43 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%44 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %43, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.39, i64 0, i64 0), i32 99)
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.40, i64 0, i64 0), i8* %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i64 0, i64 0), double 0x3FB9999999000000)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i64 0, i64 0), double 1.000000e-01)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.42, i64 0, i64 0), double 5.000000e-01)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.43, i64 0, i64 0), i32 1)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double -1.000000e+00, double -1.000000e+00, double -1.000000e+00)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+02, double 1.000000e+02, double 1.000000e+02)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+03, double 1.000000e+03, double 1.000000e+03)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+04, double 1.000000e+04, double 1.000000e+04)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.234500e+04, double 1.234500e+04, double 1.234500e+04)
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+05, double 1.000000e+05, double 1.000000e+05)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.234560e+05, double 1.234560e+05, double 1.234560e+05)
%60 = call i32 (...) @fp_test()
%61 = call i32 (...) @fp_test()
%62 = call i32 (...) @fp_test()
%63 = call i32 (...) @fp_test()
%64 = call i32 (...) @fp_test()
%65 = call i32 (...) @fp_test()
%66 = call i32 (...) @fp_test()
%67 = call i32 (...) @fp_test()
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.45, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.46, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.47, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.48, i64 0, i64 0), double 1.234560e+02)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.49, i64 0, i64 0), double 1.000000e+06)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.50, i64 0, i64 0), double 1.000000e+01)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.51, i64 0, i64 0), double 2.000000e-02)
%75 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%76 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %75, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i64 0, i64 0), i32 4, double 0x3FE6666666666666)
%77 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.53, i64 0, i64 0), i8* %77)
ret i32 0
}

LLVM IR (-O2):
@main.shortstr = internal global [7 x i8] c"Hi, Z.\00"
@.str = [5 x i8] c"%.4x\00"
@.str.1 = [5 x i8] c"%04x\00"
@.str.2 = [6 x i8] c"%4.4x\00"
@.str.3 = [7 x i8] c"%04.4x\00"
@.str.4 = [6 x i8] c"%4.3x\00"
@.str.5 = [7 x i8] c"%04.3x\00"
@.str.6 = [5 x i8] c"%.*x\00"
@.str.7 = [5 x i8] c"%0*x\00"
@.str.8 = [6 x i8] c"%*.*x\00"
@.str.9 = [7 x i8] c"%0*.*x\00"
@.str.10 = [18 x i8] c"bad format:\09\22%z\22\0A\00"
@.str.11 = [30 x i8] c"nil pointer (padded):\09\22%10p\22\0A\00"
@.str.12 = [24 x i8] c"decimal negative:\09\22%d\22\0A\00"
@.str.13 = [22 x i8] c"octal negative:\09\22%o\22\0A\00"
@.str.14 = [20 x i8] c"hex negative:\09\22%x\22\0A\00"
@.str.15 = [28 x i8] c"long decimal number:\09\22%ld\22\0A\00"
@.str.16 = [28 x i8] c"long octal negative:\09\22%lo\22\0A\00"
@.str.17 = [37 x i8] c"long unsigned decimal number:\09\22%lu\22\0A\00"
@.str.18 = [27 x i8] c"zero-padded LDN:\09\22%010ld\22\0A\00"
@.str.19 = [31 x i8] c"left-adjusted ZLDN:\09\22%-010ld\22\0A\00"
@.str.20 = [27 x i8] c"space-padded LDN:\09\22%10ld\22\0A\00"
@.str.21 = [30 x i8] c"left-adjusted SLDN:\09\22%-10ld\22\0A\00"
@.str.22 = [29 x i8] c"zero-padded string:\09\22%010s\22\0A\00"
@.str.23 = [34 x i8] c"left-adjusted Z string:\09\22%-010s\22\0A\00"
@.str.24 = [29 x i8] c"space-padded string:\09\22%10s\22\0A\00"
@.str.25 = [33 x i8] c"left-adjusted S string:\09\22%-10s\22\0A\00"
@.str.26 = [19 x i8] c"null string:\09\22%s\22\0A\00"
@.str.27 = [20 x i8] c"e-style >= 1:\09\22%e\22\0A\00"
@.str.28 = [21 x i8] c"e-style >= .1:\09\22%e\22\0A\00"
@.str.29 = [20 x i8] c"e-style < .1:\09\22%e\22\0A\00"
@.str.30 = [22 x i8] c"e-style big:\09\22%.60e\22\0A\00"
@.str.31 = [21 x i8] c"e-style == .1:\09\22%e\22\0A\00"
@.str.32 = [20 x i8] c"f-style >= 1:\09\22%f\22\0A\00"
@.str.33 = [21 x i8] c"f-style >= .1:\09\22%f\22\0A\00"
@.str.34 = [20 x i8] c"f-style < .1:\09\22%f\22\0A\00"
@.str.35 = [20 x i8] c"g-style >= 1:\09\22%g\22\0A\00"
@.str.36 = [21 x i8] c"g-style >= .1:\09\22%g\22\0A\00"
@.str.37 = [20 x i8] c"g-style < .1:\09\22%g\22\0A\00"
@.str.38 = [22 x i8] c"g-style big:\09\22%.60g\22\0A\00"
@.str.39 = [16 x i8] c"new test: %.15g\00"
@.str.40 = [6 x i8] c":%s:\0A\00"
@.str.41 = [9 x i8] c" %6.5lf\0A\00"
@.str.42 = [10 x i8] c"x%5.4lfx\0A\00"
@.str.43 = [7 x i8] c"%x\0A\00"
@.str.44 = [24 x i8] c"|%12.4f|%12.4e|%12.4g|\0A\00"
@.str.45 = [27 x i8] c"%e should be 1.234568e+06\0A\00"
@.str.46 = [29 x i8] c"%f should be 1234567.800000\0A\00"
@.str.47 = [26 x i8] c"%g should be 1.23457e+06\0A\00"
@.str.48 = [22 x i8] c"%g should be 123.456\0A\00"
@.str.49 = [20 x i8] c"%g should be 1e+06\0A\00"
@.str.50 = [17 x i8] c"%g should be 10\0A\00"
@.str.51 = [19 x i8] c"%g should be 0.02\0A\00"
@.str.52 = [6 x i8] c"%#.*f\00"
@.str.53 = [31 x i8] c"testing parametric fields: %s\0A\00"
define i32 @main() {
%1 = alloca [128 x i8]
%2 = alloca [128 x i8]
%3 = tail call i32 @fmtchk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @fmtchk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @fmtchk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @fmtchk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @fmtchk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @fmtchk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @fmtst1chk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @fmtst1chk(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @fmtst2chk(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @fmtst2chk(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* null)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 -2345)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 -2345)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i32 -2345)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 -123456)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i64 -2345)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0), i32 -123456)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), i32 -123456)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.19, i64 0, i64 0), i32 -123456)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), i32 -123456)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0), i32 -123456)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @main.shortstr, i64 0, i64 0))
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.26, i64 0, i64 0), i8* null)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0), double 1.234000e+01)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0), double 1.234000e-01)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.29, i64 0, i64 0), double 1.234000e-03)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), double 1.000000e+20)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.31, i64 0, i64 0), double 1.000000e-01)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), double 1.234000e+01)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0), double 1.234000e-01)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0), double 1.234000e-03)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), double 1.234000e+01)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.36, i64 0, i64 0), double 1.234000e-01)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.37, i64 0, i64 0), double 1.234000e-03)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.38, i64 0, i64 0), double 1.000000e+20)
%42 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%43 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %42, i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.39, i64 0, i64 0), i32 99)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.40, i64 0, i64 0), i8* %42)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i64 0, i64 0), double 0x3FB9999999000000)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i64 0, i64 0), double 1.000000e-01)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.42, i64 0, i64 0), double 5.000000e-01)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.43, i64 0, i64 0), i32 1)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double -1.000000e+00, double -1.000000e+00, double -1.000000e+00)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+02, double 1.000000e+02, double 1.000000e+02)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+03, double 1.000000e+03, double 1.000000e+03)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+04, double 1.000000e+04, double 1.000000e+04)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.234500e+04, double 1.234500e+04, double 1.234500e+04)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.000000e+05, double 1.000000e+05, double 1.000000e+05)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.44, i64 0, i64 0), double 1.234560e+05, double 1.234560e+05, double 1.234560e+05)
%58 = call i32 (...) @fp_test()
%59 = call i32 (...) @fp_test()
%60 = call i32 (...) @fp_test()
%61 = call i32 (...) @fp_test()
%62 = call i32 (...) @fp_test()
%63 = call i32 (...) @fp_test()
%64 = call i32 (...) @fp_test()
%65 = call i32 (...) @fp_test()
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.45, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.46, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.47, i64 0, i64 0), double 0x4132D687CCCCCCCD)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.48, i64 0, i64 0), double 1.234560e+02)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.49, i64 0, i64 0), double 1.000000e+06)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.50, i64 0, i64 0), double 1.000000e+01)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.51, i64 0, i64 0), double 2.000000e-02)
%73 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%74 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %73, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i64 0, i64 0), i32 4, double 0x3FE6666666666666)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.53, i64 0, i64 0), i8* %73)
ret i32 0
}