#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 */

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ ltrim(char *);
char *ltrim_chars(char *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ rtrim(char *);
char *rtrim_chars(char *, char *);
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
scalar_t__ strlen(char *);
char *trim(char *);
char *trim_chars(char *, char *);
int main(void) {
  char *msg = strdup("\t\n\r test \x0B\x0C");
  msg = trim(msg);
  assert(strcmp(msg, "test") == 0);
  free(msg);
  char msg2[] = "\ntest\n";
  trim_chars(msg2, "\n");
  assert(strcmp(msg2, "test") == 0);
  char msg3[] = "  test test";
  trim(msg3);
  assert(strcmp(msg3, "test test") == 0);
  char msg4[] = "  test  ";
  ltrim(msg4);
  assert(strcmp(msg4, "test  ") == 0);
  char msg5[] = "  test  ";
  rtrim(msg5);
  assert(strcmp(msg5, "  test") == 0);
  char *msg6 = strdup(" ");
  msg6 = trim(msg6);
  assert(strlen(msg6) == 0);
  free(msg6);
  char *msg7 = NULL;
  assert(trim(msg7) == NULL);
  char *msg8 = strdup("...test...");
  msg8 = trim_chars(msg8, ".");
  assert(strcmp(msg8, "test") == 0);
  free(msg8);
  char *msg9 = strdup("...test...");
  msg9 = ltrim_chars(msg9, ".");
  assert(strcmp(msg9, "test...") == 0);
  free(msg9);
  char *msg10 = strdup("...test...");
  msg10 = rtrim_chars(msg10, ".");
  assert(strcmp(msg10, "...test") == 0);
  free(msg10);
  printf("OK\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe2a(%rip),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <trim@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    0xdf0(%rip),%eax
mov    %eax,-0x17(%rbp)
mov    0xdea(%rip),%ax
mov    %ax,-0x13(%rbp)
mov    0xde2(%rip),%al
mov    %al,-0x11(%rbp)
lea    -0x17(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   10e0 <trim_chars@plt>
lea    -0x17(%rbp),%rdi
lea    0xddc(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    0xda8(%rip),%rax
mov    %rax,-0x23(%rbp)
mov    0xda6(%rip),%eax
mov    %eax,-0x1b(%rbp)
lea    -0x23(%rbp),%rdi
call   1070 <trim@plt>
lea    -0x23(%rbp),%rdi
lea    0xd89(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    0xd76(%rip),%rax
mov    %rax,-0x2c(%rbp)
mov    0xd74(%rip),%al
mov    %al,-0x24(%rbp)
lea    -0x2c(%rbp),%rdi
call   10c0 <ltrim@plt>
lea    -0x2c(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    0xd38(%rip),%rax
mov    %rax,-0x35(%rbp)
mov    0xd36(%rip),%al
mov    %al,-0x2d(%rbp)
lea    -0x35(%rbp),%rdi
call   10b0 <rtrim@plt>
lea    -0x35(%rbp),%rdi
lea    0xd20(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xd01(%rip),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
call   1070 <trim@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
call   1070 <trim@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xca8(%rip),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xc9d(%rip),%rsi
call   10e0 <trim_chars@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xc7b(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
lea    0xc5a(%rip),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
lea    0xc4f(%rip),%rsi
call   1080 <ltrim_chars@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
lea    0xc35(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
lea    0xc0c(%rip),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
lea    0xc01(%rip),%rsi
call   1060 <rtrim_chars@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
lea    0xbef(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
lea    0xbd1(%rip),%rdi
call   1050 <printf@plt>
mov    0x2b63(%rip),%rax
mov    (%rax),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xe3e(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rdi
call   1060 <trim@plt>
mov    %rax,%rbx
lea    0xe51(%rip),%r14
mov    %rax,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
movl   $0xa7473,0x3(%rsp)
movl   $0x7365740a,(%rsp)
lea    0xe01(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10d0 <trim_chars@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
movabs $0x7420747365742020,%rax
74 20 74
mov    %rax,0x28(%rsp)
movl   $0x747365,0x30(%rsp)
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <trim@plt>
lea    0xdb6(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
movabs $0x2020747365742020,%r15
74 20 20
mov    %r15,0x18(%rsp)
movb   $0x0,0x20(%rsp)
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <ltrim@plt>
lea    0xd84(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    %r15,0x8(%rsp)
movb   $0x0,0x10(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <rtrim@plt>
lea    0xd57(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
lea    0xd38(%rip),%rdi
call   10c0 <strdup@plt>
mov    %rax,%rdi
call   1060 <trim@plt>
mov    %rax,%rbx
xor    %edi,%edi
cmpb   $0x0,(%rax)
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1060 <trim@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
lea    0xcff(%rip),%r12
mov    %r12,%rdi
call   10c0 <strdup@plt>
lea    0xcf9(%rip),%r15
mov    %rax,%rdi
mov    %r15,%rsi
call   10d0 <trim_chars@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   10c0 <strdup@plt>
mov    %rax,%rdi
mov    %r15,%rsi
call   1070 <ltrim_chars@plt>
mov    %rax,%rbx
lea    0xca7(%rip),%rsi
mov    %rax,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   10c0 <strdup@plt>
mov    %rax,%rdi
mov    %r15,%rsi
call   1050 <rtrim_chars@plt>
mov    %rax,%rbx
lea    0xc74(%rip),%rsi
mov    %rax,%rdi
call   1080 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xc57(%rip),%rdi
call   1040 <puts@plt>
mov    0x2be9(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [12 x i8] c"\09\0A\0D test \0B\0C\00"
@.str.1 = [5 x i8] c"test\00"
@__const.main.msg2 = [7 x i8] c"\0Atest\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@__const.main.msg3 = [12 x i8] c" test test\00"
@.str.3 = [10 x i8] c"test test\00"
@__const.main.msg4 = [9 x i8] c" test \00"
@.str.4 = [7 x i8] c"test \00"
@__const.main.msg5 = [9 x i8] c" test \00"
@.str.5 = [7 x i8] c" test\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [11 x i8] c"...test...\00"
@.str.8 = [2 x i8] c".\00"
@.str.9 = [8 x i8] c"test...\00"
@.str.10 = [8 x i8] c"...test\00"
@.str.11 = [4 x i8] c"OK\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca [7 x i8]
%4 = alloca [12 x i8]
%5 = alloca [9 x i8]
%6 = alloca [9 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
store i32 0, i32* %1
%12 = call i8* @strdup(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i8* %12, i8** %2
%13 = load i8*, i8** %2
%14 = call i8* @trim(i8* %13)
store i8* %14, i8** %2
%15 = load i8*, i8** %2
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = load i8*, i8** %2
%21 = call i32 @free(i8* %20)
%22 = bitcast [7 x i8]* %3 to i8*
%23 = getelementptr inbounds [7 x i8], [7 x i8]* %3, i64 0, i64 0
%24 = call i8* @trim_chars(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = getelementptr inbounds [7 x i8], [7 x i8]* %3, i64 0, i64 0
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = bitcast [12 x i8]* %4 to i8*
%31 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%32 = call i8* @trim(i8* %31)
%33 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = bitcast [9 x i8]* %5 to i8*
%39 = getelementptr inbounds [9 x i8], [9 x i8]* %5, i64 0, i64 0
%40 = call i32 @ltrim(i8* %39)
%41 = getelementptr inbounds [9 x i8], [9 x i8]* %5, i64 0, i64 0
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 %44)
%46 = bitcast [9 x i8]* %6 to i8*
%47 = getelementptr inbounds [9 x i8], [9 x i8]* %6, i64 0, i64 0
%48 = call i32 @rtrim(i8* %47)
%49 = getelementptr inbounds [9 x i8], [9 x i8]* %6, i64 0, i64 0
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %54, i8** %7
%55 = load i8*, i8** %7
%56 = call i8* @trim(i8* %55)
store i8* %56, i8** %7
%57 = load i8*, i8** %7
%58 = call i64 @strlen(i8* %57)
%59 = icmp eq i64 %58, 0
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 %60)
%62 = load i8*, i8** %7
%63 = call i32 @free(i8* %62)
store i8* null, i8** %8
%64 = load i8*, i8** %8
%65 = call i8* @trim(i8* %64)
%66 = icmp eq i8* %65, null
%67 = zext i1 %66 to i32
%68 = call i32 @assert(i32 %67)
%69 = call i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i8* %69, i8** %9
%70 = load i8*, i8** %9
%71 = call i8* @trim_chars(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %71, i8** %9
%72 = load i8*, i8** %9
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = load i8*, i8** %9
%78 = call i32 @free(i8* %77)
%79 = call i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i8* %79, i8** %10
%80 = load i8*, i8** %10
%81 = call i8* @ltrim_chars(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %81, i8** %10
%82 = load i8*, i8** %10
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = load i8*, i8** %10
%88 = call i32 @free(i8* %87)
%89 = call i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
store i8* %89, i8** %11
%90 = load i8*, i8** %11
%91 = call i8* @rtrim_chars(i8* %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %91, i8** %11
%92 = load i8*, i8** %11
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i8*, i8** %11
%98 = call i32 @free(i8* %97)
%99 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%100 = load i32, i32* @EXIT_SUCCESS
ret i32 %100
}

LLVM IR (-O2):
@.str = [12 x i8] c"\09\0A\0D test \0B\0C\00"
@.str.1 = [5 x i8] c"test\00"
@__const.main.msg2 = [7 x i8] c"\0Atest\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@__const.main.msg3 = [12 x i8] c" test test\00"
@.str.3 = [10 x i8] c"test test\00"
@.str.4 = [7 x i8] c"test \00"
@__const.main.msg5 = [9 x i8] c" test \00"
@.str.5 = [7 x i8] c" test\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [11 x i8] c"...test...\00"
@.str.8 = [2 x i8] c".\00"
@.str.9 = [8 x i8] c"test...\00"
@.str.10 = [8 x i8] c"...test\00"
@EXIT_SUCCESS = global i32 0
@str = [3 x i8] c"OK\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [12 x i8]
%3 = alloca [9 x i8]
%4 = alloca [9 x i8]
%5 = tail call dereferenceable_or_null(12) i8* @strdup(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%6 = tail call i8* @trim(i8* %5)
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 @free(i8* %6)
%12 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%13 = call i8* @trim_chars(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%19 = call i8* @trim(i8* %18)
%20 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%25 = call i32 @ltrim(i8* %24)
%26 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = getelementptr inbounds [9 x i8], [9 x i8]* %4, i64 0, i64 0
%31 = call i32 @rtrim(i8* %30)
%32 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%37 = call i8* @trim(i8* %36)
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = call i32 @free(i8* %37)
%43 = call i8* @trim(i8* null)
%44 = icmp eq i8* %43, null
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = call dereferenceable_or_null(11) i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%48 = call i8* @trim_chars(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i32 @free(i8* %48)
%54 = call dereferenceable_or_null(11) i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%55 = call i8* @ltrim_chars(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
%60 = call i32 @free(i8* %55)
%61 = call dereferenceable_or_null(11) i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%62 = call i8* @rtrim_chars(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = call i32 @free(i8* %62)
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%69 = load i32, i32* @EXIT_SUCCESS
ret i32 %69
}