#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 */
char const *pluralform(char const *, int);
const char *pluralformf(const char *lang, float n) {
  if (n == (int)n) {
    return pluralform(lang, (int)n);
  }
  if (!lang)
    return "other";
  unsigned int lc = 0;
  for (; *lang; lang++) {
    lc = (lc << 8) + *lang;
  }
  switch (lc) {
  case 0x736869:
    if ((n >= 0 && n <= 1))
      return "one";
    break;
  case 0x6c6167:
    if (((n >= 0 && n <= 2)) && (n != 0) && (n != 2))
      return "one";
    break;
  case 0x6666:
  case 0x6672:
  case 0x6b6162:
    if (((n >= 0 && n <= 2)) && (n != 2))
      return "one";
    break;
  }
  return "other";
}


x86 assembly (clang, -O0):
<pluralformf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvttss2si -0x14(%rbp),%eax
cvtsi2ss %eax,%xmm1
ucomiss %xmm1,%xmm0
jne    1155 <pluralformf+0x45>
jp     1155 <pluralformf+0x45>
mov    -0x10(%rbp),%rdi
cvttss2si -0x14(%rbp),%esi
call   1030 <pluralform@plt>
mov    %rax,-0x8(%rbp)
jmp    131a <pluralformf+0x20a>
cmpq   $0x0,-0x10(%rbp)
jne    1170 <pluralformf+0x60>
lea    0xea1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    131a <pluralformf+0x20a>
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     11a7 <pluralformf+0x97>
mov    -0x18(%rbp),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1177 <pluralformf+0x67>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x6666,%eax
je     12b6 <pluralformf+0x1a6>
jmp    11bd <pluralformf+0xad>
mov    -0x1c(%rbp),%eax
sub    $0x6672,%eax
je     12b6 <pluralformf+0x1a6>
jmp    11d0 <pluralformf+0xc0>
mov    -0x1c(%rbp),%eax
sub    $0x6b6162,%eax
je     12b6 <pluralformf+0x1a6>
jmp    11e3 <pluralformf+0xd3>
mov    -0x1c(%rbp),%eax
sub    $0x6c6167,%eax
je     1241 <pluralformf+0x131>
jmp    11f6 <pluralformf+0xe6>
mov    -0x1c(%rbp),%eax
sub    $0x736869,%eax
jne    130f <pluralformf+0x1ff>
jmp    1209 <pluralformf+0xf9>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     123c <pluralformf+0x12c>
movss  0xde2(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     123c <pluralformf+0x12c>
lea    0xddb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    131a <pluralformf+0x20a>
jmp    130f <pluralformf+0x1ff>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12b1 <pluralformf+0x1a1>
movss  0xda6(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     12b1 <pluralformf+0x1a1>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1280 <pluralformf+0x170>
jp     1280 <pluralformf+0x170>
jmp    12b1 <pluralformf+0x1a1>
movss  -0x14(%rbp),%xmm0
movss  0xd73(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    12a1 <pluralformf+0x191>
jp     12a1 <pluralformf+0x191>
jmp    12b1 <pluralformf+0x1a1>
lea    0xd66(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    131a <pluralformf+0x20a>
jmp    130f <pluralformf+0x1ff>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     130a <pluralformf+0x1fa>
movss  0xd31(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     130a <pluralformf+0x1fa>
movss  -0x14(%rbp),%xmm0
movss  0xd1a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    12fa <pluralformf+0x1ea>
jp     12fa <pluralformf+0x1ea>
jmp    130a <pluralformf+0x1fa>
lea    0xd0d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    131a <pluralformf+0x20a>
jmp    130f <pluralformf+0x1ff>
lea    0xcf2(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pluralformf>:
cvttps2dq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jne    1127 <pluralformf+0x17>
jp     1127 <pluralformf+0x17>
cvttss2si %xmm0,%esi
jmp    1030 <pluralform@plt>
lea    0xeda(%rip),%rax
test   %rdi,%rdi
je     11e7 <pluralformf+0xd7>
mov    (%rdi),%dl
test   %dl,%dl
je     11e7 <pluralformf+0xd7>
add    $0x1,%rdi
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
mov    %ecx,%esi
shl    $0x8,%esi
movsbl %dl,%ecx
add    %esi,%ecx
movzbl (%rdi),%edx
add    $0x1,%rdi
test   %dl,%dl
jne    1150 <pluralformf+0x40>
cmp    $0x6b6161,%ecx
jle    1197 <pluralformf+0x87>
cmp    $0x6b6162,%ecx
je     11a7 <pluralformf+0x97>
cmp    $0x6c6167,%ecx
je     11bc <pluralformf+0xac>
cmp    $0x736869,%ecx
jne    11e7 <pluralformf+0xd7>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11e7 <pluralformf+0xd7>
movss  0xe6f(%rip),%xmm1
jmp    11db <pluralformf+0xcb>
cmp    $0x6666,%ecx
je     11a7 <pluralformf+0x97>
cmp    $0x6672,%ecx
jne    11e7 <pluralformf+0xd7>
ucomiss 0xe52(%rip),%xmm0
jne    11b2 <pluralformf+0xa2>
jnp    11e7 <pluralformf+0xd7>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jae    11d3 <pluralformf+0xc3>
jmp    11e7 <pluralformf+0xd7>
ucomiss 0xe3d(%rip),%xmm0
jne    11c7 <pluralformf+0xb7>
jnp    11e7 <pluralformf+0xd7>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d1 <pluralformf+0xc1>
jnp    11e7 <pluralformf+0xd7>
jb     11e7 <pluralformf+0xd7>
movss  0xe25(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     11e7 <pluralformf+0xd7>
lea    0xe27(%rip),%rax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"other\00"
@.str.1 = [4 x i8] c"one\00"
define i8* @pluralformf(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca float
%6 = alloca i32
store i8* %0, i8** %4
store float %1, float* %5
%7 = load float, float* %5
%8 = load float, float* %5
%9 = fptosi float %8 to i32
%10 = sitofp i32 %9 to float
%11 = fcmp oeq float %7, %10
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = load float, float* %5
%15 = fptosi float %14 to i32
%16 = call i8* @pluralform(i8* %13, i32 %15)
store i8* %16, i8** %3
br label %72
17: ; preds = %2
%18 = load i8*, i8** %4
%19 = icmp ne i8* %18, null
br i1 %19, label %21, label %20
20: ; preds = %17
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %3
br label %72
21: ; preds = %17
store i32 0, i32* %6
br label %22
22: ; preds = %33, %21
%23 = load i8*, i8** %4
%24 = load i8, i8* %23
%25 = icmp ne i8 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = load i32, i32* %6
%28 = shl i32 %27, 8
%29 = load i8*, i8** %4
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = add i32 %28, %31
store i32 %32, i32* %6
br label %33
33: ; preds = %26
%34 = load i8*, i8** %4
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %4
br label %22
36: ; preds = %22
%37 = load i32, i32* %6
switch i32 %37, label %71 [
i32 7563369, label %38
i32 7102823, label %46
i32 26214, label %60
i32 26226, label %60
i32 7037282, label %60
]
38: ; preds = %36
%39 = load float, float* %5
%40 = fcmp oge float %39, 0.000000e+00
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = load float, float* %5
%43 = fcmp ole float %42, 1.000000e+00
br i1 %43, label %44, label %45
44: ; preds = %41
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %72
45: ; preds = %41, %38
br label %71
46: ; preds = %36
%47 = load float, float* %5
%48 = fcmp oge float %47, 0.000000e+00
br i1 %48, label %49, label %59
49: ; preds = %46
%50 = load float, float* %5
%51 = fcmp ole float %50, 2.000000e+00
br i1 %51, label %52, label %59
52: ; preds = %49
%53 = load float, float* %5
%54 = fcmp une float %53, 0.000000e+00
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = load float, float* %5
%57 = fcmp une float %56, 2.000000e+00
br i1 %57, label %58, label %59
58: ; preds = %55
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %72
59: ; preds = %55, %52, %49, %46
br label %71
60: ; preds = %36, %36, %36
%61 = load float, float* %5
%62 = fcmp oge float %61, 0.000000e+00
br i1 %62, label %63, label %70
63: ; preds = %60
%64 = load float, float* %5
%65 = fcmp ole float %64, 2.000000e+00
br i1 %65, label %66, label %70
66: ; preds = %63
%67 = load float, float* %5
%68 = fcmp une float %67, 2.000000e+00
br i1 %68, label %69, label %70
69: ; preds = %66
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %72
70: ; preds = %66, %63, %60
br label %71
71: ; preds = %36, %70, %59, %45
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %3
br label %72
72: ; preds = %71, %69, %58, %44, %20, %12
%73 = load i8*, i8** %3
ret i8* %73
}

LLVM IR (-O2):
@.str = [6 x i8] c"other\00"
@.str.1 = [4 x i8] c"one\00"
define i8* @pluralformf(i8* %0, float %1) {
%3 = fptosi float %1 to i32
%4 = sitofp i32 %3 to float
%5 = fcmp oeq float %4, %1
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i8* @pluralform(i8* %0, i32 %3)
br label %43
8: ; preds = %2
%9 = icmp eq i8* %0, null
br i1 %9, label %43, label %10
10: ; preds = %8
%11 = load i8, i8* %0
%12 = icmp eq i8 %11, 0
br i1 %12, label %42, label %13
13: ; preds = %10, %13
%14 = phi i8 [ %21, %13 ], [ %11, %10 ]
%15 = phi i32 [ %19, %13 ], [ 0, %10 ]
%16 = phi i8* [ %20, %13 ], [ %0, %10 ]
%17 = shl i32 %15, 8
%18 = sext i8 %14 to i32
%19 = add i32 %17, %18
%20 = getelementptr inbounds i8, i8* %16, i64 1
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 0
br i1 %22, label %23, label %13
23: ; preds = %13
switch i32 %19, label %42 [
i32 7563369, label %24
i32 7102823, label %28
i32 26214, label %36
i32 26226, label %36
i32 7037282, label %36
]
24: ; preds = %23
%25 = fcmp oge float %1, 0.000000e+00
%26 = fcmp ole float %1, 1.000000e+00
%27 = and i1 %25, %26
br i1 %27, label %43, label %42
28: ; preds = %23
%29 = fcmp oge float %1, 0.000000e+00
%30 = fcmp ole float %1, 2.000000e+00
%31 = and i1 %29, %30
%32 = fcmp une float %1, 0.000000e+00
%33 = and i1 %32, %31
%34 = fcmp une float %1, 2.000000e+00
%35 = and i1 %34, %33
br i1 %35, label %43, label %42
36: ; preds = %23, %23, %23
%37 = fcmp oge float %1, 0.000000e+00
%38 = fcmp ole float %1, 2.000000e+00
%39 = and i1 %37, %38
%40 = fcmp une float %1, 2.000000e+00
%41 = and i1 %40, %39
br i1 %41, label %43, label %42
42: ; preds = %10, %36, %28, %24, %23
br label %43
43: ; preds = %42, %24, %28, %36, %8, %6
%44 = phi i8* [ %7, %6 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %8 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %42 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %24 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %28 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %36 ]
ret i8* %44
}