#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*/ assert(int /*<<< orphan*/);
unsigned int fetch_int();
int /*<<< orphan*/ logprintf(char *, int);
int fetch_skip_user_status(void) {
  unsigned x = fetch_int();
  if (!(x == 0x9d05049 || x == 0xedb93949 || x == 0x8c703f)) {
    logprintf("Can not parse at line %d\n", 141);
    assert(0);
    return -1;
  };
  if (x != 0x9d05049) {
    fetch_int();
  }
  return 0;
}


x86 assembly (clang, -O0):
<fetch_skip_user_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <fetch_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x9d05049,-0x8(%rbp)
je     118d <fetch_skip_user_status+0x5d>
cmpl   $0xedb93949,-0x8(%rbp)
je     118d <fetch_skip_user_status+0x5d>
cmpl   $0x8c703f,-0x8(%rbp)
je     118d <fetch_skip_user_status+0x5d>
lea    0xe90(%rip),%rdi
mov    $0x8d,%esi
call   1050 <logprintf@plt>
xor    %edi,%edi
call   1040 <assert@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    11a8 <fetch_skip_user_status+0x78>
cmpl   $0x9d05049,-0x8(%rbp)
je     11a1 <fetch_skip_user_status+0x71>
mov    $0x0,%al
call   1030 <fetch_int@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fetch_skip_user_status>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <fetch_int@plt>
cmp    $0xedb93949,%eax
je     116e <fetch_skip_user_status+0x3e>
cmp    $0x8c703f,%eax
je     116e <fetch_skip_user_status+0x3e>
cmp    $0x9d05049,%eax
je     1177 <fetch_skip_user_status+0x47>
lea    0xeaa(%rip),%rdi
mov    $0x8d,%esi
call   1050 <logprintf@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0xffffffff,%ebx
jmp    1177 <fetch_skip_user_status+0x47>
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <fetch_int@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Can not parse at line %d\0A\00"
define i32 @fetch_skip_user_status() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @fetch_int()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 164646985
br i1 %5, label %15, label %6
6: ; preds = %0
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, -306628279
br i1 %8, label %15, label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 9203775
br i1 %11, label %15, label %12
12: ; preds = %9
%13 = call i32 @logprintf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 141)
%14 = call i32 @assert(i32 0)
store i32 -1, i32* %1
br label %21
15: ; preds = %9, %6, %0
%16 = load i32, i32* %2
%17 = icmp ne i32 %16, 164646985
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 (...) @fetch_int()
br label %20
20: ; preds = %18, %15
store i32 0, i32* %1
br label %21
21: ; preds = %20, %12
%22 = load i32, i32* %1
ret i32 %22
}

LLVM IR (-O2):
@.str = [26 x i8] c"Can not parse at line %d\0A\00"
define i32 @fetch_skip_user_status() {
%1 = tail call i32 (...) @fetch_int()
switch i32 %1, label %2 [
i32 164646985, label %7
i32 9203775, label %5
i32 -306628279, label %5
]
2: ; preds = %0
%3 = tail call i32 @logprintf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 141)
%4 = tail call i32 @assert(i32 0)
br label %7
5: ; preds = %0, %0
%6 = tail call i32 (...) @fetch_int()
br label %7
7: ; preds = %5, %0, %2
%8 = phi i32 [ -1, %2 ], [ 0, %0 ], [ 0, %5 ]
ret i32 %8
}