#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_cflag;
  int c_iflag;
  int *c_cc;
  int c_lflag;
};
typedef int /*<<< orphan*/ serial_opts;

/* Variables and functions */
int /*<<< orphan*/ B4800;
int CLOCAL;
int CREAD;
int CS8;
int CSIZE;
int CSTOPB;
int ECHO;
int ECHOE;
int ICANON;
int INPCK;
int ISIG;
int IXANY;
int IXOFF;
int IXON;
int PARENB;
int PARODD;
int /*<<< orphan*/ TCIOFLUSH;
int /*<<< orphan*/ TCSANOW;
size_t VMIN;
size_t VTIME;
int /*<<< orphan*/ bzero(struct termios *, int);
int /*<<< orphan*/ cfsetispeed(struct termios *, int /*<<< orphan*/);
int /*<<< orphan*/ cfsetospeed(struct termios *, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ tcflush(int, int /*<<< orphan*/);
int /*<<< orphan*/ tcgetattr(int, struct termios *);
int /*<<< orphan*/ tcsetattr(int, int /*<<< orphan*/, struct termios *);
void set_serial_options(int fd, int parity) {
  struct termios serial_opts;
  printf("Config the serial port\n");
  tcflush(fd, TCIOFLUSH);
  tcgetattr(fd, &serial_opts);
  bzero(&serial_opts, sizeof(serial_opts));
  cfsetispeed(&serial_opts, B4800);
  cfsetospeed(&serial_opts, B4800);
  serial_opts.c_cflag |= (CLOCAL | CREAD);
  serial_opts.c_cflag &= ~CSIZE;
  serial_opts.c_cflag |= (CS8);
  serial_opts.c_cflag &= ~CSTOPB;
  switch (parity) {
  case 'n':
  case 'N':
    serial_opts.c_cflag &= ~PARENB;
    serial_opts.c_iflag &= ~INPCK;
    break;
  case 'o':
  case 'O':
    serial_opts.c_cflag |= PARENB;
    serial_opts.c_cflag |= PARODD;
    serial_opts.c_iflag |= INPCK;
    break;
  case 'e':
  case 'E':
    serial_opts.c_cflag |= PARENB;
    serial_opts.c_cflag &= ~PARODD;
    serial_opts.c_iflag |= INPCK;
    break;
  case 's':
  case 'S':
    serial_opts.c_cflag &= ~PARENB;
    serial_opts.c_cflag &= ~CSTOPB;
    serial_opts.c_iflag |= INPCK;
    break;
  default:
    fprintf(stderr, "you must setting parity\n");
  }
  serial_opts.c_cc[VTIME] = 150;
  serial_opts.c_cc[VMIN] = 0;
  serial_opts.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
  serial_opts.c_iflag &= ~(IXON | IXOFF | IXANY);
  serial_opts.c_iflag |= INPCK;
  tcsetattr(fd, TCSANOW, &serial_opts);
  sleep(2);
}


x86 assembly (clang, -O0):
<set_serial_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    0xf17(%rip),%rdi
call   1050 <printf@plt>
mov    -0x4(%rbp),%edi
mov    0x2dac(%rip),%rax
mov    (%rax),%esi
call   1040 <tcflush@plt>
mov    -0x4(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    %rsi,-0x38(%rbp)
call   1070 <tcgetattr@plt>
mov    -0x38(%rbp),%rdi
mov    $0x18,%esi
call   10a0 <bzero@plt>
mov    -0x38(%rbp),%rdi
mov    0x2dc4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    (%rax),%esi
call   1090 <cfsetispeed@plt>
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
call   1030 <cfsetospeed@plt>
mov    0x2d33(%rip),%rax
mov    (%rax),%ecx
mov    0x2d92(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    -0x20(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    0x2d67(%rip),%rax
mov    (%rax),%ecx
not    %ecx
mov    -0x20(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    0x2d64(%rip),%rax
mov    (%rax),%ecx
mov    -0x20(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    0x2cfb(%rip),%rax
mov    (%rax),%ecx
not    %ecx
mov    -0x20(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffbb,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x2e,%eax
ja     1342 <set_serial_options+0x1b2>
mov    -0x28(%rbp),%rax
lea    0xd8f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2cd5(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1357 <set_serial_options+0x1c7>
mov    0x2d2e(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2cff(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2ca0(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1357 <set_serial_options+0x1c7>
mov    0x2cfc(%rip),%rax
mov    (%rax),%eax
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2ccd(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2c6b(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1357 <set_serial_options+0x1c7>
mov    0x2cc7(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2c1d(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2c33(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1357 <set_serial_options+0x1c7>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
lea    0xd82(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x2bf6(%rip),%rcx
mov    (%rcx),%rcx
movl   $0x96,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
mov    0x2c19(%rip),%rcx
mov    (%rcx),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    0x2bc8(%rip),%rax
mov    (%rax),%eax
mov    0x2c37(%rip),%rcx
or     (%rcx),%eax
mov    0x2c26(%rip),%rcx
or     (%rcx),%eax
mov    0x2c0d(%rip),%rcx
or     (%rcx),%eax
xor    $0xffffffff,%eax
and    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    0x2c2b(%rip),%rax
mov    (%rax),%eax
mov    0x2c2a(%rip),%rcx
or     (%rcx),%eax
mov    0x2bb1(%rip),%rcx
or     (%rcx),%eax
xor    $0xffffffff,%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2b8f(%rip),%rax
mov    (%rax),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2be5(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   1080 <tcsetattr@plt>
mov    $0x2,%edi
call   10b0 <sleep@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_serial_options>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %esi,%ebx
mov    %edi,%r14d
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%esi
mov    %r14d,%edi
call   1050 <tcflush@plt>
mov    %rsp,%rbp
mov    %r14d,%edi
mov    %rbp,%rsi
call   1070 <tcgetattr@plt>
mov    %rbp,%rdi
mov    $0x18,%esi
call   10a0 <bzero@plt>
mov    0x2dca(%rip),%r15
mov    (%r15),%esi
mov    %rbp,%rdi
call   1090 <cfsetispeed@plt>
mov    (%r15),%esi
mov    %rbp,%rdi
call   1040 <cfsetospeed@plt>
mov    0x2d3d(%rip),%rax
mov    0x2d9e(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
or     (%rsp),%ecx
mov    0x2d78(%rip),%rax
mov    (%rax),%edx
not    %edx
and    %ecx,%edx
mov    0x2d7b(%rip),%rax
or     (%rax),%edx
mov    0x2d1a(%rip),%rax
mov    (%rax),%eax
not    %eax
and    %edx,%eax
mov    %eax,(%rsp)
add    $0xffffffbb,%ebx
cmp    $0x2e,%ebx
ja     1360 <set_serial_options+0x1d0>
lea    0xdbe(%rip),%rcx
movslq (%rcx,%rbx,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
mov    0x2d86(%rip),%rcx
or     (%rcx),%eax
mov    0x2d5d(%rip),%rcx
mov    (%rcx),%ecx
not    %ecx
and    %eax,%ecx
mov    %ecx,(%rsp)
jmp    12ab <set_serial_options+0x11b>
mov    0x2d6b(%rip),%rcx
mov    (%rcx),%ecx
not    %ecx
and    %ecx,%eax
mov    %eax,(%rsp)
mov    0x2ceb(%rip),%rax
mov    (%rax),%eax
not    %eax
and    %eax,0x4(%rsp)
jmp    12b8 <set_serial_options+0x128>
mov    0x2d4a(%rip),%rcx
or     (%rcx),%eax
mov    0x2d21(%rip),%rcx
or     (%rcx),%eax
jmp    12a8 <set_serial_options+0x118>
mov    0x2d36(%rip),%rcx
mov    (%rcx),%ecx
not    %ecx
and    %ecx,%eax
mov    %eax,(%rsp)
mov    0x2cb6(%rip),%rax
mov    (%rax),%eax
or     %eax,0x4(%rsp)
mov    0x8(%rsp),%rax
mov    0x2c94(%rip),%rcx
mov    (%rcx),%rcx
movl   $0x96,(%rax,%rcx,4)
mov    0x2cbb(%rip),%rcx
mov    (%rcx),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    0x2c6a(%rip),%rax
mov    0x2cdb(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    0x2cc8(%rip),%rax
or     (%rax),%ecx
mov    0x2caf(%rip),%rax
or     (%rax),%ecx
not    %ecx
and    %ecx,0x10(%rsp)
mov    0x2cd0(%rip),%rax
mov    0x2cd1(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    0x2c56(%rip),%rax
or     (%rax),%ecx
not    %ecx
and    0x4(%rsp),%ecx
mov    0x2c37(%rip),%rax
or     (%rax),%ecx
mov    %ecx,0x4(%rsp)
mov    0x2c92(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
mov    %r14d,%edi
call   1080 <tcsetattr@plt>
mov    $0x2,%edi
call   10b0 <sleep@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c09(%rip),%rax
mov    (%rax),%edi
lea    0xd4c(%rip),%rsi
call   1060 <fprintf@plt>
jmp    12b8 <set_serial_options+0x128>

LLVM IR (-O0):
%struct.termios = type { i32, i32, i32*, i32 }
@.str = [24 x i8] c"Config the serial port\0A\00"
@TCIOFLUSH = global i32 0
@B4800 = global i32 0
@CLOCAL = global i32 0
@CREAD = global i32 0
@CSIZE = global i32 0
@CS8 = global i32 0
@CSTOPB = global i32 0
@PARENB = global i32 0
@INPCK = global i32 0
@PARODD = global i32 0
@stderr = global i32 0
@.str.1 = [25 x i8] c"you must setting parity\0A\00"
@VTIME = global i64 0
@VMIN = global i64 0
@ICANON = global i32 0
@ECHO = global i32 0
@ECHOE = global i32 0
@ISIG = global i32 0
@IXON = global i32 0
@IXOFF = global i32 0
@IXANY = global i32 0
@TCSANOW = global i32 0
define void @set_serial_options(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.termios
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* %3
%8 = load i32, i32* @TCIOFLUSH
%9 = call i32 @tcflush(i32 %7, i32 %8)
%10 = load i32, i32* %3
%11 = call i32 @tcgetattr(i32 %10, %struct.termios* %5)
%12 = call i32 @bzero(%struct.termios* %5, i32 24)
%13 = load i32, i32* @B4800
%14 = call i32 @cfsetispeed(%struct.termios* %5, i32 %13)
%15 = load i32, i32* @B4800
%16 = call i32 @cfsetospeed(%struct.termios* %5, i32 %15)
%17 = load i32, i32* @CLOCAL
%18 = load i32, i32* @CREAD
%19 = or i32 %17, %18
%20 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%21 = load i32, i32* %20
%22 = or i32 %21, %19
store i32 %22, i32* %20
%23 = load i32, i32* @CSIZE
%24 = xor i32 %23, -1
%25 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%26 = load i32, i32* %25
%27 = and i32 %26, %24
store i32 %27, i32* %25
%28 = load i32, i32* @CS8
%29 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%30 = load i32, i32* %29
%31 = or i32 %30, %28
store i32 %31, i32* %29
%32 = load i32, i32* @CSTOPB
%33 = xor i32 %32, -1
%34 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%35 = load i32, i32* %34
%36 = and i32 %35, %33
store i32 %36, i32* %34
%37 = load i32, i32* %4
switch i32 %37, label %91 [
i32 110, label %38
i32 78, label %38
i32 111, label %49
i32 79, label %49
i32 101, label %62
i32 69, label %62
i32 115, label %76
i32 83, label %76
]
38: ; preds = %2, %2
%39 = load i32, i32* @PARENB
%40 = xor i32 %39, -1
%41 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%42 = load i32, i32* %41
%43 = and i32 %42, %40
store i32 %43, i32* %41
%44 = load i32, i32* @INPCK
%45 = xor i32 %44, -1
%46 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%47 = load i32, i32* %46
%48 = and i32 %47, %45
store i32 %48, i32* %46
br label %94
49: ; preds = %2, %2
%50 = load i32, i32* @PARENB
%51 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%52 = load i32, i32* %51
%53 = or i32 %52, %50
store i32 %53, i32* %51
%54 = load i32, i32* @PARODD
%55 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%56 = load i32, i32* %55
%57 = or i32 %56, %54
store i32 %57, i32* %55
%58 = load i32, i32* @INPCK
%59 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%60 = load i32, i32* %59
%61 = or i32 %60, %58
store i32 %61, i32* %59
br label %94
62: ; preds = %2, %2
%63 = load i32, i32* @PARENB
%64 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%65 = load i32, i32* %64
%66 = or i32 %65, %63
store i32 %66, i32* %64
%67 = load i32, i32* @PARODD
%68 = xor i32 %67, -1
%69 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%70 = load i32, i32* %69
%71 = and i32 %70, %68
store i32 %71, i32* %69
%72 = load i32, i32* @INPCK
%73 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%74 = load i32, i32* %73
%75 = or i32 %74, %72
store i32 %75, i32* %73
br label %94
76: ; preds = %2, %2
%77 = load i32, i32* @PARENB
%78 = xor i32 %77, -1
%79 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%80 = load i32, i32* %79
%81 = and i32 %80, %78
store i32 %81, i32* %79
%82 = load i32, i32* @CSTOPB
%83 = xor i32 %82, -1
%84 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%85 = load i32, i32* %84
%86 = and i32 %85, %83
store i32 %86, i32* %84
%87 = load i32, i32* @INPCK
%88 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%89 = load i32, i32* %88
%90 = or i32 %89, %87
store i32 %90, i32* %88
br label %94
91: ; preds = %2
%92 = load i32, i32* @stderr
%93 = call i32 @fprintf(i32 %92, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %94
94: ; preds = %91, %76, %62, %49, %38
%95 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%96 = load i32*, i32** %95
%97 = load i64, i64* @VTIME
%98 = getelementptr inbounds i32, i32* %96, i64 %97
store i32 150, i32* %98
%99 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%100 = load i32*, i32** %99
%101 = load i64, i64* @VMIN
%102 = getelementptr inbounds i32, i32* %100, i64 %101
store i32 0, i32* %102
%103 = load i32, i32* @ICANON
%104 = load i32, i32* @ECHO
%105 = or i32 %103, %104
%106 = load i32, i32* @ECHOE
%107 = or i32 %105, %106
%108 = load i32, i32* @ISIG
%109 = or i32 %107, %108
%110 = xor i32 %109, -1
%111 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 3
%112 = load i32, i32* %111
%113 = and i32 %112, %110
store i32 %113, i32* %111
%114 = load i32, i32* @IXON
%115 = load i32, i32* @IXOFF
%116 = or i32 %114, %115
%117 = load i32, i32* @IXANY
%118 = or i32 %116, %117
%119 = xor i32 %118, -1
%120 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%121 = load i32, i32* %120
%122 = and i32 %121, %119
store i32 %122, i32* %120
%123 = load i32, i32* @INPCK
%124 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%125 = load i32, i32* %124
%126 = or i32 %125, %123
store i32 %126, i32* %124
%127 = load i32, i32* %3
%128 = load i32, i32* @TCSANOW
%129 = call i32 @tcsetattr(i32 %127, i32 %128, %struct.termios* %5)
%130 = call i32 @sleep(i32 2)
ret void
}

LLVM IR (-O2):
%struct.termios = type { i32, i32, i32*, i32 }
@TCIOFLUSH = global i32 0
@B4800 = global i32 0
@CLOCAL = global i32 0
@CREAD = global i32 0
@CSIZE = global i32 0
@CS8 = global i32 0
@CSTOPB = global i32 0
@PARENB = global i32 0
@INPCK = global i32 0
@PARODD = global i32 0
@stderr = global i32 0
@.str.1 = [25 x i8] c"you must setting parity\0A\00"
@VTIME = global i64 0
@VMIN = global i64 0
@ICANON = global i32 0
@ECHO = global i32 0
@ECHOE = global i32 0
@ISIG = global i32 0
@IXON = global i32 0
@IXOFF = global i32 0
@IXANY = global i32 0
@TCSANOW = global i32 0
@str = [23 x i8] c"Config the serial port\00"
define void @set_serial_options(i32 %0, i32 %1) {
%3 = alloca %struct.termios
%4 = bitcast %struct.termios* %3 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%6 = load i32, i32* @TCIOFLUSH
%7 = tail call i32 @tcflush(i32 %0, i32 %6)
%8 = call i32 @tcgetattr(i32 %0, %struct.termios* %3)
%9 = call i32 @bzero(%struct.termios* %3, i32 24)
%10 = load i32, i32* @B4800
%11 = call i32 @cfsetispeed(%struct.termios* %3, i32 %10)
%12 = load i32, i32* @B4800
%13 = call i32 @cfsetospeed(%struct.termios* %3, i32 %12)
%14 = load i32, i32* @CLOCAL
%15 = load i32, i32* @CREAD
%16 = or i32 %15, %14
%17 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%18 = load i32, i32* %17
%19 = or i32 %16, %18
%20 = load i32, i32* @CSIZE
%21 = xor i32 %20, -1
%22 = and i32 %19, %21
%23 = load i32, i32* @CS8
%24 = or i32 %23, %22
%25 = load i32, i32* @CSTOPB
%26 = xor i32 %25, -1
%27 = and i32 %24, %26
store i32 %27, i32* %17
switch i32 %1, label %64 [
i32 110, label %28
i32 78, label %28
i32 111, label %37
i32 79, label %37
i32 101, label %46
i32 69, label %46
i32 115, label %56
i32 83, label %56
]
28: ; preds = %2, %2
%29 = load i32, i32* @PARENB
%30 = xor i32 %29, -1
%31 = and i32 %27, %30
store i32 %31, i32* %17
%32 = load i32, i32* @INPCK
%33 = xor i32 %32, -1
%34 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%35 = load i32, i32* %34
%36 = and i32 %35, %33
store i32 %36, i32* %34
br label %67
37: ; preds = %2, %2
%38 = load i32, i32* @PARENB
%39 = or i32 %38, %27
%40 = load i32, i32* @PARODD
%41 = or i32 %40, %39
store i32 %41, i32* %17
%42 = load i32, i32* @INPCK
%43 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%44 = load i32, i32* %43
%45 = or i32 %44, %42
store i32 %45, i32* %43
br label %67
46: ; preds = %2, %2
%47 = load i32, i32* @PARENB
%48 = or i32 %47, %27
%49 = load i32, i32* @PARODD
%50 = xor i32 %49, -1
%51 = and i32 %48, %50
store i32 %51, i32* %17
%52 = load i32, i32* @INPCK
%53 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%54 = load i32, i32* %53
%55 = or i32 %54, %52
store i32 %55, i32* %53
br label %67
56: ; preds = %2, %2
%57 = load i32, i32* @PARENB
%58 = xor i32 %57, -1
%59 = and i32 %27, %58
store i32 %59, i32* %17
%60 = load i32, i32* @INPCK
%61 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%62 = load i32, i32* %61
%63 = or i32 %62, %60
store i32 %63, i32* %61
br label %67
64: ; preds = %2
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %67
67: ; preds = %64, %56, %46, %37, %28
%68 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 2
%69 = load i32*, i32** %68
%70 = load i64, i64* @VTIME
%71 = getelementptr inbounds i32, i32* %69, i64 %70
store i32 150, i32* %71
%72 = load i64, i64* @VMIN
%73 = getelementptr inbounds i32, i32* %69, i64 %72
store i32 0, i32* %73
%74 = load i32, i32* @ICANON
%75 = load i32, i32* @ECHO
%76 = or i32 %75, %74
%77 = load i32, i32* @ECHOE
%78 = or i32 %76, %77
%79 = load i32, i32* @ISIG
%80 = or i32 %78, %79
%81 = xor i32 %80, -1
%82 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 3
%83 = load i32, i32* %82
%84 = and i32 %83, %81
store i32 %84, i32* %82
%85 = load i32, i32* @IXON
%86 = load i32, i32* @IXOFF
%87 = or i32 %86, %85
%88 = load i32, i32* @IXANY
%89 = or i32 %87, %88
%90 = xor i32 %89, -1
%91 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%92 = load i32, i32* %91
%93 = and i32 %92, %90
%94 = load i32, i32* @INPCK
%95 = or i32 %94, %93
store i32 %95, i32* %91
%96 = load i32, i32* @TCSANOW
%97 = call i32 @tcsetattr(i32 %0, i32 %96, %struct.termios* %3)
%98 = call i32 @sleep(i32 2)
ret void
}