#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;

/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, int);
int sscanf(char *, char *, ...);
scalar_t__ strcmp(char *, char *);
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);
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
lea    -0x30(%rbp),%rcx
lea    0xe87(%rip),%rdi
lea    0xe89(%rip),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     11ce <main+0x5e>
jmp    11b1 <main+0x41>
movl   $0x1,-0x34(%rbp)
lea    0xe68(%rip),%rdi
mov    $0x17,%esi
call   1050 <printf@plt>
jmp    1235 <main+0xc5>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe21(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    120e <main+0x9e>
jp     120e <main+0x9e>
lea    -0x30(%rbp),%rdi
lea    0xe23(%rip),%rsi
mov    $0x3,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     1230 <main+0xc0>
jmp    1213 <main+0xa3>
movl   $0x1,-0x34(%rbp)
lea    0xe06(%rip),%rdi
mov    $0x19,%esi
call   1050 <printf@plt>
jmp    1230 <main+0xc0>
jmp    1235 <main+0xc5>
lea    -0x30(%rbp),%rcx
lea    0xdff(%rip),%rdi
lea    0xe01(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     127d <main+0x10d>
jmp    1260 <main+0xf0>
movl   $0x1,-0x34(%rbp)
lea    0xdb9(%rip),%rdi
mov    $0x1b,%esi
call   1050 <printf@plt>
jmp    12f4 <main+0x184>
mov    -0x18(%rbp),%rdi
lea    0xdc7(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12b6 <main+0x146>
lea    -0x30(%rbp),%rdi
lea    0xdca(%rip),%rsi
mov    $0x2,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     12d8 <main+0x168>
jmp    12bb <main+0x14b>
movl   $0x1,-0x34(%rbp)
lea    0xd5e(%rip),%rdi
mov    $0x1f,%esi
call   1050 <printf@plt>
jmp    12d8 <main+0x168>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   1060 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xd56(%rip),%rdi
lea    0xd58(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     133c <main+0x1cc>
jmp    131f <main+0x1af>
movl   $0x1,-0x34(%rbp)
lea    0xcfa(%rip),%rdi
mov    $0x24,%esi
call   1050 <printf@plt>
jmp    139f <main+0x22f>
movsd  -0x28(%rbp),%xmm0
movsd  0xcbf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1378 <main+0x208>
jp     1378 <main+0x208>
lea    -0x30(%rbp),%rdi
lea    0xd08(%rip),%rsi
mov    $0x2,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     139a <main+0x22a>
jmp    137d <main+0x20d>
movl   $0x1,-0x34(%rbp)
lea    0xc9c(%rip),%rdi
mov    $0x26,%esi
call   1050 <printf@plt>
jmp    139a <main+0x22a>
jmp    139f <main+0x22f>
lea    -0x30(%rbp),%rcx
lea    0xcbc(%rip),%rdi
lea    0xcbe(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     13e7 <main+0x277>
jmp    13ca <main+0x25a>
movl   $0x1,-0x34(%rbp)
lea    0xc4f(%rip),%rdi
mov    $0x28,%esi
call   1050 <printf@plt>
jmp    145e <main+0x2ee>
mov    -0x10(%rbp),%rdi
lea    0xcbe(%rip),%rsi
call   1040 <wcscmp@plt>
cmp    $0x0,%rax
jne    1420 <main+0x2b0>
lea    -0x30(%rbp),%rdi
lea    0xc5f(%rip),%rsi
mov    $0x3,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     1442 <main+0x2d2>
jmp    1425 <main+0x2b5>
movl   $0x1,-0x34(%rbp)
lea    0xbf4(%rip),%rdi
mov    $0x2c,%esi
call   1050 <printf@plt>
jmp    1442 <main+0x2d2>
mov    -0x10(%rbp),%rdi
mov    $0x78,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xc0e(%rip),%rdi
lea    0xc14(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     14a6 <main+0x336>
jmp    1489 <main+0x319>
movl   $0x1,-0x34(%rbp)
lea    0xb90(%rip),%rdi
mov    $0x31,%esi
call   1050 <printf@plt>
jmp    151d <main+0x3ad>
mov    -0x18(%rbp),%rdi
lea    0xbdf(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    14df <main+0x36f>
lea    -0x30(%rbp),%rdi
lea    0xbb0(%rip),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     1501 <main+0x391>
jmp    14e4 <main+0x374>
movl   $0x1,-0x34(%rbp)
lea    0xb35(%rip),%rdi
mov    $0x35,%esi
call   1050 <printf@plt>
jmp    1501 <main+0x391>
mov    -0x18(%rbp),%rdi
mov    $0x78,%esi
mov    $0x5,%edx
call   1060 <memset@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
lea    -0x30(%rbp),%rcx
lea    0xb6d(%rip),%rdi
lea    0xb73(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
je     1565 <main+0x3f5>
jmp    1548 <main+0x3d8>
movl   $0x1,-0x34(%rbp)
lea    0xad1(%rip),%rdi
mov    $0x3a,%esi
call   1050 <printf@plt>
jmp    15c8 <main+0x458>
movsd  -0x28(%rbp),%xmm0
movsd  0xa9e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15a1 <main+0x431>
jp     15a1 <main+0x431>
lea    -0x30(%rbp),%rdi
lea    0xadf(%rip),%rsi
mov    $0x2,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     15c3 <main+0x453>
jmp    15a6 <main+0x436>
movl   $0x1,-0x34(%rbp)
lea    0xa73(%rip),%rdi
mov    $0x3c,%esi
call   1050 <printf@plt>
jmp    15c3 <main+0x453>
jmp    15c8 <main+0x458>
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
lea    0xe9b(%rip),%rdi
lea    0xe9d(%rip),%rsi
lea    0x24(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    $0x17,%ebx
cmp    $0x2,%eax
jne    11d0 <main+0x60>
movss  0x24(%rsp),%xmm0
mov    $0x19,%ebx
ucomiss 0xe51(%rip),%xmm0
jne    11d0 <main+0x60>
jp     11d0 <main+0x60>
lea    0xe63(%rip),%rsi
mov    %rsp,%rdi
mov    $0x3,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     1497 <main+0x327>
lea    0xe50(%rip),%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
lea    0xe55(%rip),%rdi
lea    0xe57(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jne    126a <main+0xfa>
mov    0x8(%rsp),%rdi
lea    0xe3e(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1234 <main+0xc4>
lea    0xe4a(%rip),%rsi
mov    %rsp,%rdi
mov    $0x2,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     124a <main+0xda>
lea    0xdec(%rip),%rdi
mov    $0x1f,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
mov    0x8(%rsp),%rdi
mov    $0x78,%esi
mov    $0x6,%edx
call   1060 <memset@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
jmp    1280 <main+0x110>
lea    0xdb6(%rip),%rdi
mov    $0x1b,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
lea    0xdce(%rip),%rdi
lea    0xdd0(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    $0x24,%ebp
cmp    $0x2,%eax
jne    12d7 <main+0x167>
movsd  0x10(%rsp),%xmm0
mov    $0x26,%ebp
ucomisd 0xd4e(%rip),%xmm0
jne    12d7 <main+0x167>
jp     12d7 <main+0x167>
lea    0xda7(%rip),%rsi
mov    %rsp,%rdi
mov    $0x2,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     12ea <main+0x17a>
lea    0xd49(%rip),%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
lea    0xd75(%rip),%rdi
lea    0xd77(%rip),%rsi
lea    0x18(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jne    1371 <main+0x201>
mov    0x18(%rsp),%rdi
lea    0xd98(%rip),%rsi
call   1040 <wcscmp@plt>
test   %rax,%rax
jne    133b <main+0x1cb>
lea    0xd42(%rip),%rsi
mov    %rsp,%rdi
mov    $0x3,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     1351 <main+0x1e1>
lea    0xce5(%rip),%rdi
mov    $0x2c,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
mov    0x18(%rsp),%rdi
mov    $0x78,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
jmp    1387 <main+0x217>
lea    0xcaf(%rip),%rdi
mov    $0x28,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
lea    0xce9(%rip),%rdi
lea    0xcef(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jne    140e <main+0x29e>
mov    0x8(%rsp),%rdi
lea    0xcdb(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    13d8 <main+0x268>
lea    0xcb5(%rip),%rsi
mov    %rsp,%rdi
mov    $0x8,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     13ee <main+0x27e>
lea    0xc48(%rip),%rdi
mov    $0x35,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
mov    0x8(%rsp),%rdi
mov    $0x78,%esi
mov    $0x5,%edx
call   1060 <memset@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
jmp    1424 <main+0x2b4>
lea    0xc12(%rip),%rdi
mov    $0x31,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
lea    0xc6a(%rip),%rdi
lea    0xc70(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    $0x3a,%ebp
cmp    $0x2,%eax
jne    147b <main+0x30b>
movsd  0x10(%rsp),%xmm0
mov    $0x3c,%ebp
ucomisd 0xbb2(%rip),%xmm0
jne    147b <main+0x30b>
jp     147b <main+0x30b>
lea    0xc03(%rip),%rsi
mov    %rsp,%rdi
mov    $0x2,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     148e <main+0x31e>
lea    0xba5(%rip),%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret
xor    %ebx,%ebx
jmp    11e3 <main+0x73>

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"
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
store i32 0, i32* %1
store i32 0, i32* %7
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%9 = 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* %8)
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %15
11: ; preds = %0
br label %12
12: ; preds = %11
store i32 1, i32* %7
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 23)
br label %14
14: ; preds = %12
br label %28
15: ; preds = %0
%16 = load float, float* %4
%17 = fpext float %16 to double
%18 = fcmp une double %17, 2.500000e-01
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%21 = call i64 @memcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19, %15
br label %24
24: ; preds = %23
store i32 1, i32* %7
%25 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 25)
br label %26
26: ; preds = %24
br label %27
27: ; preds = %26, %19
br label %28
28: ; preds = %27, %14
%29 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%30 = 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* %29)
%31 = icmp ne i32 %30, 2
br i1 %31, label %32, label %36
32: ; preds = %28
br label %33
33: ; preds = %32
store i32 1, i32* %7
%34 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27)
br label %35
35: ; preds = %33
br label %53
36: ; preds = %28
%37 = load i8*, i8** %3
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%39 = icmp ne i64 %38, 0
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%42 = call i64 @memcmp(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %40, %36
br label %45
45: ; preds = %44
store i32 1, i32* %7
%46 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 31)
br label %47
47: ; preds = %45
br label %48
48: ; preds = %47, %40
%49 = load i8*, i8** %3
%50 = call i32 @memset(i8* %49, i8 signext 120, i32 6)
%51 = load i8*, i8** %3
%52 = call i32 @free(i8* %51)
br label %53
53: ; preds = %48, %35
%54 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%55 = 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* %54)
%56 = icmp ne i32 %55, 2
br i1 %56, label %57, label %61
57: ; preds = %53
br label %58
58: ; preds = %57
store i32 1, i32* %7
%59 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 36)
br label %60
60: ; preds = %58
br label %73
61: ; preds = %53
%62 = load double, double* %5
%63 = fcmp une double %62, 2.250000e+00
br i1 %63, label %68, label %64
64: ; preds = %61
%65 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%66 = call i64 @memcmp(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %64, %61
br label %69
69: ; preds = %68
store i32 1, i32* %7
%70 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 38)
br label %71
71: ; preds = %69
br label %72
72: ; preds = %71, %64
br label %73
73: ; preds = %72, %60
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%75 = 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* %74)
%76 = icmp ne i32 %75, 2
br i1 %76, label %77, label %81
77: ; preds = %73
br label %78
78: ; preds = %77
store i32 1, i32* %7
%79 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 40)
br label %80
80: ; preds = %78
br label %98
81: ; preds = %73
%82 = load i8*, i8** %2
%83 = call i64 @wcscmp(i8* %82, i8* bitcast ([5 x i32]* @.str.12 to i8*))
%84 = icmp ne i64 %83, 0
br i1 %84, label %89, label %85
85: ; preds = %81
%86 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%87 = call i64 @memcmp(i8* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 3)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %93
89: ; preds = %85, %81
br label %90
90: ; preds = %89
store i32 1, i32* %7
%91 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 44)
br label %92
92: ; preds = %90
br label %93
93: ; preds = %92, %85
%94 = load i8*, i8** %2
%95 = call i32 @memset(i8* %94, i8 signext 120, i32 20)
%96 = load i8*, i8** %2
%97 = call i32 @free(i8* %96)
br label %98
98: ; preds = %93, %80
%99 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%100 = 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* %99)
%101 = icmp ne i32 %100, 2
br i1 %101, label %102, label %106
102: ; preds = %98
br label %103
103: ; preds = %102
store i32 1, i32* %7
%104 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 49)
br label %105
105: ; preds = %103
br label %123
106: ; preds = %98
%107 = load i8*, i8** %3
%108 = call i64 @strcmp(i8* %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%109 = icmp ne i64 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %106
%111 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%112 = call i64 @memcmp(i8* %111, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 8)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %118
114: ; preds = %110, %106
br label %115
115: ; preds = %114
store i32 1, i32* %7
%116 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 53)
br label %117
117: ; preds = %115
br label %118
118: ; preds = %117, %110
%119 = load i8*, i8** %3
%120 = call i32 @memset(i8* %119, i8 signext 120, i32 5)
%121 = load i8*, i8** %3
%122 = call i32 @free(i8* %121)
br label %123
123: ; preds = %118, %105
%124 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%125 = 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* %124)
%126 = icmp ne i32 %125, 2
br i1 %126, label %127, label %131
127: ; preds = %123
br label %128
128: ; preds = %127
store i32 1, i32* %7
%129 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 58)
br label %130
130: ; preds = %128
br label %143
131: ; preds = %123
%132 = load double, double* %5
%133 = fcmp une double %132, 5.250000e+00
br i1 %133, label %138, label %134
134: ; preds = %131
%135 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%136 = call i64 @memcmp(i8* %135, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%137 = icmp ne i64 %136, 0
br i1 %137, label %138, label %142
138: ; preds = %134, %131
br label %139
139: ; preds = %138
store i32 1, i32* %7
%140 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 60)
br label %141
141: ; preds = %139
br label %142
142: ; preds = %141, %134
br label %143
143: ; preds = %142, %130
%144 = load i32, i32* %7
ret i32 %144
}

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"
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 ]
ret i32 %112
}