#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 */
struct bitstream_reader {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
char read_bits(struct bitstream_reader *, int);
int /*<<< orphan*/ stderr;
void expect_vorbis(struct bitstream_reader *br) {
  do {
    if (!(read_bits(br, 8) == 'v')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 'v'"
              " failed\n",
              49);
      exit(EXIT_FAILURE);
    }
  } while (0);
  do {
    if (!(read_bits(br, 8) == 'o')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 'o'"
              " failed\n",
              50);
      exit(EXIT_FAILURE);
    }
  } while (0);
  do {
    if (!(read_bits(br, 8) == 'r')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 'r'"
              " failed\n",
              51);
      exit(EXIT_FAILURE);
    }
  } while (0);
  do {
    if (!(read_bits(br, 8) == 'b')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 'b'"
              " failed\n",
              52);
      exit(EXIT_FAILURE);
    }
  } while (0);
  do {
    if (!(read_bits(br, 8) == 'i')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 'i'"
              " failed\n",
              53);
      exit(EXIT_FAILURE);
    }
  } while (0);
  do {
    if (!(read_bits(br, 8) == 's')) {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/"
              "vorbis.c"
              " %d: "
              "read_bits(br, 8) == 's'"
              " failed\n",
              54);
      exit(EXIT_FAILURE);
    }
  } while (0);
}


x86 assembly (clang, -O0):
<expect_vorbis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x76,%eax
je     117e <expect_vorbis+0x4e>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
lea    0xe9a(%rip),%rsi
mov    $0x31,%edx
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    1183 <expect_vorbis+0x53>
jmp    1188 <expect_vorbis+0x58>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x6f,%eax
je     11ca <expect_vorbis+0x9a>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xef8(%rip),%rsi
mov    $0x32,%edx
call   1030 <fprintf@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    11cf <expect_vorbis+0x9f>
jmp    11d4 <expect_vorbis+0xa4>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x72,%eax
je     1216 <expect_vorbis+0xe6>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
lea    0xf56(%rip),%rsi
mov    $0x33,%edx
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    121b <expect_vorbis+0xeb>
jmp    1220 <expect_vorbis+0xf0>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x62,%eax
je     1262 <expect_vorbis+0x132>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0xfb4(%rip),%rsi
mov    $0x34,%edx
call   1030 <fprintf@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    1267 <expect_vorbis+0x137>
jmp    126c <expect_vorbis+0x13c>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x69,%eax
je     12ae <expect_vorbis+0x17e>
mov    0x2d53(%rip),%rax
mov    (%rax),%edi
lea    0x1012(%rip),%rsi
mov    $0x35,%edx
call   1030 <fprintf@plt>
mov    0x2d31(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    12b3 <expect_vorbis+0x183>
jmp    12b8 <expect_vorbis+0x188>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
movsbl %al,%eax
cmp    $0x73,%eax
je     12fa <expect_vorbis+0x1ca>
mov    0x2d07(%rip),%rax
mov    (%rax),%edi
lea    0x1070(%rip),%rsi
mov    $0x36,%edx
call   1030 <fprintf@plt>
mov    0x2ce5(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
jmp    12ff <expect_vorbis+0x1cf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expect_vorbis>:
push   %rbx
mov    %rdi,%rbx
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x76,%al
jne    1199 <expect_vorbis+0x69>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x6f,%al
jne    11b0 <expect_vorbis+0x80>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x72,%al
jne    11c7 <expect_vorbis+0x97>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x62,%al
jne    11de <expect_vorbis+0xae>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x69,%al
jne    11f5 <expect_vorbis+0xc5>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <read_bits@plt>
cmp    $0x73,%al
jne    120c <expect_vorbis+0xdc>
pop    %rbx
ret
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
lea    0xe57(%rip),%rsi
mov    $0x31,%edx
jmp    1221 <expect_vorbis+0xf1>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
lea    0xeea(%rip),%rsi
mov    $0x32,%edx
jmp    1221 <expect_vorbis+0xf1>
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
lea    0xf7d(%rip),%rsi
mov    $0x33,%edx
jmp    1221 <expect_vorbis+0xf1>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
lea    0x1010(%rip),%rsi
mov    $0x34,%edx
jmp    1221 <expect_vorbis+0xf1>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0x10a3(%rip),%rsi
mov    $0x35,%edx
jmp    1221 <expect_vorbis+0xf1>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
lea    0x1136(%rip),%rsi
mov    $0x36,%edx
call   1030 <fprintf@plt>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
%struct.bitstream_reader = type { i32 }
@stderr = global i32 0
@.str = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'v' failed\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'o' failed\0A\00"
@.str.2 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'r' failed\0A\00"
@.str.3 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'b' failed\0A\00"
@.str.4 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'i' failed\0A\00"
@.str.5 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 's' failed\0A\00"
define void @expect_vorbis(%struct.bitstream_reader* %0) {
%2 = alloca %struct.bitstream_reader*
store %struct.bitstream_reader* %0, %struct.bitstream_reader** %2
br label %3
3: ; preds = %1
%4 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%5 = call signext i8 @read_bits(%struct.bitstream_reader* %4, i32 8)
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 118
br i1 %7, label %13, label %8
8: ; preds = %3
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0), i32 49)
%11 = load i32, i32* @EXIT_FAILURE
%12 = call i32 @exit(i32 %11)
unreachable
13: ; preds = %3
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%17 = call signext i8 @read_bits(%struct.bitstream_reader* %16, i32 8)
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 111
br i1 %19, label %25, label %20
20: ; preds = %15
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i32 50)
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @exit(i32 %23)
unreachable
25: ; preds = %15
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%29 = call signext i8 @read_bits(%struct.bitstream_reader* %28, i32 8)
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 114
br i1 %31, label %37, label %32
32: ; preds = %27
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.2, i64 0, i64 0), i32 51)
%35 = load i32, i32* @EXIT_FAILURE
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %27
br label %38
38: ; preds = %37
br label %39
39: ; preds = %38
%40 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%41 = call signext i8 @read_bits(%struct.bitstream_reader* %40, i32 8)
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 98
br i1 %43, label %49, label %44
44: ; preds = %39
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.3, i64 0, i64 0), i32 52)
%47 = load i32, i32* @EXIT_FAILURE
%48 = call i32 @exit(i32 %47)
unreachable
49: ; preds = %39
br label %50
50: ; preds = %49
br label %51
51: ; preds = %50
%52 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%53 = call signext i8 @read_bits(%struct.bitstream_reader* %52, i32 8)
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 105
br i1 %55, label %61, label %56
56: ; preds = %51
%57 = load i32, i32* @stderr
%58 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.4, i64 0, i64 0), i32 53)
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %51
br label %62
62: ; preds = %61
br label %63
63: ; preds = %62
%64 = load %struct.bitstream_reader*, %struct.bitstream_reader** %2
%65 = call signext i8 @read_bits(%struct.bitstream_reader* %64, i32 8)
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 115
br i1 %67, label %73, label %68
68: ; preds = %63
%69 = load i32, i32* @stderr
%70 = call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.5, i64 0, i64 0), i32 54)
%71 = load i32, i32* @EXIT_FAILURE
%72 = call i32 @exit(i32 %71)
unreachable
73: ; preds = %63
br label %74
74: ; preds = %73
ret void
}

LLVM IR (-O2):
%struct.bitstream_reader = type { i32 }
@stderr = global i32 0
@.str = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'v' failed\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'o' failed\0A\00"
@.str.2 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'r' failed\0A\00"
@.str.3 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'b' failed\0A\00"
@.str.4 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 'i' failed\0A\00"
@.str.5 = [170 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hcs64/vorbis_sep/refs/heads/master/vorbis.c %d: read_bits(br, 8) == 's' failed\0A\00"
define void @expect_vorbis(%struct.bitstream_reader* %0) {
%2 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%3 = icmp eq i8 %2, 118
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str, i64 0, i64 0), i32 49)
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %1
%10 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%11 = icmp eq i8 %10, 111
br i1 %11, label %17, label %12
12: ; preds = %9
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.1, i64 0, i64 0), i32 50)
%15 = load i32, i32* @EXIT_FAILURE
%16 = tail call i32 @exit(i32 %15)
unreachable
17: ; preds = %9
%18 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%19 = icmp eq i8 %18, 114
br i1 %19, label %25, label %20
20: ; preds = %17
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.2, i64 0, i64 0), i32 51)
%23 = load i32, i32* @EXIT_FAILURE
%24 = tail call i32 @exit(i32 %23)
unreachable
25: ; preds = %17
%26 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%27 = icmp eq i8 %26, 98
br i1 %27, label %33, label %28
28: ; preds = %25
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.3, i64 0, i64 0), i32 52)
%31 = load i32, i32* @EXIT_FAILURE
%32 = tail call i32 @exit(i32 %31)
unreachable
33: ; preds = %25
%34 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%35 = icmp eq i8 %34, 105
br i1 %35, label %41, label %36
36: ; preds = %33
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.4, i64 0, i64 0), i32 53)
%39 = load i32, i32* @EXIT_FAILURE
%40 = tail call i32 @exit(i32 %39)
unreachable
41: ; preds = %33
%42 = tail call signext i8 @read_bits(%struct.bitstream_reader* %0, i32 8)
%43 = icmp eq i8 %42, 115
br i1 %43, label %49, label %44
44: ; preds = %41
%45 = load i32, i32* @stderr
%46 = tail call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.5, i64 0, i64 0), i32 54)
%47 = load i32, i32* @EXIT_FAILURE
%48 = tail call i32 @exit(i32 %47)
unreachable
49: ; preds = %41
ret void
}