#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int run_test_speed_modes(int, int, int, int, int);
int run_test_size_modes(int wpconfig_flags, int test_flags, int base_minutes) {
  int res;
  printf("\n   *** 8-bit, mono ***\n");
  res = run_test_speed_modes(wpconfig_flags, test_flags, 8, 1,
                             base_minutes * 5 * 60);
  if (res)
    return res;
  if (test_flags & 0x40) {
    printf("\n   *** 16-bit, mono ***\n");
    res = run_test_speed_modes(wpconfig_flags, test_flags, 16, 1,
                               base_minutes * 5 * 60);
    if (res)
      return res;
  }
  printf("\n   *** 16-bit, stereo ***\n");
  res = run_test_speed_modes(wpconfig_flags, test_flags, 16, 2,
                             base_minutes * 3 * 60);
  if (res)
    return res;
  if ((test_flags & 0x40) && !(test_flags & 0x80)) {
    printf("\n   *** 16-bit (converted to float), stereo ***\n");
    res = run_test_speed_modes(wpconfig_flags, test_flags | 0x8, 16, 2,
                               base_minutes * 3 * 60);
    if (res)
      return res;
  }
  printf("\n   *** 24-bit, 5.1 channels ***\n");
  res = run_test_speed_modes(wpconfig_flags, test_flags, 24, 6,
                             base_minutes * 60);
  if (res)
    return res;
  if (test_flags & 0x40) {
    if (!(test_flags & 0x80)) {
      printf("\n   *** 24-bit (converted to float), 5.1 channels ***\n");
      res = run_test_speed_modes(wpconfig_flags, test_flags | 0x8, 24, 6,
                                 base_minutes * 60);
      if (res)
        return res;
    }
    printf("\n   *** 32-bit integer, 5.1 channels ***\n");
    res = run_test_speed_modes(wpconfig_flags, test_flags, 32, 6,
                               base_minutes * 60);
    if (res)
      return res;
    if (!(test_flags & 0x80)) {
      printf("\n   *** 32-bit float stored as integer (pathological), 5.1 "
             "channels ***\n");
      res = run_test_speed_modes(wpconfig_flags, test_flags | 0x1000, 32, 6,
                                 base_minutes * 60);
      if (res)
        return res;
      if (!(wpconfig_flags & 8)) {
        printf("\n   *** 32-bit integer stored as float (pathological), 5.1 "
               "channels ***\n");
        res = run_test_speed_modes(wpconfig_flags, test_flags | 0x2000, 32, 6,
                                   base_minutes * 60);
        if (res)
          return res;
      }
    }
  }
  if (!(test_flags & 0x80)) {
    printf("\n   *** 32-bit float, 5.1 channels ***\n");
    res = run_test_speed_modes(wpconfig_flags, test_flags | 0x8, 32, 6,
                               base_minutes * 60);
    if (res)
      return res;
  }
  return 0;
}


x86 assembly (clang, -O0):
<run_test_size_modes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
imul   $0x5,-0x10(%rbp),%eax
imul   $0x3c,%eax,%r8d
mov    $0x8,%edx
mov    $0x1,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1172 <run_test_size_modes+0x52>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
mov    -0xc(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     11c7 <run_test_size_modes+0xa7>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
imul   $0x5,-0x10(%rbp),%eax
imul   $0x3c,%eax,%r8d
mov    $0x10,%edx
mov    $0x1,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11c2 <run_test_size_modes+0xa2>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
jmp    11c7 <run_test_size_modes+0xa7>
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
imul   $0x3,-0x10(%rbp),%eax
imul   $0x3c,%eax,%r8d
mov    $0x10,%edx
mov    $0x2,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1208 <run_test_size_modes+0xe8>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
mov    -0xc(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1271 <run_test_size_modes+0x151>
mov    -0xc(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1271 <run_test_size_modes+0x151>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
or     $0x8,%esi
imul   $0x3,-0x10(%rbp),%eax
imul   $0x3c,%eax,%r8d
mov    $0x10,%edx
mov    $0x2,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     126c <run_test_size_modes+0x14c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
jmp    1271 <run_test_size_modes+0x151>
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x18,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12af <run_test_size_modes+0x18f>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
mov    -0xc(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     140a <run_test_size_modes+0x2ea>
mov    -0xc(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1315 <run_test_size_modes+0x1f5>
lea    0xdcc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
or     $0x8,%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x18,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1310 <run_test_size_modes+0x1f0>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
jmp    1315 <run_test_size_modes+0x1f5>
lea    0xdbd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x20,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1353 <run_test_size_modes+0x233>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
mov    -0xc(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1405 <run_test_size_modes+0x2e5>
lea    0xd98(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
or     $0x1000,%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x20,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13a8 <run_test_size_modes+0x288>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
mov    -0x8(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
jne    1400 <run_test_size_modes+0x2e0>
lea    0xd8e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
or     $0x2000,%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x20,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13fb <run_test_size_modes+0x2db>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
jmp    1400 <run_test_size_modes+0x2e0>
jmp    1405 <run_test_size_modes+0x2e5>
jmp    140a <run_test_size_modes+0x2ea>
mov    -0xc(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1461 <run_test_size_modes+0x341>
lea    0xd73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
or     $0x8,%esi
imul   $0x3c,-0x10(%rbp),%r8d
mov    $0x20,%edx
mov    $0x6,%ecx
call   1040 <run_test_speed_modes@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     145c <run_test_size_modes+0x33c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1468 <run_test_size_modes+0x348>
jmp    1461 <run_test_size_modes+0x341>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_test_size_modes>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %edx,%ebp
mov    %esi,%r12d
mov    %edi,%r15d
lea    0xec9(%rip),%rdi
call   1030 <puts@plt>
imul   $0x12c,%ebp,%ebx
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x8,%edx
mov    $0x1,%ecx
mov    %ebx,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
test   $0x40,%r12b
je     1194 <run_test_size_modes+0x74>
lea    0x102b(%rip),%rdi
call   1030 <puts@plt>
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x10,%edx
mov    $0x1,%ecx
mov    %ebx,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
lea    0xe7d(%rip),%rdi
call   1030 <puts@plt>
imul   $0xb4,%ebp,%r14d
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x10,%edx
mov    $0x2,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
test   $0x80,%r12b
jne    11fc <run_test_size_modes+0xdc>
mov    %r12d,%eax
and    $0x40,%eax
je     11fc <run_test_size_modes+0xdc>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
mov    %r12d,%esi
or     $0x8,%esi
mov    %r15d,%edi
mov    $0x10,%edx
mov    $0x2,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
imul   $0x3c,%ebp,%r14d
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x18,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
je     1231 <run_test_size_modes+0x111>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
test   $0x40,%r12b
jne    1272 <run_test_size_modes+0x152>
test   $0x80,%r12b
jne    1348 <run_test_size_modes+0x228>
lea    0xe0c(%rip),%rdi
call   1030 <puts@plt>
or     $0x8,%r12d
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x20,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
jmp    1348 <run_test_size_modes+0x228>
test   $0x80,%r12b
jne    12a3 <run_test_size_modes+0x183>
lea    0xdfc(%rip),%rdi
call   1030 <puts@plt>
mov    %r12d,%esi
or     $0x8,%esi
mov    %r15d,%edi
mov    $0x18,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
lea    0xe07(%rip),%rdi
call   1030 <puts@plt>
mov    %r15d,%edi
mov    %r12d,%esi
mov    $0x20,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
test   $0x80,%r12b
jne    1348 <run_test_size_modes+0x228>
lea    0xdfe(%rip),%rdi
call   1030 <puts@plt>
mov    %r12d,%esi
or     $0x1000,%esi
mov    %r15d,%edi
mov    $0x20,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
test   $0x8,%r15b
jne    1241 <run_test_size_modes+0x121>
lea    0xe0a(%rip),%rdi
call   1030 <puts@plt>
mov    %r12d,%esi
or     $0x2000,%esi
mov    %r15d,%edi
mov    $0x20,%edx
mov    $0x6,%ecx
mov    %r14d,%r8d
call   1040 <run_test_speed_modes@plt>
test   %eax,%eax
jne    1228 <run_test_size_modes+0x108>
jmp    1241 <run_test_size_modes+0x121>
xor    %eax,%eax
jmp    1228 <run_test_size_modes+0x108>

LLVM IR (-O0):
@.str = [25 x i8] c"\0A *** 8-bit, mono ***\0A\00"
@.str.1 = [26 x i8] c"\0A *** 16-bit, mono ***\0A\00"
@.str.2 = [28 x i8] c"\0A *** 16-bit, stereo ***\0A\00"
@.str.3 = [49 x i8] c"\0A *** 16-bit (converted to float), stereo ***\0A\00"
@.str.4 = [34 x i8] c"\0A *** 24-bit, 5.1 channels ***\0A\00"
@.str.5 = [55 x i8] c"\0A *** 24-bit (converted to float), 5.1 channels ***\0A\00"
@.str.6 = [42 x i8] c"\0A *** 32-bit integer, 5.1 channels ***\0A\00"
@.str.7 = [73 x i8] c"\0A *** 32-bit float stored as integer (pathological), 5.1 channels ***\0A\00"
@.str.8 = [73 x i8] c"\0A *** 32-bit integer stored as float (pathological), 5.1 channels ***\0A\00"
@.str.9 = [40 x i8] c"\0A *** 32-bit float, 5.1 channels ***\0A\00"
define i32 @run_test_size_modes(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = mul nsw i32 %12, 5
%14 = mul nsw i32 %13, 60
%15 = call i32 @run_test_speed_modes(i32 %10, i32 %11, i32 8, i32 1, i32 %14)
store i32 %15, i32* %8
%16 = load i32, i32* %8
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = load i32, i32* %8
store i32 %19, i32* %4
br label %167
20: ; preds = %3
%21 = load i32, i32* %6
%22 = and i32 %21, 64
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %37
24: ; preds = %20
%25 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32, i32* %5
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = mul nsw i32 %28, 5
%30 = mul nsw i32 %29, 60
%31 = call i32 @run_test_speed_modes(i32 %26, i32 %27, i32 16, i32 1, i32 %30)
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %24
%35 = load i32, i32* %8
store i32 %35, i32* %4
br label %167
36: ; preds = %24
br label %37
37: ; preds = %36, %20
%38 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%39 = load i32, i32* %5
%40 = load i32, i32* %6
%41 = load i32, i32* %7
%42 = mul nsw i32 %41, 3
%43 = mul nsw i32 %42, 60
%44 = call i32 @run_test_speed_modes(i32 %39, i32 %40, i32 16, i32 2, i32 %43)
store i32 %44, i32* %8
%45 = load i32, i32* %8
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %37
%48 = load i32, i32* %8
store i32 %48, i32* %4
br label %167
49: ; preds = %37
%50 = load i32, i32* %6
%51 = and i32 %50, 64
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %71
53: ; preds = %49
%54 = load i32, i32* %6
%55 = and i32 %54, 128
%56 = icmp ne i32 %55, 0
br i1 %56, label %71, label %57
57: ; preds = %53
%58 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%59 = load i32, i32* %5
%60 = load i32, i32* %6
%61 = or i32 %60, 8
%62 = load i32, i32* %7
%63 = mul nsw i32 %62, 3
%64 = mul nsw i32 %63, 60
%65 = call i32 @run_test_speed_modes(i32 %59, i32 %61, i32 16, i32 2, i32 %64)
store i32 %65, i32* %8
%66 = load i32, i32* %8
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %57
%69 = load i32, i32* %8
store i32 %69, i32* %4
br label %167
70: ; preds = %57
br label %71
71: ; preds = %70, %53, %49
%72 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%73 = load i32, i32* %5
%74 = load i32, i32* %6
%75 = load i32, i32* %7
%76 = mul nsw i32 %75, 60
%77 = call i32 @run_test_speed_modes(i32 %73, i32 %74, i32 24, i32 6, i32 %76)
store i32 %77, i32* %8
%78 = load i32, i32* %8
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %71
%81 = load i32, i32* %8
store i32 %81, i32* %4
br label %167
82: ; preds = %71
%83 = load i32, i32* %6
%84 = and i32 %83, 64
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %149
86: ; preds = %82
%87 = load i32, i32* %6
%88 = and i32 %87, 128
%89 = icmp ne i32 %88, 0
br i1 %89, label %103, label %90
90: ; preds = %86
%91 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%92 = load i32, i32* %5
%93 = load i32, i32* %6
%94 = or i32 %93, 8
%95 = load i32, i32* %7
%96 = mul nsw i32 %95, 60
%97 = call i32 @run_test_speed_modes(i32 %92, i32 %94, i32 24, i32 6, i32 %96)
store i32 %97, i32* %8
%98 = load i32, i32* %8
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %90
%101 = load i32, i32* %8
store i32 %101, i32* %4
br label %167
102: ; preds = %90
br label %103
103: ; preds = %102, %86
%104 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%105 = load i32, i32* %5
%106 = load i32, i32* %6
%107 = load i32, i32* %7
%108 = mul nsw i32 %107, 60
%109 = call i32 @run_test_speed_modes(i32 %105, i32 %106, i32 32, i32 6, i32 %108)
store i32 %109, i32* %8
%110 = load i32, i32* %8
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %114
112: ; preds = %103
%113 = load i32, i32* %8
store i32 %113, i32* %4
br label %167
114: ; preds = %103
%115 = load i32, i32* %6
%116 = and i32 %115, 128
%117 = icmp ne i32 %116, 0
br i1 %117, label %148, label %118
118: ; preds = %114
%119 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0))
%120 = load i32, i32* %5
%121 = load i32, i32* %6
%122 = or i32 %121, 4096
%123 = load i32, i32* %7
%124 = mul nsw i32 %123, 60
%125 = call i32 @run_test_speed_modes(i32 %120, i32 %122, i32 32, i32 6, i32 %124)
store i32 %125, i32* %8
%126 = load i32, i32* %8
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %118
%129 = load i32, i32* %8
store i32 %129, i32* %4
br label %167
130: ; preds = %118
%131 = load i32, i32* %5
%132 = and i32 %131, 8
%133 = icmp ne i32 %132, 0
br i1 %133, label %147, label %134
134: ; preds = %130
%135 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%136 = load i32, i32* %5
%137 = load i32, i32* %6
%138 = or i32 %137, 8192
%139 = load i32, i32* %7
%140 = mul nsw i32 %139, 60
%141 = call i32 @run_test_speed_modes(i32 %136, i32 %138, i32 32, i32 6, i32 %140)
store i32 %141, i32* %8
%142 = load i32, i32* %8
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %134
%145 = load i32, i32* %8
store i32 %145, i32* %4
br label %167
146: ; preds = %134
br label %147
147: ; preds = %146, %130
br label %148
148: ; preds = %147, %114
br label %149
149: ; preds = %148, %82
%150 = load i32, i32* %6
%151 = and i32 %150, 128
%152 = icmp ne i32 %151, 0
br i1 %152, label %166, label %153
153: ; preds = %149
%154 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%155 = load i32, i32* %5
%156 = load i32, i32* %6
%157 = or i32 %156, 8
%158 = load i32, i32* %7
%159 = mul nsw i32 %158, 60
%160 = call i32 @run_test_speed_modes(i32 %155, i32 %157, i32 32, i32 6, i32 %159)
store i32 %160, i32* %8
%161 = load i32, i32* %8
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %165
163: ; preds = %153
%164 = load i32, i32* %8
store i32 %164, i32* %4
br label %167
165: ; preds = %153
br label %166
166: ; preds = %165, %149
store i32 0, i32* %4
br label %167
167: ; preds = %166, %163, %144, %128, %112, %100, %80, %68, %47, %34, %18
%168 = load i32, i32* %4
ret i32 %168
}

LLVM IR (-O2):
@str = [24 x i8] c"\0A *** 8-bit, mono ***\00"
@str.10 = [27 x i8] c"\0A *** 16-bit, stereo ***\00"
@str.11 = [33 x i8] c"\0A *** 24-bit, 5.1 channels ***\00"
@str.12 = [39 x i8] c"\0A *** 32-bit float, 5.1 channels ***\00"
@str.13 = [54 x i8] c"\0A *** 24-bit (converted to float), 5.1 channels ***\00"
@str.14 = [41 x i8] c"\0A *** 32-bit integer, 5.1 channels ***\00"
@str.15 = [72 x i8] c"\0A *** 32-bit float stored as integer (pathological), 5.1 channels ***\00"
@str.16 = [72 x i8] c"\0A *** 32-bit integer stored as float (pathological), 5.1 channels ***\00"
@str.17 = [48 x i8] c"\0A *** 16-bit (converted to float), stereo ***\00"
@str.18 = [25 x i8] c"\0A *** 16-bit, mono ***\00"
define i32 @run_test_size_modes(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%5 = mul i32 %2, 300
%6 = tail call i32 @run_test_speed_modes(i32 %0, i32 %1, i32 8, i32 1, i32 %5)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %67
8: ; preds = %3
%9 = and i32 %1, 64
%10 = icmp eq i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
%13 = tail call i32 @run_test_speed_modes(i32 %0, i32 %1, i32 16, i32 1, i32 %5)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %67
15: ; preds = %11, %8
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.10, i64 0, i64 0))
%17 = mul i32 %2, 180
%18 = tail call i32 @run_test_speed_modes(i32 %0, i32 %1, i32 16, i32 2, i32 %17)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %67
20: ; preds = %15
%21 = xor i1 %10, true
%22 = and i32 %1, 128
%23 = icmp eq i32 %22, 0
%24 = and i1 %23, %21
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.17, i64 0, i64 0))
%27 = or i32 %1, 8
%28 = tail call i32 @run_test_speed_modes(i32 %0, i32 %27, i32 16, i32 2, i32 %17)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %67
30: ; preds = %25, %20
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.11, i64 0, i64 0))
%32 = mul nsw i32 %2, 60
%33 = tail call i32 @run_test_speed_modes(i32 %0, i32 %1, i32 24, i32 6, i32 %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %67
35: ; preds = %30
br i1 %10, label %60, label %36
36: ; preds = %35
br i1 %23, label %37, label %42
37: ; preds = %36
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.13, i64 0, i64 0))
%39 = or i32 %1, 8
%40 = tail call i32 @run_test_speed_modes(i32 %0, i32 %39, i32 24, i32 6, i32 %32)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %67
42: ; preds = %37, %36
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.14, i64 0, i64 0))
%44 = tail call i32 @run_test_speed_modes(i32 %0, i32 %1, i32 32, i32 6, i32 %32)
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %67
46: ; preds = %42
br i1 %23, label %47, label %66
47: ; preds = %46
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.15, i64 0, i64 0))
%49 = or i32 %1, 4096
%50 = tail call i32 @run_test_speed_modes(i32 %0, i32 %49, i32 32, i32 6, i32 %32)
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %67
52: ; preds = %47
%53 = and i32 %0, 8
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %52
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.16, i64 0, i64 0))
%57 = or i32 %1, 8192
%58 = tail call i32 @run_test_speed_modes(i32 %0, i32 %57, i32 32, i32 6, i32 %32)
%59 = icmp eq i32 %58, 0
br i1 %59, label %61, label %67
60: ; preds = %35
br i1 %23, label %61, label %66
61: ; preds = %52, %55, %60
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.12, i64 0, i64 0))
%63 = or i32 %1, 8
%64 = tail call i32 @run_test_speed_modes(i32 %0, i32 %63, i32 32, i32 6, i32 %32)
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %46, %61, %60
br label %67
67: ; preds = %61, %55, %47, %42, %37, %30, %25, %15, %11, %3, %66
%68 = phi i32 [ 0, %66 ], [ %6, %3 ], [ %13, %11 ], [ %18, %15 ], [ %28, %25 ], [ %33, %30 ], [ %40, %37 ], [ %44, %42 ], [ %50, %47 ], [ %58, %55 ], [ %64, %61 ]
ret i32 %68
}