#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_iflag;
  int c_lflag;
  int c_cflag;
  int /*<<< orphan*/ c_oflag;
};

/* Variables and functions */
int B115200;
int B38400;
int B57600;
int B9600;
int BRKINT;
int CS8;
int CSIZE;
int CSTOPB;
int ECHO;
int ECHONL;
int ICANON;
int ICRNL;
int IEXTEN;
int IGNBRK;
int IGNCR;
int INLCR;
int ISIG;
int ISTRIP;
int IXON;
int /*<<< orphan*/ OPOST;
int PARENB;
int PARMRK;
int PARODD;
int /*<<< orphan*/ TCSADRAIN;
int /*<<< orphan*/ cfsetispeed(struct termios *, int);
int /*<<< orphan*/ cfsetospeed(struct termios *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ tcdrain(long);
scalar_t__ tcgetattr(long, struct termios *);
scalar_t__ tcsetattr(long, int /*<<< orphan*/, struct termios *);
int /*<<< orphan*/ usleep(int);
void _SetBaud(long port, long reqRate) {
  struct termios buf;
  int rate;
  if (tcgetattr(port, &buf)) {
    fprintf(stderr, "Can't get port config\n");
    return;
  }
  buf.c_iflag &=
      ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
  buf.c_oflag &= ~OPOST;
  buf.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
  buf.c_cflag &= ~(CSIZE | PARENB);
  buf.c_cflag |= CS8;
  switch (reqRate) {
  case 9600:
    rate = B9600;
    break;
  case 38400:
    rate = B38400;
    break;
  case 57600:
    rate = B57600;
    break;
  case 115200:
    rate = B115200;
    break;
  }
  cfsetispeed(&buf, rate);
  cfsetospeed(&buf, rate);
  buf.c_cflag &= ~CSIZE;
  buf.c_cflag |= CS8;
  buf.c_cflag &= ~CSTOPB;
  buf.c_cflag &= ~(PARENB | PARODD);
  if (tcsetattr(port, TCSADRAIN, &buf)) {
    fprintf(stderr, "Error: tcsetattr\n");
    return;
  }
  tcdrain(port);
  usleep(1000000 / 10 * 2);
  sleep(2);
}


x86 assembly (clang, -O0):
<_SetBaud>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1060 <tcgetattr@plt>
cmp    $0x0,%rax
je     11c1 <_SetBaud+0x41>
mov    0x2db2(%rip),%rax
mov    (%rax),%edi
lea    0xe49(%rip),%rsi
call   1050 <fprintf@plt>
jmp    13f6 <_SetBaud+0x276>
mov    0x2d78(%rip),%rax
mov    (%rax),%ecx
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2e14(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2d69(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2de6(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2dd3(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2dd8(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2dad(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
not    %ecx
mov    -0x20(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%ecx
not    %ecx
mov    -0x14(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    0x2d75(%rip),%rax
mov    (%rax),%ecx
mov    0x2d04(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2ce1(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2d46(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
mov    0x2d0b(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
not    %ecx
mov    -0x1c(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    0x2d06(%rip),%rax
mov    (%rax),%ecx
mov    0x2d35(%rip),%rax
mov    (%rax),%eax
or     %eax,%ecx
not    %ecx
mov    -0x18(%rbp),%eax
and    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    0x2cf0(%rip),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
sub    $0x2580,%rax
je     12fa <_SetBaud+0x17a>
jmp    12bb <_SetBaud+0x13b>
mov    -0x30(%rbp),%rax
sub    $0x9600,%rax
je     130b <_SetBaud+0x18b>
jmp    12d0 <_SetBaud+0x150>
mov    -0x30(%rbp),%rax
sub    $0xe100,%rax
je     131c <_SetBaud+0x19c>
jmp    12e5 <_SetBaud+0x165>
mov    -0x30(%rbp),%rax
sub    $0x1c200,%rax
je     132d <_SetBaud+0x1ad>
jmp    1339 <_SetBaud+0x1b9>
mov    0x2c97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1339 <_SetBaud+0x1b9>
mov    0x2c06(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1339 <_SetBaud+0x1b9>
mov    0x2c55(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1339 <_SetBaud+0x1b9>
mov    0x2c04(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    -0x20(%rbp),%rdi
call   1080 <cfsetispeed@plt>
mov    -0x24(%rbp),%esi
lea    -0x20(%rbp),%rdi
call   1040 <cfsetospeed@plt>
mov    0x2c28(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    0x2c1e(%rip),%rax
mov    (%rax),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    0x2ba7(%rip),%rax
mov    (%rax),%eax
xor    $0xffffffff,%eax
and    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    0x2c2d(%rip),%rax
mov    (%rax),%eax
mov    0x2c14(%rip),%rcx
or     (%rcx),%eax
xor    $0xffffffff,%eax
and    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2bae(%rip),%rax
mov    (%rax),%esi
lea    -0x20(%rbp),%rdx
call   1070 <tcsetattr@plt>
cmp    $0x0,%rax
je     13d9 <_SetBaud+0x259>
mov    0x2b9a(%rip),%rax
mov    (%rax),%edi
lea    0xc48(%rip),%rsi
call   1050 <fprintf@plt>
jmp    13f6 <_SetBaud+0x276>
mov    -0x8(%rbp),%rdi
call   1030 <tcdrain@plt>
mov    $0x30d40,%edi
call   10a0 <usleep@plt>
mov    $0x2,%edi
call   1090 <sleep@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_SetBaud>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0x8(%rsp),%rsi
call   1060 <tcgetattr@plt>
test   %rax,%rax
je     11bd <_SetBaud+0x3d>
mov    0x2db6(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1358 <_SetBaud+0x1d8>
mov    0x2d7c(%rip),%rax
mov    0x2dc5(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    0x2e1a(%rip),%rax
or     (%rax),%ecx
mov    0x2d71(%rip),%rax
or     (%rax),%ecx
mov    0x2df0(%rip),%rax
or     (%rax),%ecx
mov    0x2ddf(%rip),%rax
or     (%rax),%ecx
mov    0x2de6(%rip),%rax
or     (%rax),%ecx
mov    0x2dbd(%rip),%rax
or     (%rax),%ecx
not    %ecx
and    %ecx,0x8(%rsp)
mov    0x2db6(%rip),%rax
mov    (%rax),%eax
not    %eax
and    %eax,0x14(%rsp)
mov    0x2d8f(%rip),%rax
mov    0x2d20(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    0x2cfd(%rip),%rax
or     (%rax),%ecx
mov    0x2d64(%rip),%rax
or     (%rax),%ecx
mov    0x2d2b(%rip),%rax
or     (%rax),%ecx
not    %ecx
and    %ecx,0xc(%rsp)
mov    0x2d2c(%rip),%r12
mov    0x2d5d(%rip),%r15
mov    (%r15),%eax
or     (%r12),%eax
not    %eax
and    0x10(%rsp),%eax
mov    0x2d19(%rip),%r13
or     0x0(%r13),%eax
mov    %eax,0x10(%rsp)
cmp    $0xe0ff,%rbx
jg     129b <_SetBaud+0x11b>
cmp    $0x2580,%rbx
je     12b6 <_SetBaud+0x136>
cmp    $0x9600,%rbx
jne    12c8 <_SetBaud+0x148>
mov    0x2c7f(%rip),%rax
jmp    12c6 <_SetBaud+0x146>
cmp    $0xe100,%rbx
je     12bf <_SetBaud+0x13f>
cmp    $0x1c200,%rbx
jne    12c8 <_SetBaud+0x148>
mov    0x2c84(%rip),%rax
jmp    12c6 <_SetBaud+0x146>
mov    0x2cdb(%rip),%rax
jmp    12c6 <_SetBaud+0x146>
mov    0x2cb2(%rip),%rax
mov    (%rax),%ebp
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
call   1080 <cfsetispeed@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <cfsetospeed@plt>
mov    (%r12),%eax
not    %eax
and    0x10(%rsp),%eax
or     0x0(%r13),%eax
mov    0x2cb2(%rip),%rcx
mov    (%rcx),%ecx
or     (%r15),%ecx
mov    0x2c1e(%rip),%rdx
or     (%rdx),%ecx
not    %ecx
and    %eax,%ecx
mov    %ecx,0x10(%rsp)
mov    0x2c45(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1070 <tcsetattr@plt>
test   %rax,%rax
je     133c <_SetBaud+0x1bc>
mov    0x2c34(%rip),%rax
mov    (%rax),%edi
lea    0xce2(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1358 <_SetBaud+0x1d8>
mov    %r14,%rdi
call   1030 <tcdrain@plt>
mov    $0x30d40,%edi
call   10a0 <usleep@plt>
mov    $0x2,%edi
call   1090 <sleep@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.termios = type { i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [23 x i8] c"Can't get port config\0A\00"
@IGNBRK = global i32 0
@BRKINT = global i32 0
@PARMRK = global i32 0
@ISTRIP = global i32 0
@INLCR = global i32 0
@IGNCR = global i32 0
@ICRNL = global i32 0
@IXON = global i32 0
@OPOST = global i32 0
@ECHO = global i32 0
@ECHONL = global i32 0
@ICANON = global i32 0
@ISIG = global i32 0
@IEXTEN = global i32 0
@CSIZE = global i32 0
@PARENB = global i32 0
@CS8 = global i32 0
@B9600 = global i32 0
@B38400 = global i32 0
@B57600 = global i32 0
@B115200 = global i32 0
@CSTOPB = global i32 0
@PARODD = global i32 0
@TCSADRAIN = global i32 0
@.str.1 = [18 x i8] c"Error: tcsetattr\0A\00"
define void @_SetBaud(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca %struct.termios
%6 = alloca i32
store i64 %0, i64* %3
store i64 %1, i64* %4
%7 = load i64, i64* %3
%8 = call i64 @tcgetattr(i64 %7, %struct.termios* %5)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %109
13: ; preds = %2
%14 = load i32, i32* @IGNBRK
%15 = load i32, i32* @BRKINT
%16 = or i32 %14, %15
%17 = load i32, i32* @PARMRK
%18 = or i32 %16, %17
%19 = load i32, i32* @ISTRIP
%20 = or i32 %18, %19
%21 = load i32, i32* @INLCR
%22 = or i32 %20, %21
%23 = load i32, i32* @IGNCR
%24 = or i32 %22, %23
%25 = load i32, i32* @ICRNL
%26 = or i32 %24, %25
%27 = load i32, i32* @IXON
%28 = or i32 %26, %27
%29 = xor i32 %28, -1
%30 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 0
%31 = load i32, i32* %30
%32 = and i32 %31, %29
store i32 %32, i32* %30
%33 = load i32, i32* @OPOST
%34 = xor i32 %33, -1
%35 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 3
%36 = load i32, i32* %35
%37 = and i32 %36, %34
store i32 %37, i32* %35
%38 = load i32, i32* @ECHO
%39 = load i32, i32* @ECHONL
%40 = or i32 %38, %39
%41 = load i32, i32* @ICANON
%42 = or i32 %40, %41
%43 = load i32, i32* @ISIG
%44 = or i32 %42, %43
%45 = load i32, i32* @IEXTEN
%46 = or i32 %44, %45
%47 = xor i32 %46, -1
%48 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 1
%49 = load i32, i32* %48
%50 = and i32 %49, %47
store i32 %50, i32* %48
%51 = load i32, i32* @CSIZE
%52 = load i32, i32* @PARENB
%53 = or i32 %51, %52
%54 = xor i32 %53, -1
%55 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%56 = load i32, i32* %55
%57 = and i32 %56, %54
store i32 %57, i32* %55
%58 = load i32, i32* @CS8
%59 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%60 = load i32, i32* %59
%61 = or i32 %60, %58
store i32 %61, i32* %59
%62 = load i64, i64* %4
switch i64 %62, label %71 [
i64 9600, label %63
i64 38400, label %65
i64 57600, label %67
i64 115200, label %69
]
63: ; preds = %13
%64 = load i32, i32* @B9600
store i32 %64, i32* %6
br label %71
65: ; preds = %13
%66 = load i32, i32* @B38400
store i32 %66, i32* %6
br label %71
67: ; preds = %13
%68 = load i32, i32* @B57600
store i32 %68, i32* %6
br label %71
69: ; preds = %13
%70 = load i32, i32* @B115200
store i32 %70, i32* %6
br label %71
71: ; preds = %13, %69, %67, %65, %63
%72 = load i32, i32* %6
%73 = call i32 @cfsetispeed(%struct.termios* %5, i32 %72)
%74 = load i32, i32* %6
%75 = call i32 @cfsetospeed(%struct.termios* %5, i32 %74)
%76 = load i32, i32* @CSIZE
%77 = xor i32 %76, -1
%78 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%79 = load i32, i32* %78
%80 = and i32 %79, %77
store i32 %80, i32* %78
%81 = load i32, i32* @CS8
%82 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%83 = load i32, i32* %82
%84 = or i32 %83, %81
store i32 %84, i32* %82
%85 = load i32, i32* @CSTOPB
%86 = xor i32 %85, -1
%87 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%88 = load i32, i32* %87
%89 = and i32 %88, %86
store i32 %89, i32* %87
%90 = load i32, i32* @PARENB
%91 = load i32, i32* @PARODD
%92 = or i32 %90, %91
%93 = xor i32 %92, -1
%94 = getelementptr inbounds %struct.termios, %struct.termios* %5, i32 0, i32 2
%95 = load i32, i32* %94
%96 = and i32 %95, %93
store i32 %96, i32* %94
%97 = load i64, i64* %3
%98 = load i32, i32* @TCSADRAIN
%99 = call i64 @tcsetattr(i64 %97, i32 %98, %struct.termios* %5)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %71
%102 = load i32, i32* @stderr
%103 = call i32 @fprintf(i32 %102, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %109
104: ; preds = %71
%105 = load i64, i64* %3
%106 = call i32 @tcdrain(i64 %105)
%107 = call i32 @usleep(i32 200000)
%108 = call i32 @sleep(i32 2)
br label %109
109: ; preds = %104, %101, %10
ret void
}

LLVM IR (-O2):
%struct.termios = type { i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [23 x i8] c"Can't get port config\0A\00"
@IGNBRK = global i32 0
@BRKINT = global i32 0
@PARMRK = global i32 0
@ISTRIP = global i32 0
@INLCR = global i32 0
@IGNCR = global i32 0
@ICRNL = global i32 0
@IXON = global i32 0
@OPOST = global i32 0
@ECHO = global i32 0
@ECHONL = global i32 0
@ICANON = global i32 0
@ISIG = global i32 0
@IEXTEN = global i32 0
@CSIZE = global i32 0
@PARENB = global i32 0
@CS8 = global i32 0
@B9600 = global i32 0
@B38400 = global i32 0
@B57600 = global i32 0
@B115200 = global i32 0
@CSTOPB = global i32 0
@PARODD = global i32 0
@TCSADRAIN = global i32 0
@.str.1 = [18 x i8] c"Error: tcsetattr\0A\00"
define void @_SetBaud(i64 %0, i64 %1) {
%3 = alloca %struct.termios
%4 = bitcast %struct.termios* %3 to i8*
%5 = call i64 @tcgetattr(i64 %0, %struct.termios* %3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %92
10: ; preds = %2
%11 = load i32, i32* @IGNBRK
%12 = load i32, i32* @BRKINT
%13 = or i32 %12, %11
%14 = load i32, i32* @PARMRK
%15 = or i32 %13, %14
%16 = load i32, i32* @ISTRIP
%17 = or i32 %15, %16
%18 = load i32, i32* @INLCR
%19 = or i32 %17, %18
%20 = load i32, i32* @IGNCR
%21 = or i32 %19, %20
%22 = load i32, i32* @ICRNL
%23 = or i32 %21, %22
%24 = load i32, i32* @IXON
%25 = or i32 %23, %24
%26 = xor i32 %25, -1
%27 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%28 = load i32, i32* %27
%29 = and i32 %28, %26
store i32 %29, i32* %27
%30 = load i32, i32* @OPOST
%31 = xor i32 %30, -1
%32 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 3
%33 = load i32, i32* %32
%34 = and i32 %33, %31
store i32 %34, i32* %32
%35 = load i32, i32* @ECHO
%36 = load i32, i32* @ECHONL
%37 = or i32 %36, %35
%38 = load i32, i32* @ICANON
%39 = or i32 %37, %38
%40 = load i32, i32* @ISIG
%41 = or i32 %39, %40
%42 = load i32, i32* @IEXTEN
%43 = or i32 %41, %42
%44 = xor i32 %43, -1
%45 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
%46 = load i32, i32* %45
%47 = and i32 %46, %44
store i32 %47, i32* %45
%48 = load i32, i32* @CSIZE
%49 = load i32, i32* @PARENB
%50 = or i32 %49, %48
%51 = xor i32 %50, -1
%52 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 2
%53 = load i32, i32* %52
%54 = and i32 %53, %51
%55 = load i32, i32* @CS8
%56 = or i32 %55, %54
store i32 %56, i32* %52
switch i64 %1, label %65 [
i64 9600, label %57
i64 38400, label %59
i64 57600, label %61
i64 115200, label %63
]
57: ; preds = %10
%58 = load i32, i32* @B9600
br label %65
59: ; preds = %10
%60 = load i32, i32* @B38400
br label %65
61: ; preds = %10
%62 = load i32, i32* @B57600
br label %65
63: ; preds = %10
%64 = load i32, i32* @B115200
br label %65
65: ; preds = %10, %63, %61, %59, %57
%66 = phi i32 [ undef, %10 ], [ %64, %63 ], [ %62, %61 ], [ %60, %59 ], [ %58, %57 ]
%67 = call i32 @cfsetispeed(%struct.termios* %3, i32 %66)
%68 = call i32 @cfsetospeed(%struct.termios* %3, i32 %66)
%69 = load i32, i32* @CSIZE
%70 = xor i32 %69, -1
%71 = load i32, i32* %52
%72 = and i32 %71, %70
%73 = load i32, i32* @CS8
%74 = or i32 %73, %72
%75 = load i32, i32* @CSTOPB
%76 = load i32, i32* @PARENB
%77 = load i32, i32* @PARODD
%78 = or i32 %77, %76
%79 = or i32 %75, %78
%80 = xor i32 %79, -1
%81 = and i32 %74, %80
store i32 %81, i32* %52
%82 = load i32, i32* @TCSADRAIN
%83 = call i64 @tcsetattr(i64 %0, i32 %82, %struct.termios* %3)
%84 = icmp eq i64 %83, 0
br i1 %84, label %88, label %85
85: ; preds = %65
%86 = load i32, i32* @stderr
%87 = call i32 @fprintf(i32 %86, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %92
88: ; preds = %65
%89 = call i32 @tcdrain(i64 %0)
%90 = call i32 @usleep(i32 200000)
%91 = call i32 @sleep(i32 2)
br label %92
92: ; preds = %88, %85, %7
ret void
}