#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 termios {
  int c_lflag;
  int /*<<< orphan*/ c_oflag;
  int /*<<< orphan*/ c_iflag;
};

/* Variables and functions */
int ECHO;
int ECHONL;
int ICANON;
int /*<<< orphan*/ ICRNL;
int /*<<< orphan*/ IGNCR;
int /*<<< orphan*/ OCRNL;
int /*<<< orphan*/ ONLCR;
int /*<<< orphan*/ TCSANOW;
scalar_t__ errno;
scalar_t__ isinListX(char const *, char *, char *);
scalar_t__ tcgetattr(int, struct termios *);
int /*<<< orphan*/ tcsetattr(int, int /*<<< orphan*/, struct termios *);
int Stty(int fd, const char *mode) {
  struct termios ta;
  errno = 0;
  if (tcgetattr(fd, &ta) != 0) {
    return -2;
  }
  if (isinListX(mode, "-echo", "c"))
    ta.c_lflag &= ~(ECHO | ECHONL);
  if (isinListX(mode, "echo", "c"))
    ta.c_lflag |= ECHO;
  if (isinListX(mode, "-icanon", "c"))
    ta.c_lflag &= ~ICANON;
  if (isinListX(mode, "icanon", "c"))
    ta.c_lflag |= ICANON;
  if (isinListX(mode, "echonl", "c"))
    ta.c_lflag |= ECHONL;
  if (isinListX(mode, "icrnl", "c"))
    ta.c_iflag |= ICRNL;
  if (isinListX(mode, "igncr", "c"))
    ta.c_iflag |= IGNCR;
  if (isinListX(mode, "onlcr", "c"))
    ta.c_oflag |= ONLCR;
  if (isinListX(mode, "ocrnl", "c"))
    ta.c_oflag |= OCRNL;
  tcsetattr(fd, TCSANOW, &ta);
  return 0;
}


x86 assembly (clang, -O0):
<Stty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e72(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%edi
lea    -0x20(%rbp),%rsi
call   1030 <tcgetattr@plt>
cmp    $0x0,%rax
je     116f <Stty+0x3f>
movl   $0xfffffffe,-0x4(%rbp)
jmp    134a <Stty+0x21a>
mov    -0x10(%rbp),%rdi
lea    0xe86(%rip),%rsi
lea    0xe85(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     11ab <Stty+0x7b>
mov    0x2e31(%rip),%rax
mov    (%rax),%eax
mov    0x2e10(%rip),%rcx
or     (%rcx),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe4b(%rip),%rsi
lea    0xe49(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     11db <Stty+0xab>
mov    0x2df5(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe22(%rip),%rsi
lea    0xe19(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     120e <Stty+0xde>
mov    0x2d9d(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdf0(%rip),%rsi
lea    0xde6(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     123e <Stty+0x10e>
mov    0x2d6a(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdc7(%rip),%rsi
lea    0xdb6(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     126e <Stty+0x13e>
mov    0x2d4a(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd9e(%rip),%rsi
lea    0xd86(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     129e <Stty+0x16e>
mov    0x2d4a(%rip),%rax
mov    (%rax),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd74(%rip),%rsi
lea    0xd56(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     12ce <Stty+0x19e>
mov    0x2d12(%rip),%rax
mov    (%rax),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd4a(%rip),%rsi
lea    0xd26(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     12fe <Stty+0x1ce>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd20(%rip),%rsi
lea    0xcf6(%rip),%rdx
call   1050 <isinListX@plt>
cmp    $0x0,%rax
je     132e <Stty+0x1fe>
mov    0x2cca(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2c98(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   1040 <tcsetattr@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Stty>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x2e76(%rip),%rax
movq   $0x0,(%rax)
lea    0x8(%rsp),%rsi
call   1030 <tcgetattr@plt>
mov    %rax,%rcx
mov    $0xfffffffe,%eax
test   %rcx,%rcx
jne    12f0 <Stty+0x1c0>
lea    0xe95(%rip),%rsi
lea    0xe94(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     1197 <Stty+0x67>
mov    0x2e42(%rip),%rax
mov    0x2e23(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
not    %ecx
and    %ecx,0x8(%rsp)
lea    0xe63(%rip),%rsi
lea    0xe61(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     11bf <Stty+0x8f>
mov    0x2e0f(%rip),%rax
mov    (%rax),%eax
or     %eax,0x8(%rsp)
lea    0xe42(%rip),%rsi
lea    0xe39(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     11e9 <Stty+0xb9>
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
not    %eax
and    %eax,0x8(%rsp)
lea    0xe19(%rip),%rsi
lea    0xe0f(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     1211 <Stty+0xe1>
mov    0x2d95(%rip),%rax
mov    (%rax),%eax
or     %eax,0x8(%rsp)
lea    0xdf8(%rip),%rsi
lea    0xde7(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     1239 <Stty+0x109>
mov    0x2d7d(%rip),%rax
mov    (%rax),%eax
or     %eax,0x8(%rsp)
lea    0xdd7(%rip),%rsi
lea    0xdbf(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     1261 <Stty+0x131>
mov    0x2d85(%rip),%rax
mov    (%rax),%eax
or     %eax,0x10(%rsp)
lea    0xdb5(%rip),%rsi
lea    0xd97(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     1289 <Stty+0x159>
mov    0x2d55(%rip),%rax
mov    (%rax),%eax
or     %eax,0x10(%rsp)
lea    0xd93(%rip),%rsi
lea    0xd6f(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     12b1 <Stty+0x181>
mov    0x2cfd(%rip),%rax
mov    (%rax),%eax
or     %eax,0xc(%rsp)
lea    0xd71(%rip),%rsi
lea    0xd47(%rip),%rdx
mov    %rbx,%rdi
call   1050 <isinListX@plt>
test   %rax,%rax
je     12d9 <Stty+0x1a9>
mov    0x2d1d(%rip),%rax
mov    (%rax),%eax
or     %eax,0xc(%rsp)
mov    0x2cf0(%rip),%rax
mov    (%rax),%esi
lea    0x8(%rsp),%rdx
mov    %ebp,%edi
call   1040 <tcsetattr@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.termios = type { i32, i32, i32 }
@errno = global i64 0
@.str = [6 x i8] c"-echo\00"
@.str.1 = [2 x i8] c"c\00"
@ECHO = global i32 0
@ECHONL = global i32 0
@.str.2 = [5 x i8] c"echo\00"
@.str.3 = [8 x i8] c"-icanon\00"
@ICANON = global i32 0
@.str.4 = [7 x i8] c"icanon\00"
@.str.5 = [7 x i8] c"echonl\00"
@.str.6 = [6 x i8] c"icrnl\00"
@ICRNL = global i32 0
@.str.7 = [6 x i8] c"igncr\00"
@IGNCR = global i32 0
@.str.8 = [6 x i8] c"onlcr\00"
@ONLCR = global i32 0
@.str.9 = [6 x i8] c"ocrnl\00"
@OCRNL = global i32 0
@TCSANOW = global i32 0
define i32 @Stty(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca %struct.termios
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 0, i64* @errno
%7 = load i32, i32* %4
%8 = call i64 @tcgetattr(i32 %7, %struct.termios* %6)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 -2, i32* %3
br label %100
11: ; preds = %2
%12 = load i8*, i8** %5
%13 = call i64 @isinListX(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load i32, i32* @ECHO
%17 = load i32, i32* @ECHONL
%18 = or i32 %16, %17
%19 = xor i32 %18, -1
%20 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%21 = load i32, i32* %20
%22 = and i32 %21, %19
store i32 %22, i32* %20
br label %23
23: ; preds = %15, %11
%24 = load i8*, i8** %5
%25 = call i64 @isinListX(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load i32, i32* @ECHO
%29 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%30 = load i32, i32* %29
%31 = or i32 %30, %28
store i32 %31, i32* %29
br label %32
32: ; preds = %27, %23
%33 = load i8*, i8** %5
%34 = call i64 @isinListX(i8* %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %32
%37 = load i32, i32* @ICANON
%38 = xor i32 %37, -1
%39 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%40 = load i32, i32* %39
%41 = and i32 %40, %38
store i32 %41, i32* %39
br label %42
42: ; preds = %36, %32
%43 = load i8*, i8** %5
%44 = call i64 @isinListX(i8* %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load i32, i32* @ICANON
%48 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%49 = load i32, i32* %48
%50 = or i32 %49, %47
store i32 %50, i32* %48
br label %51
51: ; preds = %46, %42
%52 = load i8*, i8** %5
%53 = call i64 @isinListX(i8* %52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = load i32, i32* @ECHONL
%57 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 0
%58 = load i32, i32* %57
%59 = or i32 %58, %56
store i32 %59, i32* %57
br label %60
60: ; preds = %55, %51
%61 = load i8*, i8** %5
%62 = call i64 @isinListX(i8* %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load i32, i32* @ICRNL
%66 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 2
%67 = load i32, i32* %66
%68 = or i32 %67, %65
store i32 %68, i32* %66
br label %69
69: ; preds = %64, %60
%70 = load i8*, i8** %5
%71 = call i64 @isinListX(i8* %70, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load i32, i32* @IGNCR
%75 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 2
%76 = load i32, i32* %75
%77 = or i32 %76, %74
store i32 %77, i32* %75
br label %78
78: ; preds = %73, %69
%79 = load i8*, i8** %5
%80 = call i64 @isinListX(i8* %79, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load i32, i32* @ONLCR
%84 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 1
%85 = load i32, i32* %84
%86 = or i32 %85, %83
store i32 %86, i32* %84
br label %87
87: ; preds = %82, %78
%88 = load i8*, i8** %5
%89 = call i64 @isinListX(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %87
%92 = load i32, i32* @OCRNL
%93 = getelementptr inbounds %struct.termios, %struct.termios* %6, i32 0, i32 1
%94 = load i32, i32* %93
%95 = or i32 %94, %92
store i32 %95, i32* %93
br label %96
96: ; preds = %91, %87
%97 = load i32, i32* %4
%98 = load i32, i32* @TCSANOW
%99 = call i32 @tcsetattr(i32 %97, i32 %98, %struct.termios* %6)
store i32 0, i32* %3
br label %100
100: ; preds = %96, %10
%101 = load i32, i32* %3
ret i32 %101
}

LLVM IR (-O2):
%struct.termios = type { i32, i32, i32 }
@errno = global i64 0
@.str = [6 x i8] c"-echo\00"
@.str.1 = [2 x i8] c"c\00"
@ECHO = global i32 0
@ECHONL = global i32 0
@.str.2 = [5 x i8] c"echo\00"
@.str.3 = [8 x i8] c"-icanon\00"
@ICANON = global i32 0
@.str.4 = [7 x i8] c"icanon\00"
@.str.5 = [7 x i8] c"echonl\00"
@.str.6 = [6 x i8] c"icrnl\00"
@ICRNL = global i32 0
@.str.7 = [6 x i8] c"igncr\00"
@IGNCR = global i32 0
@.str.8 = [6 x i8] c"onlcr\00"
@ONLCR = global i32 0
@.str.9 = [6 x i8] c"ocrnl\00"
@OCRNL = global i32 0
@TCSANOW = global i32 0
define i32 @Stty(i32 %0, i8* %1) {
%3 = alloca %struct.termios
%4 = bitcast %struct.termios* %3 to i8*
store i64 0, i64* @errno
%5 = call i64 @tcgetattr(i32 %0, %struct.termios* %3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %86
7: ; preds = %2
%8 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %7
%11 = load i32, i32* @ECHO
%12 = load i32, i32* @ECHONL
%13 = or i32 %12, %11
%14 = xor i32 %13, -1
%15 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%16 = load i32, i32* %15
%17 = and i32 %16, %14
store i32 %17, i32* %15
br label %18
18: ; preds = %10, %7
%19 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %18
%22 = load i32, i32* @ECHO
%23 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%24 = load i32, i32* %23
%25 = or i32 %24, %22
store i32 %25, i32* %23
br label %26
26: ; preds = %21, %18
%27 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %35, label %29
29: ; preds = %26
%30 = load i32, i32* @ICANON
%31 = xor i32 %30, -1
%32 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%33 = load i32, i32* %32
%34 = and i32 %33, %31
store i32 %34, i32* %32
br label %35
35: ; preds = %29, %26
%36 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %43, label %38
38: ; preds = %35
%39 = load i32, i32* @ICANON
%40 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%41 = load i32, i32* %40
%42 = or i32 %41, %39
store i32 %42, i32* %40
br label %43
43: ; preds = %38, %35
%44 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %51, label %46
46: ; preds = %43
%47 = load i32, i32* @ECHONL
%48 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%49 = load i32, i32* %48
%50 = or i32 %49, %47
store i32 %50, i32* %48
br label %51
51: ; preds = %46, %43
%52 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %59, label %54
54: ; preds = %51
%55 = load i32, i32* @ICRNL
%56 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 2
%57 = load i32, i32* %56
%58 = or i32 %57, %55
store i32 %58, i32* %56
br label %59
59: ; preds = %54, %51
%60 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %67, label %62
62: ; preds = %59
%63 = load i32, i32* @IGNCR
%64 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 2
%65 = load i32, i32* %64
%66 = or i32 %65, %63
store i32 %66, i32* %64
br label %67
67: ; preds = %62, %59
%68 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %75, label %70
70: ; preds = %67
%71 = load i32, i32* @ONLCR
%72 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%73 = load i32, i32* %72
%74 = or i32 %73, %71
store i32 %74, i32* %72
br label %75
75: ; preds = %70, %67
%76 = call i64 @isinListX(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %75
%79 = load i32, i32* @OCRNL
%80 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%81 = load i32, i32* %80
%82 = or i32 %81, %79
store i32 %82, i32* %80
br label %83
83: ; preds = %78, %75
%84 = load i32, i32* @TCSANOW
%85 = call i32 @tcsetattr(i32 %0, i32 %84, %struct.termios* %3)
br label %86
86: ; preds = %2, %83
%87 = phi i32 [ 0, %83 ], [ -2, %2 ]
ret i32 %87
}