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

/* Variables and functions */
int BUFSIZ;
int CLOCAL;
int CRTSCTS;
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ TCIOFLUSH;
int /*<<< orphan*/ TCSANOW;
int atoi(char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ set_RTS(int, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(char *, char *, int);
int tcflush(int, int /*<<< orphan*/);
int tcgetattr(int, struct termios *);
int tcsetattr(int, int /*<<< orphan*/, struct termios *);
int /*<<< orphan*/ usleep(int);
int main(int argc, char **argv) {
  int fd;
  char serial_name[BUFSIZ];
  struct termios attr;
  struct termios oldterminfo;
  int result;
  int length = 1000000;
  if (argc > 1) {
    strncpy(serial_name, argv[1], BUFSIZ);
  } else {
    strcpy(serial_name, "/dev/ttyAMA0");
  }
  if (argc > 2) {
    length = atoi(argv[2]);
  }
  fd = open(serial_name, O_RDWR);
  if (fd < 0) {
    fprintf(stderr, "Error opening %s: %s\n", serial_name, strerror(errno));
    return -1;
  }
  result = tcgetattr(fd, &oldterminfo);
  if (result < 0) {
    fprintf(stderr, "Error tcgetattr(): %s\n", strerror(errno));
    return -1;
  }
  attr = oldterminfo;
  attr.c_cflag |= CRTSCTS | CLOCAL;
  attr.c_oflag = 0;
  result = tcflush(fd, TCIOFLUSH);
  if (result < 0) {
    fprintf(stderr, "ERROR tcflush() :%s\n", strerror(errno));
    return -1;
  }
  result = tcsetattr(fd, TCSANOW, &attr);
  if (result < 0) {
    fprintf(stderr, "ERROR: tcsetattr() :%s\n", strerror(errno));
    return -1;
  }
  set_RTS(fd, 0);
  usleep(length);
  set_RTS(fd, 1);
  tcsetattr(fd, TCSANOW, &oldterminfo);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2deb(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0xf4240,-0x50(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1232 <main+0x72>
mov    -0x60(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    0x2da2(%rip),%rax
mov    (%rax),%edx
call   1030 <strncpy@plt>
jmp    1242 <main+0x82>
mov    -0x60(%rbp),%rdi
lea    0xdc3(%rip),%rsi
call   1040 <strcpy@plt>
cmpl   $0x2,-0x8(%rbp)
jle    125c <main+0x9c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x50(%rbp)
mov    -0x60(%rbp),%rdi
mov    0x2d81(%rip),%rax
mov    (%rax),%esi
call   10b0 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12c0 <main+0x100>
mov    0x2d4e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1456 <main+0x296>
mov    -0x14(%rbp),%edi
lea    -0x48(%rbp),%rsi
call   1090 <tcgetattr@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jge    131a <main+0x15a>
mov    0x2cf0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x68(%rbp)
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x68(%rbp),%edi
mov    %rax,%rdx
lea    0xd23(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1456 <main+0x296>
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c77(%rip),%rax
mov    (%rax),%eax
mov    0x2c66(%rip),%rcx
or     (%rcx),%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2c64(%rip),%rax
mov    (%rax),%esi
call   1060 <tcflush@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jge    13a9 <main+0x1e9>
mov    0x2c61(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x6c(%rbp),%edi
mov    %rax,%rdx
lea    0xcab(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1456 <main+0x296>
mov    -0x14(%rbp),%edi
mov    0x2c2d(%rip),%rax
mov    (%rax),%esi
lea    -0x38(%rbp),%rdx
call   10a0 <tcsetattr@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jge    140c <main+0x24c>
mov    0x2bfe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2be2(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x70(%rbp),%edi
mov    %rax,%rdx
lea    0xc5d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1456 <main+0x296>
mov    -0x14(%rbp),%edi
xor    %esi,%esi
call   1050 <set_RTS@plt>
mov    -0x50(%rbp),%edi
call   10e0 <usleep@plt>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1050 <set_RTS@plt>
mov    -0x14(%rbp),%edi
mov    0x2bab(%rip),%rax
mov    (%rax),%esi
lea    -0x48(%rbp),%rdx
call   10a0 <tcsetattr@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x54(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    0x2df2(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rbx
lea    0xf(%rdx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmp    $0x1,%edi
jle    121a <main+0x5a>
mov    %rsi,%r15
mov    %edi,%r12d
mov    0x8(%rsi),%rsi
mov    %rbx,%rdi
call   1030 <strncpy@plt>
mov    $0xf4240,%r14d
cmp    $0x2,%r12d
je     122f <main+0x6f>
mov    0x10(%r15),%rdi
call   10c0 <atoi@plt>
mov    %eax,%r14d
jmp    122f <main+0x6f>
lea    0xddf(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    $0xf4240,%r14d
mov    0x2db2(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10b0 <open@plt>
test   %eax,%eax
js     12f9 <main+0x139>
mov    %eax,%r15d
lea    -0x40(%rbp),%rsi
mov    %eax,%edi
call   1090 <tcgetattr@plt>
test   %eax,%eax
js     132a <main+0x16a>
movups -0x40(%rbp),%xmm0
mov    0x2d3f(%rip),%rax
mov    0x2d30(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
movaps %xmm0,-0x30(%rbp)
or     %ecx,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    0x2d2e(%rip),%rax
mov    (%rax),%esi
mov    %r15d,%edi
call   1060 <tcflush@plt>
test   %eax,%eax
js     134a <main+0x18a>
mov    0x2d3d(%rip),%r12
mov    (%r12),%esi
lea    -0x30(%rbp),%rdx
mov    %r15d,%edi
call   10a0 <tcsetattr@plt>
test   %eax,%eax
js     136a <main+0x1aa>
xor    %ebx,%ebx
mov    %r15d,%edi
xor    %esi,%esi
call   1050 <set_RTS@plt>
mov    %r14d,%edi
call   10e0 <usleep@plt>
mov    %r15d,%edi
mov    $0x1,%esi
call   1050 <set_RTS@plt>
mov    (%r12),%esi
lea    -0x40(%rbp),%rdx
mov    %r15d,%edi
call   10a0 <tcsetattr@plt>
mov    %r15d,%edi
call   1070 <close@plt>
jmp    1399 <main+0x1d9>
mov    0x2cd0(%rip),%rax
mov    (%rax),%r14d
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcf5(%rip),%rsi
mov    %r14d,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    1394 <main+0x1d4>
mov    0x2c9f(%rip),%rax
mov    (%rax),%ebx
mov    0x2c86(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcdb(%rip),%rsi
jmp    1388 <main+0x1c8>
mov    0x2c7f(%rip),%rax
mov    (%rax),%ebx
mov    0x2c66(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcd2(%rip),%rsi
jmp    1388 <main+0x1c8>
mov    0x2c5f(%rip),%rax
mov    (%rax),%ebx
mov    0x2c46(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcc7(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.termios = type { i32, i64 }
@BUFSIZ = global i32 0
@.str = [13 x i8] c"/dev/ttyAMA0\00"
@O_RDWR = global i32 0
@stderr = global i32 0
@.str.1 = [22 x i8] c"Error opening %s: %s\0A\00"
@errno = global i32 0
@.str.2 = [23 x i8] c"Error tcgetattr(): %s\0A\00"
@CRTSCTS = global i32 0
@CLOCAL = global i32 0
@TCIOFLUSH = global i32 0
@.str.3 = [21 x i8] c"ERROR tcflush() :%s\0A\00"
@TCSANOW = global i32 0
@.str.4 = [24 x i8] c"ERROR: tcsetattr() :%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca %struct.termios
%10 = alloca %struct.termios
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* @BUFSIZ
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %7
%17 = alloca i8, i64 %15
store i64 %15, i64* %8
store i32 1000000, i32* %12
%18 = load i32, i32* %4
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = load i32, i32* @BUFSIZ
%25 = call i32 @strncpy(i8* %17, i8* %23, i32 %24)
br label %28
26: ; preds = %2
%27 = call i32 @strcpy(i8* %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %28
28: ; preds = %26, %20
%29 = load i32, i32* %4
%30 = icmp sgt i32 %29, 2
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
%35 = call i32 @atoi(i8* %34)
store i32 %35, i32* %12
br label %36
36: ; preds = %31, %28
%37 = load i32, i32* @O_RDWR
%38 = call i32 @open(i8* %17, i32 %37)
store i32 %38, i32* %6
%39 = load i32, i32* %6
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = load i32, i32* @stderr
%43 = load i32, i32* @errno
%44 = call i8* @strerror(i32 %43)
%45 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %17, i8* %44)
store i32 -1, i32* %3
store i32 1, i32* %13
br label %99
46: ; preds = %36
%47 = load i32, i32* %6
%48 = call i32 @tcgetattr(i32 %47, %struct.termios* %10)
store i32 %48, i32* %11
%49 = load i32, i32* %11
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %46
%52 = load i32, i32* @stderr
%53 = load i32, i32* @errno
%54 = call i8* @strerror(i32 %53)
%55 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %54)
store i32 -1, i32* %3
store i32 1, i32* %13
br label %99
56: ; preds = %46
%57 = bitcast %struct.termios* %9 to i8*
%58 = bitcast %struct.termios* %10 to i8*
%59 = load i32, i32* @CRTSCTS
%60 = load i32, i32* @CLOCAL
%61 = or i32 %59, %60
%62 = getelementptr inbounds %struct.termios, %struct.termios* %9, i32 0, i32 0
%63 = load i32, i32* %62
%64 = or i32 %63, %61
store i32 %64, i32* %62
%65 = getelementptr inbounds %struct.termios, %struct.termios* %9, i32 0, i32 1
store i64 0, i64* %65
%66 = load i32, i32* %6
%67 = load i32, i32* @TCIOFLUSH
%68 = call i32 @tcflush(i32 %66, i32 %67)
store i32 %68, i32* %11
%69 = load i32, i32* %11
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %56
%72 = load i32, i32* @stderr
%73 = load i32, i32* @errno
%74 = call i8* @strerror(i32 %73)
%75 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %74)
store i32 -1, i32* %3
store i32 1, i32* %13
br label %99
76: ; preds = %56
%77 = load i32, i32* %6
%78 = load i32, i32* @TCSANOW
%79 = call i32 @tcsetattr(i32 %77, i32 %78, %struct.termios* %9)
store i32 %79, i32* %11
%80 = load i32, i32* %11
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %76
%83 = load i32, i32* @stderr
%84 = load i32, i32* @errno
%85 = call i8* @strerror(i32 %84)
%86 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* %85)
store i32 -1, i32* %3
store i32 1, i32* %13
br label %99
87: ; preds = %76
%88 = load i32, i32* %6
%89 = call i32 @set_RTS(i32 %88, i32 0)
%90 = load i32, i32* %12
%91 = call i32 @usleep(i32 %90)
%92 = load i32, i32* %6
%93 = call i32 @set_RTS(i32 %92, i32 1)
%94 = load i32, i32* %6
%95 = load i32, i32* @TCSANOW
%96 = call i32 @tcsetattr(i32 %94, i32 %95, %struct.termios* %10)
%97 = load i32, i32* %6
%98 = call i32 @close(i32 %97)
store i32 0, i32* %3
store i32 1, i32* %13
br label %99
99: ; preds = %87, %82, %71, %51, %41
%100 = load i8*, i8** %7
%101 = load i32, i32* %3
ret i32 %101
}

LLVM IR (-O2):
%struct.termios = type { i32, i64 }
@BUFSIZ = global i32 0
@.str = [13 x i8] c"/dev/ttyAMA0\00"
@O_RDWR = global i32 0
@stderr = global i32 0
@.str.1 = [22 x i8] c"Error opening %s: %s\0A\00"
@errno = global i32 0
@.str.2 = [23 x i8] c"Error tcgetattr(): %s\0A\00"
@CRTSCTS = global i32 0
@CLOCAL = global i32 0
@TCIOFLUSH = global i32 0
@.str.3 = [21 x i8] c"ERROR tcflush() :%s\0A\00"
@TCSANOW = global i32 0
@.str.4 = [24 x i8] c"ERROR: tcsetattr() :%s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.termios
%4 = alloca %struct.termios
%5 = load i32, i32* @BUFSIZ
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = bitcast %struct.termios* %3 to i8*
%9 = bitcast %struct.termios* %4 to i8*
%10 = icmp sgt i32 %0, 1
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %22
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @strncpy(i8* %7, i8* %15, i32 %5)
%17 = icmp eq i32 %0, 2
br i1 %17, label %22, label %18
18: ; preds = %13
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
br label %22
22: ; preds = %11, %18, %13
%23 = phi i32 [ %21, %18 ], [ 1000000, %13 ], [ 1000000, %11 ]
%24 = load i32, i32* @O_RDWR
%25 = call i32 @open(i8* %7, i32 %24)
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load i32, i32* @stderr
%29 = load i32, i32* @errno
%30 = call i8* @strerror(i32 %29)
%31 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %30)
br label %72
32: ; preds = %22
%33 = call i32 @tcgetattr(i32 %25, %struct.termios* %4)
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load i32, i32* @stderr
%37 = load i32, i32* @errno
%38 = call i8* @strerror(i32 %37)
%39 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %38)
br label %72
40: ; preds = %32
%41 = load i32, i32* @CRTSCTS
%42 = load i32, i32* @CLOCAL
%43 = or i32 %42, %41
%44 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 0
%45 = load i32, i32* %44
%46 = or i32 %43, %45
store i32 %46, i32* %44
%47 = getelementptr inbounds %struct.termios, %struct.termios* %3, i64 0, i32 1
store i64 0, i64* %47
%48 = load i32, i32* @TCIOFLUSH
%49 = call i32 @tcflush(i32 %25, i32 %48)
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %40
%52 = load i32, i32* @stderr
%53 = load i32, i32* @errno
%54 = call i8* @strerror(i32 %53)
%55 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %54)
br label %72
56: ; preds = %40
%57 = load i32, i32* @TCSANOW
%58 = call i32 @tcsetattr(i32 %25, i32 %57, %struct.termios* %3)
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = load i32, i32* @errno
%63 = call i8* @strerror(i32 %62)
%64 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* %63)
br label %72
65: ; preds = %56
%66 = call i32 @set_RTS(i32 %25, i32 0)
%67 = call i32 @usleep(i32 %23)
%68 = call i32 @set_RTS(i32 %25, i32 1)
%69 = load i32, i32* @TCSANOW
%70 = call i32 @tcsetattr(i32 %25, i32 %69, %struct.termios* %4)
%71 = call i32 @close(i32 %25)
br label %72
72: ; preds = %65, %60, %51, %35, %27
%73 = phi i32 [ -1, %27 ], [ -1, %35 ], [ -1, %51 ], [ -1, %60 ], [ 0, %65 ]
ret i32 %73
}