#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_lflag;
  int c_oflag;
};

/* Variables and functions */
int CRTSCTS;
int CS5;
int CS6;
int CS7;
int CS8;
int CSIZE;
int CSTOPB;
int ECHO;
int ISTRIP;
int IXOFF;
int IXON;
int PARENB;
int PARODD;
int /*<<< orphan*/ cfgetispeed(struct termios *);
int /*<<< orphan*/ cfgetospeed(struct termios *);
char *pbaud(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void patt(struct termios att) {
  printf("CRTSCTS = %c\n", att.c_cflag & CRTSCTS ? 'Y' : 'N');
  printf("parity  = %c\n",
         att.c_cflag & PARENB ? (att.c_cflag & PARODD ? 'O' : 'E') : 'N');
  printf("XON     = %c\n", att.c_iflag & IXON ? 'Y' : 'N');
  printf("XOFF    = %c\n", att.c_iflag & IXOFF ? 'Y' : 'N');
  printf("strip   = %c\n", att.c_iflag & ISTRIP ? 'Y' : 'N');
  printf("nbbit   = %d\n", (att.c_cflag & CSIZE) == CS5   ? 5
                           : (att.c_cflag & CSIZE) == CS6 ? 6
                           : (att.c_cflag & CSIZE) == CS7 ? 7
                           : (att.c_cflag & CSIZE) == CS8 ? 8
                                                          : -1);
  printf("stopbit = %c\n", att.c_cflag & CSTOPB ? '2' : '1');
  printf("inbaud  = %s\n", pbaud(cfgetispeed(&att)));
  printf("outbaud = %s\n", pbaud(cfgetospeed(&att)));
  printf("echo    = %c\n", att.c_lflag & ECHO ? 'Y' : 'N');
  printf("i=%08x o=%08x c=%08x l=%08x\n", att.c_iflag, att.c_oflag, att.c_cflag,
         att.c_lflag);
}


x86 assembly (clang, -O0):
<patt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x8(%rbp)
mov    -0x10(%rbp),%ecx
mov    0x2e36(%rip),%rax
and    (%rax),%ecx
mov    $0x4e,%esi
mov    $0x59,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%eax
mov    0x2e54(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11b3 <patt+0x73>
mov    -0x10(%rbp),%edx
mov    0x2e2f(%rip),%rax
and    (%rax),%edx
mov    $0x45,%eax
mov    $0x4f,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    11c0 <patt+0x80>
mov    $0x4e,%eax
mov    %eax,-0x14(%rbp)
jmp    11c0 <patt+0x80>
mov    -0x14(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    0x2e05(%rip),%rax
and    (%rax),%ecx
mov    $0x4e,%esi
mov    $0x59,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    0x2de3(%rip),%rax
and    (%rax),%ecx
mov    $0x4e,%esi
mov    $0x59,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    0x2d71(%rip),%rax
and    (%rax),%ecx
mov    $0x4e,%esi
mov    $0x59,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%eax
mov    0x2d57(%rip),%rcx
and    (%rcx),%eax
mov    0x2d1e(%rip),%rcx
cmp    (%rcx),%eax
jne    1277 <patt+0x137>
mov    $0x5,%eax
mov    %eax,-0x18(%rbp)
jmp    12fa <patt+0x1ba>
mov    -0x10(%rbp),%eax
mov    0x2d2f(%rip),%rcx
and    (%rcx),%eax
mov    0x2d36(%rip),%rcx
cmp    (%rcx),%eax
jne    129f <patt+0x15f>
mov    $0x6,%eax
mov    %eax,-0x1c(%rbp)
jmp    12f4 <patt+0x1b4>
mov    -0x10(%rbp),%eax
mov    0x2d07(%rip),%rcx
and    (%rcx),%eax
mov    0x2cc6(%rip),%rcx
cmp    (%rcx),%eax
jne    12c7 <patt+0x187>
mov    $0x7,%eax
mov    %eax,-0x20(%rbp)
jmp    12ee <patt+0x1ae>
mov    -0x10(%rbp),%edx
mov    0x2cdf(%rip),%rax
and    (%rax),%edx
mov    0x2cde(%rip),%rax
mov    (%rax),%esi
mov    $0xffffffff,%eax
mov    $0x8,%ecx
cmp    %esi,%edx
cmove  %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%ecx
mov    0x2c73(%rip),%rax
and    (%rax),%ecx
mov    $0x31,%esi
mov    $0x32,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1040 <cfgetispeed@plt>
mov    %eax,%edi
call   1030 <pbaud@plt>
mov    %rax,%rsi
lea    0xd13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <cfgetospeed@plt>
mov    %eax,%edi
call   1030 <pbaud@plt>
mov    %rax,%rsi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%ecx
mov    0x2c4f(%rip),%rax
and    (%rax),%ecx
mov    $0x4e,%esi
mov    $0x59,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%r8d
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<patt>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbp
mov    %rdi,0x8(%rsp)
mov    %rsi,0x10(%rsp)
mov    0x2e32(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x4e,%r14d
mov    $0x59,%r15d
mov    $0x59,%esi
cmove  %r14d,%esi
lea    0xe82(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    0x2e31(%rip),%rcx
mov    (%rcx),%ecx
and    %ebp,%ecx
mov    $0x45,%ecx
mov    $0x4f,%esi
cmove  %ecx,%esi
test   %eax,%eax
cmove  %r14d,%esi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rbx
shr    $0x20,%rbx
mov    0x2e16(%rip),%rax
mov    (%rax),%eax
and    %ebx,%eax
mov    $0x59,%esi
cmove  %r14d,%esi
lea    0xe3e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%eax
and    %ebx,%eax
mov    $0x59,%esi
cmove  %r14d,%esi
lea    0xe2a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d92(%rip),%rax
and    (%rax),%ebx
mov    $0x59,%esi
cmove  %r14d,%esi
lea    0xe18(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    0x2d47(%rip),%rcx
mov    $0x5,%esi
cmp    (%rcx),%eax
je     1276 <patt+0x136>
mov    0x2d77(%rip),%rcx
mov    $0x6,%esi
cmp    (%rcx),%eax
je     1276 <patt+0x136>
mov    0x2d1f(%rip),%rcx
mov    $0x7,%esi
cmp    (%rcx),%eax
je     1276 <patt+0x136>
mov    0x2d4f(%rip),%rcx
xor    %edx,%edx
cmp    (%rcx),%eax
sete   %dl
lea    (%rdx,%rdx,8),%esi
add    $0xffffffff,%esi
lea    0xdc9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cfd(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
cmp    $0x1,%eax
mov    $0x32,%esi
sbb    $0x0,%esi
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <cfgetispeed@plt>
mov    %eax,%edi
call   1030 <pbaud@plt>
lea    0xd9f(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <cfgetospeed@plt>
mov    %eax,%edi
call   1030 <pbaud@plt>
lea    0xd8d(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cdc(%rip),%rax
mov    (%rax),%eax
and    0x10(%rsp),%eax
cmove  %r14d,%r15d
lea    0xd79(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%r8d
lea    0xd65(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.termios = type { i32, i32, i32, i32 }
@.str = [14 x i8] c"CRTSCTS = %c\0A\00"
@CRTSCTS = global i32 0
@.str.1 = [14 x i8] c"parity = %c\0A\00"
@PARENB = global i32 0
@PARODD = global i32 0
@.str.2 = [14 x i8] c"XON = %c\0A\00"
@IXON = global i32 0
@.str.3 = [14 x i8] c"XOFF = %c\0A\00"
@IXOFF = global i32 0
@.str.4 = [14 x i8] c"strip = %c\0A\00"
@ISTRIP = global i32 0
@.str.5 = [14 x i8] c"nbbit = %d\0A\00"
@CSIZE = global i32 0
@CS5 = global i32 0
@CS6 = global i32 0
@CS7 = global i32 0
@CS8 = global i32 0
@.str.6 = [14 x i8] c"stopbit = %c\0A\00"
@CSTOPB = global i32 0
@.str.7 = [14 x i8] c"inbaud = %s\0A\00"
@.str.8 = [14 x i8] c"outbaud = %s\0A\00"
@.str.9 = [14 x i8] c"echo = %c\0A\00"
@ECHO = global i32 0
@.str.10 = [29 x i8] c"i=%08x o=%08x c=%08x l=%08x\0A\00"
define void @patt(i64 %0, i64 %1) {
%3 = alloca %struct.termios
%4 = bitcast %struct.termios* %3 to { i64, i64 }*
%5 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %4, i32 0, i32 0
store i64 %0, i64* %5
%6 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %4, i32 0, i32 1
store i64 %1, i64* %6
%7 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%8 = load i32, i32* %7
%9 = load i32, i32* @CRTSCTS
%10 = and i32 %8, %9
%11 = icmp ne i32 %10, 0
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 89, i32 78
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%16 = load i32, i32* %15
%17 = load i32, i32* @PARENB
%18 = and i32 %16, %17
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %2
%21 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%22 = load i32, i32* %21
%23 = load i32, i32* @PARODD
%24 = and i32 %22, %23
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 79, i32 69
br label %29
28: ; preds = %2
br label %29
29: ; preds = %28, %20
%30 = phi i32 [ %27, %20 ], [ 78, %28 ]
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 1
%33 = load i32, i32* %32
%34 = load i32, i32* @IXON
%35 = and i32 %33, %34
%36 = icmp ne i32 %35, 0
%37 = zext i1 %36 to i64
%38 = select i1 %36, i32 89, i32 78
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 1
%41 = load i32, i32* %40
%42 = load i32, i32* @IXOFF
%43 = and i32 %41, %42
%44 = icmp ne i32 %43, 0
%45 = zext i1 %44 to i64
%46 = select i1 %44, i32 89, i32 78
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %46)
%48 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 1
%49 = load i32, i32* %48
%50 = load i32, i32* @ISTRIP
%51 = and i32 %49, %50
%52 = icmp ne i32 %51, 0
%53 = zext i1 %52 to i64
%54 = select i1 %52, i32 89, i32 78
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%57 = load i32, i32* %56
%58 = load i32, i32* @CSIZE
%59 = and i32 %57, %58
%60 = load i32, i32* @CS5
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %29
br label %92
63: ; preds = %29
%64 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%65 = load i32, i32* %64
%66 = load i32, i32* @CSIZE
%67 = and i32 %65, %66
%68 = load i32, i32* @CS6
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %71
70: ; preds = %63
br label %90
71: ; preds = %63
%72 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%73 = load i32, i32* %72
%74 = load i32, i32* @CSIZE
%75 = and i32 %73, %74
%76 = load i32, i32* @CS7
%77 = icmp eq i32 %75, %76
br i1 %77, label %78, label %79
78: ; preds = %71
br label %88
79: ; preds = %71
%80 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%81 = load i32, i32* %80
%82 = load i32, i32* @CSIZE
%83 = and i32 %81, %82
%84 = load i32, i32* @CS8
%85 = icmp eq i32 %83, %84
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 8, i32 -1
br label %88
88: ; preds = %79, %78
%89 = phi i32 [ 7, %78 ], [ %87, %79 ]
br label %90
90: ; preds = %88, %70
%91 = phi i32 [ 6, %70 ], [ %89, %88 ]
br label %92
92: ; preds = %90, %62
%93 = phi i32 [ 5, %62 ], [ %91, %90 ]
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%96 = load i32, i32* %95
%97 = load i32, i32* @CSTOPB
%98 = and i32 %96, %97
%99 = icmp ne i32 %98, 0
%100 = zext i1 %99 to i64
%101 = select i1 %99, i32 50, i32 49
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %101)
%103 = call i32 @cfgetispeed(%struct.termios* %3)
%104 = call i8* @pbaud(i32 %103)
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %104)
%106 = call i32 @cfgetospeed(%struct.termios* %3)
%107 = call i8* @pbaud(i32 %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %107)
%109 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 2
%110 = load i32, i32* %109
%111 = load i32, i32* @ECHO
%112 = and i32 %110, %111
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i32 89, i32 78
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %115)
%117 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 1
%118 = load i32, i32* %117
%119 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 3
%120 = load i32, i32* %119
%121 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 0
%122 = load i32, i32* %121
%123 = getelementptr inbounds %struct.termios, %struct.termios* %3, i32 0, i32 2
%124 = load i32, i32* %123
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 %118, i32 %120, i32 %122, i32 %124)
ret void
}

LLVM IR (-O2):
%struct.termios = type { i32, i32, i32, i32 }
@.str = [14 x i8] c"CRTSCTS = %c\0A\00"
@CRTSCTS = global i32 0
@.str.1 = [14 x i8] c"parity = %c\0A\00"
@PARENB = global i32 0
@PARODD = global i32 0
@.str.2 = [14 x i8] c"XON = %c\0A\00"
@IXON = global i32 0
@.str.3 = [14 x i8] c"XOFF = %c\0A\00"
@IXOFF = global i32 0
@.str.4 = [14 x i8] c"strip = %c\0A\00"
@ISTRIP = global i32 0
@.str.5 = [14 x i8] c"nbbit = %d\0A\00"
@CSIZE = global i32 0
@CS5 = global i32 0
@CS6 = global i32 0
@CS7 = global i32 0
@CS8 = global i32 0
@.str.6 = [14 x i8] c"stopbit = %c\0A\00"
@CSTOPB = global i32 0
@.str.7 = [14 x i8] c"inbaud = %s\0A\00"
@.str.8 = [14 x i8] c"outbaud = %s\0A\00"
@.str.9 = [14 x i8] c"echo = %c\0A\00"
@ECHO = global i32 0
@.str.10 = [29 x i8] c"i=%08x o=%08x c=%08x l=%08x\0A\00"
define void @patt(i64 %0, i64 %1) {
%3 = alloca { i64, i64 }
%4 = bitcast { i64, i64 }* %3 to %struct.termios*
%5 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i64 0, i32 0
store i64 %0, i64* %5
%6 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i64 0, i32 1
store i64 %1, i64* %6
%7 = trunc i64 %0 to i32
%8 = load i32, i32* @CRTSCTS
%9 = and i32 %8, %7
%10 = icmp eq i32 %9, 0
%11 = select i1 %10, i32 78, i32 89
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @PARENB
%14 = and i32 %13, %7
%15 = icmp eq i32 %14, 0
%16 = load i32, i32* @PARODD
%17 = and i32 %16, %7
%18 = icmp eq i32 %17, 0
%19 = select i1 %18, i32 69, i32 79
%20 = select i1 %15, i32 78, i32 %19
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = lshr i64 %0, 32
%23 = trunc i64 %22 to i32
%24 = load i32, i32* @IXON
%25 = and i32 %24, %23
%26 = icmp eq i32 %25, 0
%27 = select i1 %26, i32 78, i32 89
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @IXOFF
%30 = and i32 %29, %23
%31 = icmp eq i32 %30, 0
%32 = select i1 %31, i32 78, i32 89
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %32)
%34 = load i32, i32* @ISTRIP
%35 = and i32 %34, %23
%36 = icmp eq i32 %35, 0
%37 = select i1 %36, i32 78, i32 89
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @CSIZE
%40 = and i32 %39, %7
%41 = load i32, i32* @CS5
%42 = icmp eq i32 %40, %41
br i1 %42, label %53, label %43
43: ; preds = %2
%44 = load i32, i32* @CS6
%45 = icmp eq i32 %40, %44
br i1 %45, label %53, label %46
46: ; preds = %43
%47 = load i32, i32* @CS7
%48 = icmp eq i32 %40, %47
br i1 %48, label %53, label %49
49: ; preds = %46
%50 = load i32, i32* @CS8
%51 = icmp eq i32 %40, %50
%52 = select i1 %51, i32 8, i32 -1
br label %53
53: ; preds = %43, %46, %49, %2
%54 = phi i32 [ 5, %2 ], [ 6, %43 ], [ %52, %49 ], [ 7, %46 ]
%55 = getelementptr inbounds %struct.termios, %struct.termios* %4, i64 0, i32 1
%56 = bitcast { i64, i64 }* %3 to i32*
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %54)
%58 = load i32, i32* @CSTOPB
%59 = and i32 %58, %7
%60 = icmp eq i32 %59, 0
%61 = select i1 %60, i32 49, i32 50
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %61)
%63 = call i32 @cfgetispeed(%struct.termios* %4)
%64 = call i8* @pbaud(i32 %63)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %64)
%66 = call i32 @cfgetospeed(%struct.termios* %4)
%67 = call i8* @pbaud(i32 %66)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %67)
%69 = bitcast i64* %6 to i32*
%70 = load i32, i32* %69
%71 = load i32, i32* @ECHO
%72 = and i32 %71, %70
%73 = icmp eq i32 %72, 0
%74 = select i1 %73, i32 78, i32 89
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %55
%77 = getelementptr inbounds %struct.termios, %struct.termios* %4, i64 0, i32 3
%78 = load i32, i32* %77
%79 = load i32, i32* %56
%80 = load i32, i32* %69
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i32 %76, i32 %78, i32 %79, i32 %80)
ret void
}