#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 */
typedef char wchar_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fdopen(int, char *);
scalar_t__ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ *freopen(char *, char *, int /*<<< orphan*/);
int fscanf(int /*<<< orphan*/ *, char *, char **, char *);
scalar_t__ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/);
char *getenv(char *);
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ memset(char *, char, int);
int mkstemp(char *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ remove(char *);
int scanf(char *, char **, char *);
int /*<<< orphan*/ sprintf(char *, char *, char const *);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strlen(char const *);
scalar_t__ wcscmp(char *, char *);
int main(void) {
  wchar_t *lsp;
  char *sp;
  float f;
  double d;
  char c[8];
  int result = 0;
  if (sscanf(" 0.25s x", "%e%3c", &f, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 23);
    } while (0);
  else if (f != 0.25 || memcmp(c, "s x", 3) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 25);
    } while (0);
  if (sscanf(" 1.25s x", "%as%2c", &sp, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 27);
    } while (0);
  else {
    if (strcmp(sp, "1.25s") != 0 || memcmp(c, " x", 2) != 0)
      do {
        result = 1;
        printf("test at line %d failed\n", 31);
      } while (0);
    memset(sp, 'x', sizeof "1.25s");
    free(sp);
  }
  if (sscanf(" 2.25s x", "%las%2c", &d, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 36);
    } while (0);
  else if (d != 2.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 38);
    } while (0);
  if (sscanf(" 3.25S x", "%4aS%3c", &lsp, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 40);
    } while (0);
  else {
    if (wcscmp(lsp, L"3.25") != 0 || memcmp(c, "S x", 3) != 0)
      do {
        result = 1;
        printf("test at line %d failed\n", 44);
      } while (0);
    memset(lsp, 'x', sizeof L"3.25");
    free(lsp);
  }
  if (sscanf("4.25[0-9.] x", "%a[0-9.]%8c", &sp, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 49);
    } while (0);
  else {
    if (strcmp(sp, "4.25") != 0 || memcmp(c, "[0-9.] x", 8) != 0)
      do {
        result = 1;
        printf("test at line %d failed\n", 53);
      } while (0);
    memset(sp, 'x', sizeof "4.25");
    free(sp);
  }
  if (sscanf("5.25[0-9.] x", "%la[0-9.]%2c", &d, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 58);
    } while (0);
  else if (d != 5.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 60);
    } while (0);
  const char *tmpdir = getenv("TMPDIR");
  if (tmpdir == NULL || tmpdir[0] == '\0')
    tmpdir = "/tmp";
  char fname[strlen(tmpdir) + sizeof "/tst-scanf14.XXXXXX"];
  sprintf(fname, "%s/tst-scanf14.XXXXXX", tmpdir);
  if (fname == NULL)
    do {
      result = 1;
      printf("test at line %d failed\n", 69);
    } while (0);
  int fd = mkstemp(fname);
  if (fd == -1)
    do {
      result = 1;
      printf("test at line %d failed\n", 74);
    } while (0);
  FILE *fp = fdopen(fd, "w+");
  if (fp == NULL)
    do {
      result = 1;
      printf("test at line %d failed\n", 78);
    } while (0);
  else {
    if (fputs(" 1.25s x", fp) == EOF)
      do {
        result = 1;
        printf("test at line %d failed\n", 82);
      } while (0);
    if (fseek(fp, 0, SEEK_SET) != 0)
      do {
        result = 1;
        printf("test at line %d failed\n", 84);
      } while (0);
    if (fscanf(fp, "%as%2c", &sp, c) != 2)
      do {
        result = 1;
        printf("test at line %d failed\n", 86);
      } while (0);
    else {
      if (strcmp(sp, "1.25s") != 0 || memcmp(c, " x", 2) != 0)
        do {
          result = 1;
          printf("test at line %d failed\n", 90);
        } while (0);
      memset(sp, 'x', sizeof "1.25s");
      free(sp);
    }
    if (freopen(fname, "r", stdin) == NULL)
      do {
        result = 1;
        printf("test at line %d failed\n", 96);
      } while (0);
    else {
      if (scanf("%as%2c", &sp, c) != 2)
        do {
          result = 1;
          printf("test at line %d failed\n", 100);
        } while (0);
      else {
        if (strcmp(sp, "1.25s") != 0 || memcmp(c, " x", 2) != 0)
          do {
            result = 1;
            printf("test at line %d failed\n", 104);
          } while (0);
        memset(sp, 'x', sizeof "1.25s");
        free(sp);
      }
    }
    fclose(fp);
  }
  remove(fname);
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
lea    -0x30(%rbp),%rcx
lea    0xdc7(%rip),%rdi
lea    0xdc9(%rip),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     128e <main+0x5e>
jmp    1271 <main+0x41>
movl   $0x1,-0x34(%rbp)
lea    0xda8(%rip),%rdi
mov    $0x17,%esi
call   1090 <printf@plt>
jmp    12f5 <main+0xc5>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd61(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    12ce <main+0x9e>
jp     12ce <main+0x9e>
lea    -0x30(%rbp),%rdi
lea    0xd63(%rip),%rsi
mov    $0x3,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     12f0 <main+0xc0>
jmp    12d3 <main+0xa3>
movl   $0x1,-0x34(%rbp)
lea    0xd46(%rip),%rdi
mov    $0x19,%esi
call   1090 <printf@plt>
jmp    12f0 <main+0xc0>
jmp    12f5 <main+0xc5>
lea    -0x30(%rbp),%rcx
lea    0xd3f(%rip),%rdi
lea    0xd41(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     133d <main+0x10d>
jmp    1320 <main+0xf0>
movl   $0x1,-0x34(%rbp)
lea    0xcf9(%rip),%rdi
mov    $0x1b,%esi
call   1090 <printf@plt>
jmp    13b4 <main+0x184>
mov    -0x18(%rbp),%rdi
lea    0xd07(%rip),%rsi
call   10f0 <strcmp@plt>
cmp    $0x0,%rax
jne    1376 <main+0x146>
lea    -0x30(%rbp),%rdi
lea    0xd0a(%rip),%rsi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     1398 <main+0x168>
jmp    137b <main+0x14b>
movl   $0x1,-0x34(%rbp)
lea    0xc9e(%rip),%rdi
mov    $0x1f,%esi
call   1090 <printf@plt>
jmp    1398 <main+0x168>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xc96(%rip),%rdi
lea    0xc98(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     13fc <main+0x1cc>
jmp    13df <main+0x1af>
movl   $0x1,-0x34(%rbp)
lea    0xc3a(%rip),%rdi
mov    $0x24,%esi
call   1090 <printf@plt>
jmp    145f <main+0x22f>
movsd  -0x28(%rbp),%xmm0
movsd  0xbff(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1438 <main+0x208>
jp     1438 <main+0x208>
lea    -0x30(%rbp),%rdi
lea    0xc48(%rip),%rsi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     145a <main+0x22a>
jmp    143d <main+0x20d>
movl   $0x1,-0x34(%rbp)
lea    0xbdc(%rip),%rdi
mov    $0x26,%esi
call   1090 <printf@plt>
jmp    145a <main+0x22a>
jmp    145f <main+0x22f>
lea    -0x30(%rbp),%rcx
lea    0xbfc(%rip),%rdi
lea    0xbfe(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     14a7 <main+0x277>
jmp    148a <main+0x25a>
movl   $0x1,-0x34(%rbp)
lea    0xb8f(%rip),%rdi
mov    $0x28,%esi
call   1090 <printf@plt>
jmp    151e <main+0x2ee>
mov    -0x10(%rbp),%rdi
lea    0xc26(%rip),%rsi
call   1050 <wcscmp@plt>
cmp    $0x0,%rax
jne    14e0 <main+0x2b0>
lea    -0x30(%rbp),%rdi
lea    0xb9f(%rip),%rsi
mov    $0x3,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     1502 <main+0x2d2>
jmp    14e5 <main+0x2b5>
movl   $0x1,-0x34(%rbp)
lea    0xb34(%rip),%rdi
mov    $0x2c,%esi
call   1090 <printf@plt>
jmp    1502 <main+0x2d2>
mov    -0x10(%rbp),%rdi
mov    $0x78,%esi
mov    $0x14,%edx
call   10b0 <memset@plt>
mov    -0x10(%rbp),%rdi
call   1040 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xb4e(%rip),%rdi
lea    0xb54(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     1566 <main+0x336>
jmp    1549 <main+0x319>
movl   $0x1,-0x34(%rbp)
lea    0xad0(%rip),%rdi
mov    $0x31,%esi
call   1090 <printf@plt>
jmp    15dd <main+0x3ad>
mov    -0x18(%rbp),%rdi
lea    0xb1f(%rip),%rsi
call   10f0 <strcmp@plt>
cmp    $0x0,%rax
jne    159f <main+0x36f>
lea    -0x30(%rbp),%rdi
lea    0xaf0(%rip),%rsi
mov    $0x8,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     15c1 <main+0x391>
jmp    15a4 <main+0x374>
movl   $0x1,-0x34(%rbp)
lea    0xa75(%rip),%rdi
mov    $0x35,%esi
call   1090 <printf@plt>
jmp    15c1 <main+0x391>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x5,%edx
call   10b0 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xaad(%rip),%rdi
lea    0xab3(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1100 <sscanf@plt>
cmp    $0x2,%eax
je     1625 <main+0x3f5>
jmp    1608 <main+0x3d8>
movl   $0x1,-0x34(%rbp)
lea    0xa11(%rip),%rdi
mov    $0x3a,%esi
call   1090 <printf@plt>
jmp    1688 <main+0x458>
movsd  -0x28(%rbp),%xmm0
movsd  0x9de(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1661 <main+0x431>
jp     1661 <main+0x431>
lea    -0x30(%rbp),%rdi
lea    0xa1f(%rip),%rsi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     1683 <main+0x453>
jmp    1666 <main+0x436>
movl   $0x1,-0x34(%rbp)
lea    0x9b3(%rip),%rdi
mov    $0x3c,%esi
call   1090 <printf@plt>
jmp    1683 <main+0x453>
jmp    1688 <main+0x458>
lea    0xa20(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     16b3 <main+0x483>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    16be <main+0x48e>
lea    0x9fc(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
call   1080 <strlen@plt>
movslq %eax,%rcx
mov    %rcx,%rax
add    $0x14,%rax
mov    %rsp,%rdx
mov    %rdx,-0x48(%rbp)
add    $0x23,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x68(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdx
lea    0x9bf(%rip),%rsi
call   1150 <sprintf@plt>
mov    -0x68(%rbp),%rdi
call   1110 <mkstemp@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0xffffffff,-0x54(%rbp)
jne    173e <main+0x50e>
jmp    171c <main+0x4ec>
movl   $0x1,-0x34(%rbp)
lea    0x8fd(%rip),%rdi
mov    $0x4a,%esi
call   1090 <printf@plt>
jmp    1739 <main+0x509>
jmp    173e <main+0x50e>
mov    -0x54(%rbp),%edi
lea    0x989(%rip),%rsi
call   1130 <fdopen@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    1783 <main+0x553>
jmp    1761 <main+0x531>
movl   $0x1,-0x34(%rbp)
lea    0x8b8(%rip),%rdi
mov    $0x4e,%esi
call   1090 <printf@plt>
jmp    177e <main+0x54e>
jmp    19eb <main+0x7bb>
mov    -0x60(%rbp),%rsi
lea    0x8b1(%rip),%rdi
call   10a0 <fputs@plt>
mov    0x2846(%rip),%rcx
cmp    (%rcx),%rax
jne    17ca <main+0x59a>
jmp    17a8 <main+0x578>
movl   $0x1,-0x34(%rbp)
lea    0x871(%rip),%rdi
mov    $0x52,%esi
call   1090 <printf@plt>
jmp    17c5 <main+0x595>
jmp    17ca <main+0x59a>
mov    -0x60(%rbp),%rdi
mov    0x27fb(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1120 <fseek@plt>
cmp    $0x0,%rax
je     180f <main+0x5df>
jmp    17ed <main+0x5bd>
movl   $0x1,-0x34(%rbp)
lea    0x82c(%rip),%rdi
mov    $0x54,%esi
call   1090 <printf@plt>
jmp    180a <main+0x5da>
jmp    180f <main+0x5df>
mov    -0x60(%rbp),%rdi
lea    -0x30(%rbp),%rcx
lea    0x82a(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   10d0 <fscanf@plt>
cmp    $0x2,%eax
je     1857 <main+0x627>
jmp    1835 <main+0x605>
movl   $0x1,-0x34(%rbp)
lea    0x7e4(%rip),%rdi
mov    $0x56,%esi
call   1090 <printf@plt>
jmp    1852 <main+0x622>
jmp    18d3 <main+0x6a3>
mov    -0x18(%rbp),%rdi
lea    0x7ed(%rip),%rsi
call   10f0 <strcmp@plt>
cmp    $0x0,%rax
jne    1890 <main+0x660>
lea    -0x30(%rbp),%rdi
lea    0x7f0(%rip),%rsi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     18b7 <main+0x687>
jmp    1895 <main+0x665>
movl   $0x1,-0x34(%rbp)
lea    0x784(%rip),%rdi
mov    $0x5a,%esi
call   1090 <printf@plt>
jmp    18b2 <main+0x682>
jmp    18b7 <main+0x687>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
mov    -0x68(%rbp),%rdi
mov    0x270a(%rip),%rax
mov    (%rax),%edx
lea    0x7ed(%rip),%rsi
call   10c0 <freopen@plt>
cmp    $0x0,%rax
jne    191d <main+0x6ed>
jmp    18fb <main+0x6cb>
movl   $0x1,-0x34(%rbp)
lea    0x71e(%rip),%rdi
mov    $0x60,%esi
call   1090 <printf@plt>
jmp    1918 <main+0x6e8>
jmp    19e2 <main+0x7b2>
lea    -0x30(%rbp),%rdx
lea    0x720(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1140 <scanf@plt>
cmp    $0x2,%eax
je     1961 <main+0x731>
jmp    193f <main+0x70f>
movl   $0x1,-0x34(%rbp)
lea    0x6da(%rip),%rdi
mov    $0x64,%esi
call   1090 <printf@plt>
jmp    195c <main+0x72c>
jmp    19dd <main+0x7ad>
mov    -0x18(%rbp),%rdi
lea    0x6e3(%rip),%rsi
call   10f0 <strcmp@plt>
cmp    $0x0,%rax
jne    199a <main+0x76a>
lea    -0x30(%rbp),%rdi
lea    0x6e6(%rip),%rsi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
cmp    $0x0,%rax
je     19c1 <main+0x791>
jmp    199f <main+0x76f>
movl   $0x1,-0x34(%rbp)
lea    0x67a(%rip),%rdi
mov    $0x68,%esi
call   1090 <printf@plt>
jmp    19bc <main+0x78c>
jmp    19c1 <main+0x791>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
jmp    19e2 <main+0x7b2>
mov    -0x60(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x68(%rbp),%rdi
call   1060 <remove@plt>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xdd0(%rip),%rdi
lea    0xdd2(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
mov    $0x17,%ebx
cmp    $0x2,%eax
jne    129b <main+0x6b>
movss  -0x4c(%rbp),%xmm0
mov    $0x19,%ebx
ucomiss 0xd87(%rip),%xmm0
jne    129b <main+0x6b>
jp     129b <main+0x6b>
lea    0xd99(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x3,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     17e8 <main+0x5b8>
lea    0xd85(%rip),%rdi
mov    %ebx,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xd89(%rip),%rdi
lea    0xd8b(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
cmp    $0x2,%eax
jne    1335 <main+0x105>
mov    -0x30(%rbp),%rdi
lea    0xd73(%rip),%rsi
call   10f0 <strcmp@plt>
test   %rax,%rax
jne    1300 <main+0xd0>
lea    0xd7f(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     1317 <main+0xe7>
lea    0xd20(%rip),%rdi
mov    $0x1f,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    -0x30(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
jmp    134c <main+0x11c>
lea    0xceb(%rip),%rdi
mov    $0x1b,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xd02(%rip),%rdi
lea    0xd04(%rip),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
mov    $0x24,%ebx
cmp    $0x2,%eax
jne    13a3 <main+0x173>
movsd  -0x40(%rbp),%xmm0
mov    $0x26,%ebx
ucomisd 0xc83(%rip),%xmm0
jne    13a3 <main+0x173>
jp     13a3 <main+0x173>
lea    0xcdc(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     13b7 <main+0x187>
lea    0xc7d(%rip),%rdi
mov    %ebx,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xca8(%rip),%rdi
lea    0xcaa(%rip),%rsi
lea    -0x48(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
cmp    $0x2,%eax
jne    143d <main+0x20d>
mov    -0x48(%rbp),%rdi
lea    0xcf4(%rip),%rsi
call   1050 <wcscmp@plt>
test   %rax,%rax
jne    1408 <main+0x1d8>
lea    0xc76(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x3,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     141f <main+0x1ef>
lea    0xc18(%rip),%rdi
mov    $0x2c,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    -0x48(%rbp),%rdi
mov    $0x78,%esi
mov    $0x14,%edx
call   10b0 <memset@plt>
mov    -0x48(%rbp),%rdi
call   1040 <free@plt>
jmp    1454 <main+0x224>
lea    0xbe3(%rip),%rdi
mov    $0x28,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xc1c(%rip),%rdi
lea    0xc22(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
cmp    $0x2,%eax
jne    14da <main+0x2aa>
mov    -0x30(%rbp),%rdi
lea    0xc0f(%rip),%rsi
call   10f0 <strcmp@plt>
test   %rax,%rax
jne    14a5 <main+0x275>
lea    0xbe9(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x8,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     14bc <main+0x28c>
lea    0xb7b(%rip),%rdi
mov    $0x35,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    -0x30(%rbp),%rdi
mov    $0x78,%esi
mov    $0x5,%edx
call   10b0 <memset@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
jmp    14f1 <main+0x2c1>
lea    0xb46(%rip),%rdi
mov    $0x31,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xb9d(%rip),%rdi
lea    0xba3(%rip),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
mov    $0x3a,%ebx
cmp    $0x2,%eax
jne    1548 <main+0x318>
movsd  -0x40(%rbp),%xmm0
mov    $0x3c,%ebx
ucomisd 0xae6(%rip),%xmm0
jne    1548 <main+0x318>
jp     1548 <main+0x318>
lea    0xb37(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     155c <main+0x32c>
lea    0xad8(%rip),%rdi
mov    %ebx,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xb4c(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1575 <main+0x345>
mov    %rax,%rbx
cmpb   $0x0,(%rax)
jne    157c <main+0x34c>
lea    0xb3a(%rip),%rbx
mov    %rbx,%rdi
call   1080 <strlen@plt>
mov    %rsp,%r13
cltq
mov    %rsp,%r12
add    $0x23,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
lea    0xb1a(%rip),%rsi
mov    %r12,%rdi
mov    %rbx,%rdx
call   1150 <sprintf@plt>
mov    %r12,%rdi
call   1110 <mkstemp@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    15d2 <main+0x3a2>
lea    0xa65(%rip),%rdi
mov    $0x4a,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0xaf8(%rip),%rsi
mov    %ebx,%edi
call   1130 <fdopen@plt>
test   %rax,%rax
je     16d1 <main+0x4a1>
mov    %rax,%r15
lea    0xa4c(%rip),%rdi
mov    %rax,%rsi
call   10a0 <fputs@plt>
mov    0x29de(%rip),%rcx
cmp    (%rcx),%rax
jne    161e <main+0x3ee>
lea    0xa19(%rip),%rdi
mov    $0x52,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    0x29ab(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1120 <fseek@plt>
test   %rax,%rax
je     164d <main+0x41d>
lea    0x9ea(%rip),%rdi
mov    $0x54,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
lea    0x9f4(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
mov    %r15,%rdi
call   10d0 <fscanf@plt>
cmp    $0x2,%eax
jne    16ed <main+0x4bd>
mov    -0x30(%rbp),%rdi
lea    0x9d7(%rip),%rsi
call   10f0 <strcmp@plt>
test   %rax,%rax
jne    169c <main+0x46c>
lea    0x9e3(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     16b3 <main+0x483>
lea    0x984(%rip),%rdi
mov    $0x5a,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    -0x30(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
jmp    1704 <main+0x4d4>
lea    0x94f(%rip),%rdi
mov    $0x4e,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
jmp    17cb <main+0x59b>
lea    0x933(%rip),%rdi
mov    $0x56,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    0x28dd(%rip),%rax
mov    (%rax),%edx
lea    0x9c0(%rip),%rsi
mov    %r12,%rdi
call   10c0 <freopen@plt>
test   %rax,%rax
je     179e <main+0x56e>
lea    0x920(%rip),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1140 <scanf@plt>
cmp    $0x2,%eax
jne    17ac <main+0x57c>
mov    -0x30(%rbp),%rdi
lea    0x90a(%rip),%rsi
call   10f0 <strcmp@plt>
test   %rax,%rax
jne    1769 <main+0x539>
lea    0x916(%rip),%rsi
lea    -0x38(%rbp),%rdi
mov    $0x2,%edx
call   10e0 <memcmp@plt>
test   %rax,%rax
je     1780 <main+0x550>
lea    0x8b7(%rip),%rdi
mov    $0x68,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    -0x30(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   10b0 <memset@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
jmp    17c3 <main+0x593>
lea    0x882(%rip),%rdi
mov    $0x60,%esi
jmp    17b8 <main+0x588>
lea    0x874(%rip),%rdi
mov    $0x64,%esi
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    %r15,%rdi
call   1070 <fclose@plt>
mov    %r12,%rdi
call   1060 <remove@plt>
mov    %r13,%rsp
mov    %r14d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
jmp    12af <main+0x7f>

LLVM IR (-O0):
@.str = [9 x i8] c" 0.25s x\00"
@.str.1 = [6 x i8] c"%e%3c\00"
@.str.2 = [24 x i8] c"test at line %d failed\0A\00"
@.str.3 = [4 x i8] c"s x\00"
@.str.4 = [9 x i8] c" 1.25s x\00"
@.str.5 = [7 x i8] c"%as%2c\00"
@.str.6 = [6 x i8] c"1.25s\00"
@.str.7 = [3 x i8] c" x\00"
@.str.8 = [9 x i8] c" 2.25s x\00"
@.str.9 = [8 x i8] c"%las%2c\00"
@.str.10 = [9 x i8] c" 3.25S x\00"
@.str.11 = [8 x i8] c"%4aS%3c\00"
@.str.12 = [5 x i32] [i32 51, i32 46, i32 50, i32 53, i32 0]
@.str.13 = [4 x i8] c"S x\00"
@.str.14 = [13 x i8] c"4.25[0-9.] x\00"
@.str.15 = [12 x i8] c"%a[0-9.]%8c\00"
@.str.16 = [5 x i8] c"4.25\00"
@.str.17 = [9 x i8] c"[0-9.] x\00"
@.str.18 = [13 x i8] c"5.25[0-9.] x\00"
@.str.19 = [13 x i8] c"%la[0-9.]%2c\00"
@.str.20 = [7 x i8] c"TMPDIR\00"
@.str.21 = [5 x i8] c"/tmp\00"
@.str.22 = [22 x i8] c"%s/tst-scanf14.XXXXXX\00"
@.str.23 = [3 x i8] c"w+\00"
@EOF = global i64 0
@SEEK_SET = global i32 0
@.str.24 = [2 x i8] c"r\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca float
%5 = alloca double
%6 = alloca [8 x i8]
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %7
%13 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%14 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %4, i8* %13)
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %20
16: ; preds = %0
br label %17
17: ; preds = %16
store i32 1, i32* %7
%18 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 23)
br label %19
19: ; preds = %17
br label %33
20: ; preds = %0
%21 = load float, float* %4
%22 = fpext float %21 to double
%23 = fcmp une double %22, 2.500000e-01
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%26 = call i64 @memcmp(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24, %20
br label %29
29: ; preds = %28
store i32 1, i32* %7
%30 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 25)
br label %31
31: ; preds = %29
br label %32
32: ; preds = %31, %24
br label %33
33: ; preds = %32, %19
%34 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%35 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %3, i8* %34)
%36 = icmp ne i32 %35, 2
br i1 %36, label %37, label %41
37: ; preds = %33
br label %38
38: ; preds = %37
store i32 1, i32* %7
%39 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27)
br label %40
40: ; preds = %38
br label %58
41: ; preds = %33
%42 = load i8*, i8** %3
%43 = call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%44 = icmp ne i64 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %41
%46 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%47 = call i64 @memcmp(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %45, %41
br label %50
50: ; preds = %49
store i32 1, i32* %7
%51 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 31)
br label %52
52: ; preds = %50
br label %53
53: ; preds = %52, %45
%54 = load i8*, i8** %3
%55 = call i32 @memset(i8* %54, i8 signext 120, i32 6)
%56 = load i8*, i8** %3
%57 = call i32 @free(i8* %56)
br label %58
58: ; preds = %53, %40
%59 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%60 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), double* %5, i8* %59)
%61 = icmp ne i32 %60, 2
br i1 %61, label %62, label %66
62: ; preds = %58
br label %63
63: ; preds = %62
store i32 1, i32* %7
%64 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 36)
br label %65
65: ; preds = %63
br label %78
66: ; preds = %58
%67 = load double, double* %5
%68 = fcmp une double %67, 2.250000e+00
br i1 %68, label %73, label %69
69: ; preds = %66
%70 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%71 = call i64 @memcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %69, %66
br label %74
74: ; preds = %73
store i32 1, i32* %7
%75 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 38)
br label %76
76: ; preds = %74
br label %77
77: ; preds = %76, %69
br label %78
78: ; preds = %77, %65
%79 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%80 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8** %2, i8* %79)
%81 = icmp ne i32 %80, 2
br i1 %81, label %82, label %86
82: ; preds = %78
br label %83
83: ; preds = %82
store i32 1, i32* %7
%84 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 40)
br label %85
85: ; preds = %83
br label %103
86: ; preds = %78
%87 = load i8*, i8** %2
%88 = call i64 @wcscmp(i8* %87, i8* bitcast ([5 x i32]* @.str.12 to i8*))
%89 = icmp ne i64 %88, 0
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%92 = call i64 @memcmp(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 3)
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %98
94: ; preds = %90, %86
br label %95
95: ; preds = %94
store i32 1, i32* %7
%96 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 44)
br label %97
97: ; preds = %95
br label %98
98: ; preds = %97, %90
%99 = load i8*, i8** %2
%100 = call i32 @memset(i8* %99, i8 signext 120, i32 20)
%101 = load i8*, i8** %2
%102 = call i32 @free(i8* %101)
br label %103
103: ; preds = %98, %85
%104 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%105 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i8** %3, i8* %104)
%106 = icmp ne i32 %105, 2
br i1 %106, label %107, label %111
107: ; preds = %103
br label %108
108: ; preds = %107
store i32 1, i32* %7
%109 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 49)
br label %110
110: ; preds = %108
br label %128
111: ; preds = %103
%112 = load i8*, i8** %3
%113 = call i64 @strcmp(i8* %112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%114 = icmp ne i64 %113, 0
br i1 %114, label %119, label %115
115: ; preds = %111
%116 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%117 = call i64 @memcmp(i8* %116, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 8)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %123
119: ; preds = %115, %111
br label %120
120: ; preds = %119
store i32 1, i32* %7
%121 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 53)
br label %122
122: ; preds = %120
br label %123
123: ; preds = %122, %115
%124 = load i8*, i8** %3
%125 = call i32 @memset(i8* %124, i8 signext 120, i32 5)
%126 = load i8*, i8** %3
%127 = call i32 @free(i8* %126)
br label %128
128: ; preds = %123, %110
%129 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%130 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), double* %5, i8* %129)
%131 = icmp ne i32 %130, 2
br i1 %131, label %132, label %136
132: ; preds = %128
br label %133
133: ; preds = %132
store i32 1, i32* %7
%134 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 58)
br label %135
135: ; preds = %133
br label %148
136: ; preds = %128
%137 = load double, double* %5
%138 = fcmp une double %137, 5.250000e+00
br i1 %138, label %143, label %139
139: ; preds = %136
%140 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%141 = call i64 @memcmp(i8* %140, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %147
143: ; preds = %139, %136
br label %144
144: ; preds = %143
store i32 1, i32* %7
%145 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 60)
br label %146
146: ; preds = %144
br label %147
147: ; preds = %146, %139
br label %148
148: ; preds = %147, %135
%149 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
store i8* %149, i8** %8
%150 = load i8*, i8** %8
%151 = icmp eq i8* %150, null
br i1 %151, label %158, label %152
152: ; preds = %148
%153 = load i8*, i8** %8
%154 = getelementptr inbounds i8, i8* %153, i64 0
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = icmp eq i32 %156, 0
br i1 %157, label %158, label %159
158: ; preds = %152, %148
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8** %8
br label %159
159: ; preds = %158, %152
%160 = load i8*, i8** %8
%161 = call i32 @strlen(i8* %160)
%162 = sext i32 %161 to i64
%163 = add i64 %162, 20
%164 = call i8* @llvm.stacksave()
store i8* %164, i8** %9
%165 = alloca i8, i64 %163
store i64 %163, i64* %10
%166 = load i8*, i8** %8
%167 = call i32 @sprintf(i8* %165, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), i8* %166)
%168 = call i32 @mkstemp(i8* %165)
store i32 %168, i32* %11
%169 = load i32, i32* %11
%170 = icmp eq i32 %169, -1
br i1 %170, label %171, label %176
171: ; preds = %159
br label %172
172: ; preds = %171
store i32 1, i32* %7
%173 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 74)
br label %174
174: ; preds = %172
br label %175
175: ; preds = %174
br label %176
176: ; preds = %175, %159
%177 = load i32, i32* %11
%178 = call i32* @fdopen(i32 %177, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
store i32* %178, i32** %12
%179 = load i32*, i32** %12
%180 = icmp eq i32* %179, null
br i1 %180, label %181, label %186
181: ; preds = %176
br label %182
182: ; preds = %181
store i32 1, i32* %7
%183 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 78)
br label %184
184: ; preds = %182
br label %185
185: ; preds = %184
br label %274
186: ; preds = %176
%187 = load i32*, i32** %12
%188 = call i64 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %187)
%189 = load i64, i64* @EOF
%190 = icmp eq i64 %188, %189
br i1 %190, label %191, label %196
191: ; preds = %186
br label %192
192: ; preds = %191
store i32 1, i32* %7
%193 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 82)
br label %194
194: ; preds = %192
br label %195
195: ; preds = %194
br label %196
196: ; preds = %195, %186
%197 = load i32*, i32** %12
%198 = load i32, i32* @SEEK_SET
%199 = call i64 @fseek(i32* %197, i32 0, i32 %198)
%200 = icmp ne i64 %199, 0
br i1 %200, label %201, label %206
201: ; preds = %196
br label %202
202: ; preds = %201
store i32 1, i32* %7
%203 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 84)
br label %204
204: ; preds = %202
br label %205
205: ; preds = %204
br label %206
206: ; preds = %205, %196
%207 = load i32*, i32** %12
%208 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%209 = call i32 @fscanf(i32* %207, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %3, i8* %208)
%210 = icmp ne i32 %209, 2
br i1 %210, label %211, label %216
211: ; preds = %206
br label %212
212: ; preds = %211
store i32 1, i32* %7
%213 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 86)
br label %214
214: ; preds = %212
br label %215
215: ; preds = %214
br label %234
216: ; preds = %206
%217 = load i8*, i8** %3
%218 = call i64 @strcmp(i8* %217, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%219 = icmp ne i64 %218, 0
br i1 %219, label %224, label %220
220: ; preds = %216
%221 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%222 = call i64 @memcmp(i8* %221, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%223 = icmp ne i64 %222, 0
br i1 %223, label %224, label %229
224: ; preds = %220, %216
br label %225
225: ; preds = %224
store i32 1, i32* %7
%226 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 90)
br label %227
227: ; preds = %225
br label %228
228: ; preds = %227
br label %229
229: ; preds = %228, %220
%230 = load i8*, i8** %3
%231 = call i32 @memset(i8* %230, i8 signext 120, i32 6)
%232 = load i8*, i8** %3
%233 = call i32 @free(i8* %232)
br label %234
234: ; preds = %229, %215
%235 = load i32, i32* @stdin
%236 = call i32* @freopen(i8* %165, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0), i32 %235)
%237 = icmp eq i32* %236, null
br i1 %237, label %238, label %243
238: ; preds = %234
br label %239
239: ; preds = %238
store i32 1, i32* %7
%240 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 96)
br label %241
241: ; preds = %239
br label %242
242: ; preds = %241
br label %271
243: ; preds = %234
%244 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%245 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %3, i8* %244)
%246 = icmp ne i32 %245, 2
br i1 %246, label %247, label %252
247: ; preds = %243
br label %248
248: ; preds = %247
store i32 1, i32* %7
%249 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 100)
br label %250
250: ; preds = %248
br label %251
251: ; preds = %250
br label %270
252: ; preds = %243
%253 = load i8*, i8** %3
%254 = call i64 @strcmp(i8* %253, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%255 = icmp ne i64 %254, 0
br i1 %255, label %260, label %256
256: ; preds = %252
%257 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%258 = call i64 @memcmp(i8* %257, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%259 = icmp ne i64 %258, 0
br i1 %259, label %260, label %265
260: ; preds = %256, %252
br label %261
261: ; preds = %260
store i32 1, i32* %7
%262 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 104)
br label %263
263: ; preds = %261
br label %264
264: ; preds = %263
br label %265
265: ; preds = %264, %256
%266 = load i8*, i8** %3
%267 = call i32 @memset(i8* %266, i8 signext 120, i32 6)
%268 = load i8*, i8** %3
%269 = call i32 @free(i8* %268)
br label %270
270: ; preds = %265, %251
br label %271
271: ; preds = %270, %242
%272 = load i32*, i32** %12
%273 = call i32 @fclose(i32* %272)
br label %274
274: ; preds = %271, %185
%275 = call i32 @remove(i8* %165)
%276 = load i32, i32* %7
store i32 %276, i32* %1
%277 = load i8*, i8** %9
%278 = load i32, i32* %1
ret i32 %278
}

LLVM IR (-O2):
@.str = [9 x i8] c" 0.25s x\00"
@.str.1 = [6 x i8] c"%e%3c\00"
@.str.2 = [24 x i8] c"test at line %d failed\0A\00"
@.str.3 = [4 x i8] c"s x\00"
@.str.4 = [9 x i8] c" 1.25s x\00"
@.str.5 = [7 x i8] c"%as%2c\00"
@.str.6 = [6 x i8] c"1.25s\00"
@.str.7 = [3 x i8] c" x\00"
@.str.8 = [9 x i8] c" 2.25s x\00"
@.str.9 = [8 x i8] c"%las%2c\00"
@.str.10 = [9 x i8] c" 3.25S x\00"
@.str.11 = [8 x i8] c"%4aS%3c\00"
@.str.12 = [5 x i32] [i32 51, i32 46, i32 50, i32 53, i32 0]
@.str.13 = [4 x i8] c"S x\00"
@.str.14 = [13 x i8] c"4.25[0-9.] x\00"
@.str.15 = [12 x i8] c"%a[0-9.]%8c\00"
@.str.16 = [5 x i8] c"4.25\00"
@.str.17 = [9 x i8] c"[0-9.] x\00"
@.str.18 = [13 x i8] c"5.25[0-9.] x\00"
@.str.19 = [13 x i8] c"%la[0-9.]%2c\00"
@.str.20 = [7 x i8] c"TMPDIR\00"
@.str.21 = [5 x i8] c"/tmp\00"
@.str.22 = [22 x i8] c"%s/tst-scanf14.XXXXXX\00"
@.str.23 = [3 x i8] c"w+\00"
@EOF = global i64 0
@SEEK_SET = global i32 0
@.str.24 = [2 x i8] c"r\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca float
%4 = alloca double
%5 = alloca [8 x i8]
%6 = bitcast i8** %1 to i8*
%7 = bitcast i8** %2 to i8*
%8 = bitcast float* %3 to i8*
%9 = bitcast double* %4 to i8*
%10 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%11 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %3, i8* %10)
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %0
%14 = load float, float* %3
%15 = fcmp une float %14, 2.500000e-01
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %16, %13, %0
%20 = phi i32 [ 23, %0 ], [ 25, %13 ], [ 25, %16 ]
%21 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %20)
br label %22
22: ; preds = %19, %16
%23 = phi i32 [ 0, %16 ], [ 1, %19 ]
%24 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %2, i8* %10)
%25 = icmp eq i32 %24, 2
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27)
br label %43
28: ; preds = %22
%29 = load i8*, i8** %2
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%34 = icmp eq i64 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %28, %32
%36 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 31)
br label %37
37: ; preds = %35, %32
%38 = phi i32 [ 1, %35 ], [ %23, %32 ]
%39 = load i8*, i8** %2
%40 = call i32 @memset(i8* %39, i8 signext 120, i32 6)
%41 = load i8*, i8** %2
%42 = call i32 @free(i8* %41)
br label %43
43: ; preds = %37, %26
%44 = phi i32 [ 1, %26 ], [ %38, %37 ]
%45 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), double* %4, i8* %10)
%46 = icmp eq i32 %45, 2
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = load double, double* %4
%49 = fcmp une double %48, 2.250000e+00
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%52 = icmp eq i64 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %50, %47, %43
%54 = phi i32 [ 36, %43 ], [ 38, %47 ], [ 38, %50 ]
%55 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %53, %50
%57 = phi i32 [ %44, %50 ], [ 1, %53 ]
%58 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8** %1, i8* %10)
%59 = icmp eq i32 %58, 2
br i1 %59, label %62, label %60
60: ; preds = %56
%61 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 40)
br label %77
62: ; preds = %56
%63 = load i8*, i8** %1
%64 = call i64 @wcscmp(i8* %63, i8* bitcast ([5 x i32]* @.str.12 to i8*))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 3)
%68 = icmp eq i64 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %62, %66
%70 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 44)
br label %71
71: ; preds = %69, %66
%72 = phi i32 [ 1, %69 ], [ %57, %66 ]
%73 = load i8*, i8** %1
%74 = call i32 @memset(i8* %73, i8 signext 120, i32 20)
%75 = load i8*, i8** %1
%76 = call i32 @free(i8* %75)
br label %77
77: ; preds = %71, %60
%78 = phi i32 [ 1, %60 ], [ %72, %71 ]
%79 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i8** %2, i8* %10)
%80 = icmp eq i32 %79, 2
br i1 %80, label %83, label %81
81: ; preds = %77
%82 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 49)
br label %98
83: ; preds = %77
%84 = load i8*, i8** %2
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %83
%88 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 8)
%89 = icmp eq i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %83, %87
%91 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 53)
br label %92
92: ; preds = %90, %87
%93 = phi i32 [ 1, %90 ], [ %78, %87 ]
%94 = load i8*, i8** %2
%95 = call i32 @memset(i8* %94, i8 signext 120, i32 5)
%96 = load i8*, i8** %2
%97 = call i32 @free(i8* %96)
br label %98
98: ; preds = %92, %81
%99 = phi i32 [ 1, %81 ], [ %93, %92 ]
%100 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), double* %4, i8* %10)
%101 = icmp eq i32 %100, 2
br i1 %101, label %102, label %108
102: ; preds = %98
%103 = load double, double* %4
%104 = fcmp une double %103, 5.250000e+00
br i1 %104, label %108, label %105
105: ; preds = %102
%106 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%107 = icmp eq i64 %106, 0
br i1 %107, label %111, label %108
108: ; preds = %105, %102, %98
%109 = phi i32 [ 58, %98 ], [ 60, %102 ], [ 60, %105 ]
%110 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %109)
br label %111
111: ; preds = %108, %105
%112 = phi i32 [ %99, %105 ], [ 1, %108 ]
%113 = call i8* @getenv(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%114 = icmp eq i8* %113, null
br i1 %114, label %118, label %115
115: ; preds = %111
%116 = load i8, i8* %113
%117 = icmp eq i8 %116, 0
br i1 %117, label %118, label %119
118: ; preds = %115, %111
br label %119
119: ; preds = %118, %115
%120 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), %118 ], [ %113, %115 ]
%121 = call i32 @strlen(i8* %120)
%122 = sext i32 %121 to i64
%123 = add nsw i64 %122, 20
%124 = call i8* @llvm.stacksave()
%125 = alloca i8, i64 %123
%126 = call i32 @sprintf(i8* %125, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.22, i64 0, i64 0), i8* %120)
%127 = call i32 @mkstemp(i8* %125)
%128 = icmp eq i32 %127, -1
br i1 %128, label %129, label %131
129: ; preds = %119
%130 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 74)
br label %131
131: ; preds = %129, %119
%132 = phi i32 [ 1, %129 ], [ %112, %119 ]
%133 = call i32* @fdopen(i32 %127, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%134 = icmp eq i32* %133, null
br i1 %134, label %135, label %137
135: ; preds = %131
%136 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 78)
br label %201
137: ; preds = %131
%138 = call i64 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %133)
%139 = load i64, i64* @EOF
%140 = icmp eq i64 %138, %139
br i1 %140, label %141, label %143
141: ; preds = %137
%142 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 82)
br label %143
143: ; preds = %141, %137
%144 = phi i32 [ 1, %141 ], [ %132, %137 ]
%145 = load i32, i32* @SEEK_SET
%146 = call i64 @fseek(i32* %133, i32 0, i32 %145)
%147 = icmp eq i64 %146, 0
br i1 %147, label %150, label %148
148: ; preds = %143
%149 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 84)
br label %150
150: ; preds = %148, %143
%151 = phi i32 [ 1, %148 ], [ %144, %143 ]
%152 = call i32 @fscanf(i32* %133, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %2, i8* %10)
%153 = icmp eq i32 %152, 2
br i1 %153, label %156, label %154
154: ; preds = %150
%155 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 86)
br label %171
156: ; preds = %150
%157 = load i8*, i8** %2
%158 = call i64 @strcmp(i8* %157, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%159 = icmp eq i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %156
%161 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%162 = icmp eq i64 %161, 0
br i1 %162, label %165, label %163
163: ; preds = %156, %160
%164 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 90)
br label %165
165: ; preds = %163, %160
%166 = phi i32 [ 1, %163 ], [ %151, %160 ]
%167 = load i8*, i8** %2
%168 = call i32 @memset(i8* %167, i8 signext 120, i32 6)
%169 = load i8*, i8** %2
%170 = call i32 @free(i8* %169)
br label %171
171: ; preds = %165, %154
%172 = phi i32 [ 1, %154 ], [ %166, %165 ]
%173 = load i32, i32* @stdin
%174 = call i32* @freopen(i8* %125, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0), i32 %173)
%175 = icmp eq i32* %174, null
br i1 %175, label %176, label %178
176: ; preds = %171
%177 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 96)
br label %198
178: ; preds = %171
%179 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %2, i8* %10)
%180 = icmp eq i32 %179, 2
br i1 %180, label %183, label %181
181: ; preds = %178
%182 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 100)
br label %198
183: ; preds = %178
%184 = load i8*, i8** %2
%185 = call i64 @strcmp(i8* %184, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %190
187: ; preds = %183
%188 = call i64 @memcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%189 = icmp eq i64 %188, 0
br i1 %189, label %192, label %190
190: ; preds = %183, %187
%191 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 104)
br label %192
192: ; preds = %190, %187
%193 = phi i32 [ 1, %190 ], [ %172, %187 ]
%194 = load i8*, i8** %2
%195 = call i32 @memset(i8* %194, i8 signext 120, i32 6)
%196 = load i8*, i8** %2
%197 = call i32 @free(i8* %196)
br label %198
198: ; preds = %181, %192, %176
%199 = phi i32 [ 1, %176 ], [ 1, %181 ], [ %193, %192 ]
%200 = call i32 @fclose(i32* %133)
br label %201
201: ; preds = %198, %135
%202 = phi i32 [ 1, %135 ], [ %199, %198 ]
%203 = call i32 @remove(i8* %125)
ret i32 %202
}