#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 EAGAIN;
int EALREADY;
int EINPROGRESS;
int EINTR;
int EISCONN;
int EWOULDBLOCK;
int errno_is_temporary(int e) {
  if (e == EINTR || e == EWOULDBLOCK || e == EAGAIN || e == EINPROGRESS ||
      e == EALREADY || e == EISCONN) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<errno_is_temporary>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2eaf(%rip),%rcx
cmp    (%rcx),%eax
je     1173 <errno_is_temporary+0x73>
mov    -0x8(%rbp),%eax
mov    0x2ea5(%rip),%rcx
cmp    (%rcx),%eax
je     1173 <errno_is_temporary+0x73>
mov    -0x8(%rbp),%eax
mov    0x2e7b(%rip),%rcx
cmp    (%rcx),%eax
je     1173 <errno_is_temporary+0x73>
mov    -0x8(%rbp),%eax
mov    0x2ea1(%rip),%rcx
cmp    (%rcx),%eax
je     1173 <errno_is_temporary+0x73>
mov    -0x8(%rbp),%eax
mov    0x2e77(%rip),%rcx
cmp    (%rcx),%eax
je     1173 <errno_is_temporary+0x73>
mov    -0x8(%rbp),%eax
mov    0x2e75(%rip),%rcx
cmp    (%rcx),%eax
jne    117f <errno_is_temporary+0x7f>
movl   $0x1,-0x4(%rbp)
jmp    1186 <errno_is_temporary+0x86>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<errno_is_temporary>:
mov    0x2eb9(%rip),%rax
cmp    %edi,(%rax)
sete   %al
mov    0x2eb5(%rip),%rcx
cmp    %edi,(%rcx)
sete   %cl
or     %al,%cl
mov    0x2e8f(%rip),%rax
cmp    %edi,(%rax)
sete   %al
mov    0x2ebb(%rip),%rdx
cmp    %edi,(%rdx)
sete   %dl
or     %al,%dl
or     %cl,%dl
mov    0x2e93(%rip),%rax
cmp    %edi,(%rax)
sete   %al
mov    0x2e97(%rip),%rcx
cmp    %edi,(%rcx)
sete   %cl
or     %al,%cl
or     %dl,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
@EINTR = global i32 0
@EWOULDBLOCK = global i32 0
@EAGAIN = global i32 0
@EINPROGRESS = global i32 0
@EALREADY = global i32 0
@EISCONN = global i32 0
define i32 @errno_is_temporary(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* @EINTR
%6 = icmp eq i32 %4, %5
br i1 %6, label %27, label %7
7: ; preds = %1
%8 = load i32, i32* %3
%9 = load i32, i32* @EWOULDBLOCK
%10 = icmp eq i32 %8, %9
br i1 %10, label %27, label %11
11: ; preds = %7
%12 = load i32, i32* %3
%13 = load i32, i32* @EAGAIN
%14 = icmp eq i32 %12, %13
br i1 %14, label %27, label %15
15: ; preds = %11
%16 = load i32, i32* %3
%17 = load i32, i32* @EINPROGRESS
%18 = icmp eq i32 %16, %17
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = load i32, i32* %3
%21 = load i32, i32* @EALREADY
%22 = icmp eq i32 %20, %21
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = load i32, i32* %3
%25 = load i32, i32* @EISCONN
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23, %19, %15, %11, %7, %1
store i32 1, i32* %2
br label %29
28: ; preds = %23
store i32 0, i32* %2
br label %29
29: ; preds = %28, %27
%30 = load i32, i32* %2
ret i32 %30
}

LLVM IR (-O2):
@EINTR = global i32 0
@EWOULDBLOCK = global i32 0
@EAGAIN = global i32 0
@EINPROGRESS = global i32 0
@EALREADY = global i32 0
@EISCONN = global i32 0
define i32 @errno_is_temporary(i32 %0) {
%2 = load i32, i32* @EINTR
%3 = icmp eq i32 %2, %0
%4 = load i32, i32* @EWOULDBLOCK
%5 = icmp eq i32 %4, %0
%6 = select i1 %3, i1 true, i1 %5
%7 = load i32, i32* @EAGAIN
%8 = icmp eq i32 %7, %0
%9 = select i1 %6, i1 true, i1 %8
%10 = load i32, i32* @EINPROGRESS
%11 = icmp eq i32 %10, %0
%12 = select i1 %9, i1 true, i1 %11
%13 = load i32, i32* @EALREADY
%14 = icmp eq i32 %13, %0
%15 = select i1 %12, i1 true, i1 %14
%16 = load i32, i32* @EISCONN
%17 = icmp eq i32 %16, %0
%18 = select i1 %15, i1 true, i1 %17
%19 = zext i1 %18 to i32
ret i32 %19
}