#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 */
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ printf(char *, int);
int sscanf(char *, char *, ...);
int main(void) {
  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", 29);
    } while (0);
  else if (f != 0.25 || memcmp(c, "s x", 3) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 31);
    } while (0);
  if (sscanf(" 1.25s x", "%as%2c", &f, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 33);
    } while (0);
  else if (f != 1.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 35);
    } while (0);
  if (sscanf(" 2.25s x", "%las%2c", &d, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 37);
    } while (0);
  else if (d != 2.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 39);
    } while (0);
  if (sscanf(" 3.25S x", "%4aS%2c", &f, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 41);
    } while (0);
  else if (f != 3.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 43);
    } while (0);
  if (sscanf(" 4.25[0-9.] x", "%a[0-9.]%2c", &f, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 45);
    } while (0);
  else if (f != 4.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 47);
    } while (0);
  if (sscanf(" 5.25[0-9.] x", "%la[0-9.]%2c", &d, c) != 2)
    do {
      result = 1;
      printf("test at line %d failed\n", 49);
    } while (0);
  else if (d != 5.25 || memcmp(c, " x", 2) != 0)
    do {
      result = 1;
      printf("test at line %d failed\n", 51);
    } while (0);
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0x18(%rbp),%rcx
lea    0xedf(%rip),%rdi
lea    0xee1(%rip),%rsi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     118e <main+0x5e>
jmp    1171 <main+0x41>
movl   $0x1,-0x1c(%rbp)
lea    0xec0(%rip),%rdi
mov    $0x1d,%esi
call   1030 <printf@plt>
jmp    11f5 <main+0xc5>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe61(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ce <main+0x9e>
jp     11ce <main+0x9e>
lea    -0x18(%rbp),%rdi
lea    0xe7b(%rip),%rsi
mov    $0x3,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     11f0 <main+0xc0>
jmp    11d3 <main+0xa3>
movl   $0x1,-0x1c(%rbp)
lea    0xe5e(%rip),%rdi
mov    $0x1f,%esi
call   1030 <printf@plt>
jmp    11f0 <main+0xc0>
jmp    11f5 <main+0xc5>
lea    -0x18(%rbp),%rcx
lea    0xe57(%rip),%rdi
lea    0xe59(%rip),%rsi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     123d <main+0x10d>
jmp    1220 <main+0xf0>
movl   $0x1,-0x1c(%rbp)
lea    0xe11(%rip),%rdi
mov    $0x21,%esi
call   1030 <printf@plt>
jmp    12a4 <main+0x174>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdba(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    127d <main+0x14d>
jp     127d <main+0x14d>
lea    -0x18(%rbp),%rdi
lea    0xe15(%rip),%rsi
mov    $0x2,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     129f <main+0x16f>
jmp    1282 <main+0x152>
movl   $0x1,-0x1c(%rbp)
lea    0xdaf(%rip),%rdi
mov    $0x23,%esi
call   1030 <printf@plt>
jmp    129f <main+0x16f>
jmp    12a4 <main+0x174>
lea    -0x18(%rbp),%rcx
lea    0xdb8(%rip),%rdi
lea    0xdba(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     12ec <main+0x1bc>
jmp    12cf <main+0x19f>
movl   $0x1,-0x1c(%rbp)
lea    0xd62(%rip),%rdi
mov    $0x25,%esi
call   1030 <printf@plt>
jmp    134f <main+0x21f>
movsd  -0x10(%rbp),%xmm0
movsd  0xd17(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1328 <main+0x1f8>
jp     1328 <main+0x1f8>
lea    -0x18(%rbp),%rdi
lea    0xd6a(%rip),%rsi
mov    $0x2,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     134a <main+0x21a>
jmp    132d <main+0x1fd>
movl   $0x1,-0x1c(%rbp)
lea    0xd04(%rip),%rdi
mov    $0x27,%esi
call   1030 <printf@plt>
jmp    134a <main+0x21a>
jmp    134f <main+0x21f>
lea    -0x18(%rbp),%rcx
lea    0xd1e(%rip),%rdi
lea    0xd20(%rip),%rsi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     1397 <main+0x267>
jmp    137a <main+0x24a>
movl   $0x1,-0x1c(%rbp)
lea    0xcb7(%rip),%rdi
mov    $0x29,%esi
call   1030 <printf@plt>
jmp    13fe <main+0x2ce>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc70(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    13d7 <main+0x2a7>
jp     13d7 <main+0x2a7>
lea    -0x18(%rbp),%rdi
lea    0xcbb(%rip),%rsi
mov    $0x2,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     13f9 <main+0x2c9>
jmp    13dc <main+0x2ac>
movl   $0x1,-0x1c(%rbp)
lea    0xc55(%rip),%rdi
mov    $0x2b,%esi
call   1030 <printf@plt>
jmp    13f9 <main+0x2c9>
jmp    13fe <main+0x2ce>
lea    -0x18(%rbp),%rcx
lea    0xc80(%rip),%rdi
lea    0xc87(%rip),%rsi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     1446 <main+0x316>
jmp    1429 <main+0x2f9>
movl   $0x1,-0x1c(%rbp)
lea    0xc08(%rip),%rdi
mov    $0x2d,%esi
call   1030 <printf@plt>
jmp    14ad <main+0x37d>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbc9(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1486 <main+0x356>
jp     1486 <main+0x356>
lea    -0x18(%rbp),%rdi
lea    0xc0c(%rip),%rsi
mov    $0x2,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     14a8 <main+0x378>
jmp    148b <main+0x35b>
movl   $0x1,-0x1c(%rbp)
lea    0xba6(%rip),%rdi
mov    $0x2f,%esi
call   1030 <printf@plt>
jmp    14a8 <main+0x378>
jmp    14ad <main+0x37d>
lea    -0x18(%rbp),%rcx
lea    0xbeb(%rip),%rdi
lea    0xbf2(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1050 <sscanf@plt>
cmp    $0x2,%eax
je     14f5 <main+0x3c5>
jmp    14d8 <main+0x3a8>
movl   $0x1,-0x1c(%rbp)
lea    0xb59(%rip),%rdi
mov    $0x31,%esi
call   1030 <printf@plt>
jmp    1558 <main+0x428>
movsd  -0x10(%rbp),%xmm0
movsd  0xb26(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1531 <main+0x401>
jp     1531 <main+0x401>
lea    -0x18(%rbp),%rdi
lea    0xb61(%rip),%rsi
mov    $0x2,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
je     1553 <main+0x423>
jmp    1536 <main+0x406>
movl   $0x1,-0x1c(%rbp)
lea    0xafb(%rip),%rdi
mov    $0x33,%esi
call   1030 <printf@plt>
jmp    1553 <main+0x423>
jmp    1558 <main+0x428>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
lea    0xee3(%rip),%rdi
lea    0xee5(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x1d,%ebx
cmp    $0x2,%eax
jne    1194 <main+0x64>
movss  0x4(%rsp),%xmm0
mov    $0x1f,%ebx
ucomiss 0xe8f(%rip),%xmm0
jne    1194 <main+0x64>
jp     1194 <main+0x64>
lea    0xea9(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x3,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     13d3 <main+0x2a3>
lea    0xe94(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xe99(%rip),%rdi
lea    0xe9b(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x21,%ebp
cmp    $0x2,%eax
jne    1201 <main+0xd1>
movss  0x4(%rsp),%xmm0
mov    $0x23,%ebp
ucomiss 0xe22(%rip),%xmm0
jne    1201 <main+0xd1>
jp     1201 <main+0xd1>
lea    0xe81(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x2,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     1214 <main+0xe4>
lea    0xe27(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xe3c(%rip),%rdi
lea    0xe3e(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x25,%ebp
cmp    $0x2,%eax
jne    126f <main+0x13f>
movsd  0x10(%rsp),%xmm0
mov    $0x27,%ebp
ucomisd 0xdc0(%rip),%xmm0
jne    126f <main+0x13f>
jp     126f <main+0x13f>
lea    0xe13(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x2,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     1282 <main+0x152>
lea    0xdb9(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xddf(%rip),%rdi
lea    0xde1(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x29,%ebp
cmp    $0x2,%eax
jne    12dc <main+0x1ac>
movss  0x4(%rsp),%xmm0
mov    $0x2b,%ebp
ucomiss 0xd4b(%rip),%xmm0
jne    12dc <main+0x1ac>
jp     12dc <main+0x1ac>
lea    0xda6(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x2,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     12ef <main+0x1bf>
lea    0xd4c(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xd83(%rip),%rdi
lea    0xd8a(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x2d,%ebp
cmp    $0x2,%eax
jne    1349 <main+0x219>
movss  0x4(%rsp),%xmm0
mov    $0x2f,%ebp
ucomiss 0xce2(%rip),%xmm0
jne    1349 <main+0x219>
jp     1349 <main+0x219>
lea    0xd39(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x2,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     135c <main+0x22c>
lea    0xcdf(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
lea    0xd30(%rip),%rdi
lea    0xd37(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1050 <sscanf@plt>
mov    $0x31,%ebp
cmp    $0x2,%eax
jne    13b7 <main+0x287>
movsd  0x10(%rsp),%xmm0
mov    $0x33,%ebp
ucomisd 0xc80(%rip),%xmm0
jne    13b7 <main+0x287>
jp     13b7 <main+0x287>
lea    0xccb(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    $0x2,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     13ca <main+0x29a>
lea    0xc71(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret
xor    %ebx,%ebx
jmp    11a7 <main+0x77>

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

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 = [3 x i8] c" x\00"
@.str.7 = [9 x i8] c" 2.25s x\00"
@.str.8 = [8 x i8] c"%las%2c\00"
@.str.9 = [9 x i8] c" 3.25S x\00"
@.str.10 = [8 x i8] c"%4aS%2c\00"
@.str.11 = [14 x i8] c" 4.25[0-9.] x\00"
@.str.12 = [12 x i8] c"%a[0-9.]%2c\00"
@.str.13 = [14 x i8] c" 5.25[0-9.] x\00"
@.str.14 = [13 x i8] c"%la[0-9.]%2c\00"
define i32 @main() {
%1 = alloca float
%2 = alloca double
%3 = alloca [8 x i8]
%4 = bitcast float* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%7 = 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* %1, i8* %6)
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load float, float* %1
%11 = fcmp une float %10, 2.500000e-01
br i1 %11, label %15, label %12
12: ; preds = %9
%13 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %12, %9, %0
%16 = phi i32 [ 29, %0 ], [ 31, %9 ], [ 31, %12 ]
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %15, %12
%19 = phi i32 [ 0, %12 ], [ 1, %15 ]
%20 = 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), float* %1, i8* %6)
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = load float, float* %1
%24 = fcmp une float %23, 1.250000e+00
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%27 = icmp eq i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %25, %22, %18
%29 = phi i32 [ 33, %18 ], [ 35, %22 ], [ 35, %25 ]
%30 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %28, %25
%32 = phi i32 [ %19, %25 ], [ 1, %28 ]
%33 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), double* %2, i8* %6)
%34 = icmp eq i32 %33, 2
br i1 %34, label %35, label %41
35: ; preds = %31
%36 = load double, double* %2
%37 = fcmp une double %36, 2.250000e+00
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%40 = icmp eq i64 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %38, %35, %31
%42 = phi i32 [ 37, %31 ], [ 39, %35 ], [ 39, %38 ]
%43 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %42)
br label %44
44: ; preds = %41, %38
%45 = phi i32 [ %32, %38 ], [ 1, %41 ]
%46 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), float* %1, i8* %6)
%47 = icmp eq i32 %46, 2
br i1 %47, label %48, label %54
48: ; preds = %44
%49 = load float, float* %1
%50 = fcmp une float %49, 3.250000e+00
br i1 %50, label %54, label %51
51: ; preds = %48
%52 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%53 = icmp eq i64 %52, 0
br i1 %53, label %57, label %54
54: ; preds = %51, %48, %44
%55 = phi i32 [ 41, %44 ], [ 43, %48 ], [ 43, %51 ]
%56 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %54, %51
%58 = phi i32 [ %45, %51 ], [ 1, %54 ]
%59 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), float* %1, i8* %6)
%60 = icmp eq i32 %59, 2
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load float, float* %1
%63 = fcmp une float %62, 4.250000e+00
br i1 %63, label %67, label %64
64: ; preds = %61
%65 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%66 = icmp eq i64 %65, 0
br i1 %66, label %70, label %67
67: ; preds = %64, %61, %57
%68 = phi i32 [ 45, %57 ], [ 47, %61 ], [ 47, %64 ]
%69 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %67, %64
%71 = phi i32 [ %58, %64 ], [ 1, %67 ]
%72 = call i32 (i8*, i8*, ...) @sscanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), double* %2, i8* %6)
%73 = icmp eq i32 %72, 2
br i1 %73, label %74, label %80
74: ; preds = %70
%75 = load double, double* %2
%76 = fcmp une double %75, 5.250000e+00
br i1 %76, label %80, label %77
77: ; preds = %74
%78 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%79 = icmp eq i64 %78, 0
br i1 %79, label %83, label %80
80: ; preds = %77, %74, %70
%81 = phi i32 [ 49, %70 ], [ 51, %74 ], [ 51, %77 ]
%82 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %80, %77
%84 = phi i32 [ %71, %77 ], [ 1, %80 ]
ret i32 %84
}