#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 */
typedef int /*<<< orphan*/ msg;

/* Variables and functions */
int /*<<< orphan*/ fec_close();
unsigned char *fec_decode(unsigned char const *, unsigned int *);
unsigned char *fec_encode(unsigned char *, unsigned int *, int);
int /*<<< orphan*/ fec_open();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  unsigned char msg[] = "PAYLOAD1"
                        "PAYLOAD2"
                        "PAYLOAD3"
                        "PAYLOAD4";
  int c;
  const unsigned char *buf;
  const unsigned char *cbuf;
  unsigned int i, len, len_temp;
  unsigned char *temp;
  printf("\n \n \n");
  printf("*************************************************************\n");
  printf(" WE WANT TO ENCODE: \n");
  printf("");
  for (i = 0; i < sizeof(msg) - 1; ++i) {
    printf("%c", msg[i]);
  }
  printf("\n");
  printf("*************************************************************\n");
  printf("\n \n \n");
  fec_open();
  for (c = 0; len = sizeof(msg) - 1, (buf = fec_encode(msg, &len, c)) != 0;
       ++c) {
  }
  len = sizeof(msg) - 1;
  buf = fec_encode(msg, &len, 0);
  cbuf = fec_decode(buf, &len);
  len = sizeof(msg) - 1;
  buf = fec_encode(msg, &len, 1);
  cbuf = fec_decode(buf, &len);
  len = sizeof(msg) - 1;
  buf = fec_encode(msg, &len, 3);
  if (cbuf != 0) {
    printf("\n \n \n");
    printf(
        "******************************************************************\n");
    printf(
        "!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS DECODED!!!!!!!!!!!!!!!!!\n");
    printf(
        "******************************************************************\n");
    printf("");
    for (i = 0; i < len; ++i) {
      printf("%c", cbuf[i]);
    }
    printf("\n");
  } else {
    printf("\n \n \n");
    printf(
        "******************************************************************\n");
    printf("!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS NOT "
           "DECODED!!!!!!!!!!!!!!!!!\n");
    printf(
        "******************************************************************\n");
  }
  fec_close();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xe86(%rip),%rsi
mov    $0x21,%edx
call   1050 <memcpy@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    $0x20,%rax
jae    11f4 <main+0x94>
mov    -0x4c(%rbp),%eax
movzbl -0x30(%rbp,%rax,1),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11c3 <main+0x63>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <fec_open@plt>
movl   $0x0,-0x34(%rbp)
movl   $0x20,-0x50(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%edx
lea    -0x50(%rbp),%rsi
call   1060 <fec_encode@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     1264 <main+0x104>
jmp    1256 <main+0xf6>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    122c <main+0xcc>
movl   $0x20,-0x50(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
xor    %edx,%edx
call   1060 <fec_encode@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <fec_decode@plt>
mov    %rax,-0x48(%rbp)
movl   $0x20,-0x50(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x1,%edx
call   1060 <fec_encode@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <fec_decode@plt>
mov    %rax,-0x48(%rbp)
movl   $0x20,-0x50(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x3,%edx
call   1060 <fec_encode@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1378 <main+0x218>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jae    1365 <main+0x205>
mov    -0x48(%rbp),%rax
mov    -0x4c(%rbp),%ecx
movzbl (%rax,%rcx,1),%esi
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1332 <main+0x1d2>
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b0 <main+0x250>
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <fec_close@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe82(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movb   $0x0,0x30(%rsp)
lea    0xeec(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xf28(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe74(%rip),%rdi
call   1040 <puts@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x31,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x32,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x33,%edi
call   1030 <putchar@plt>
mov    $0x50,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x59,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x34,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <fec_open@plt>
lea    0x10(%rsp),%r14
lea    0xc(%rsp),%r15
nop
movl   $0x20,0xc(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1060 <fec_encode@plt>
add    $0x1,%ebx
test   %rax,%rax
jne    1320 <main+0x1c0>
movl   $0x20,0xc(%rsp)
lea    0x10(%rsp),%r14
lea    0xc(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   1060 <fec_encode@plt>
mov    %rax,%rdi
mov    %r15,%rsi
call   1050 <fec_decode@plt>
movl   $0x20,0xc(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   1060 <fec_encode@plt>
mov    %rax,%rdi
mov    %r15,%rsi
call   1050 <fec_decode@plt>
mov    %rax,%r12
movl   $0x20,0xc(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
call   1060 <fec_encode@plt>
lea    0xccf(%rip),%rdi
test   %r12,%r12
je     1413 <main+0x2b3>
call   1040 <puts@plt>
lea    0xd04(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xcb4(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
je     1407 <main+0x2a7>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%r12,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
mov    0xc(%rsp),%eax
cmp    %rax,%rbx
jb     13f0 <main+0x290>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    143b <main+0x2db>
call   1040 <puts@plt>
lea    0xca2(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xc08(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <fec_close@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.msg = [33 x i8] c"PAYLOAD1PAYLOAD2PAYLOAD3PAYLOAD4\00"
@.str = [6 x i8] c"\0A \0A \0A\00"
@.str.1 = [63 x i8] c"*************************************************************\0A\00"
@.str.2 = [22 x i8] c" WE WANT TO ENCODE: \0A\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [68 x i8] c"******************************************************************\0A\00"
@.str.7 = [66 x i8] c"!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS DECODED!!!!!!!!!!!!!!!!!\0A\00"
@.str.8 = [70 x i8] c"!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS NOT DECODED!!!!!!!!!!!!!!!!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [33 x i8]
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
store i32 0, i32* %1
%10 = bitcast [33 x i8]* %2 to i8*
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %15
15: ; preds = %26, %0
%16 = load i32, i32* %6
%17 = zext i32 %16 to i64
%18 = icmp ult i64 %17, 32
br i1 %18, label %19, label %29
19: ; preds = %15
%20 = load i32, i32* %6
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [33 x i8], [33 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = zext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %24)
br label %26
26: ; preds = %19
%27 = load i32, i32* %6
%28 = add i32 %27, 1
store i32 %28, i32* %6
br label %15
29: ; preds = %15
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%33 = call i32 (...) @fec_open()
store i32 0, i32* %3
br label %34
34: ; preds = %40, %29
store i32 32, i32* %7
%35 = getelementptr inbounds [33 x i8], [33 x i8]* %2, i64 0, i64 0
%36 = load i32, i32* %3
%37 = call i8* @fec_encode(i8* %35, i32* %7, i32 %36)
store i8* %37, i8** %4
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %43
39: ; preds = %34
br label %40
40: ; preds = %39
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %34
43: ; preds = %34
store i32 32, i32* %7
%44 = getelementptr inbounds [33 x i8], [33 x i8]* %2, i64 0, i64 0
%45 = call i8* @fec_encode(i8* %44, i32* %7, i32 0)
store i8* %45, i8** %4
%46 = load i8*, i8** %4
%47 = call i8* @fec_decode(i8* %46, i32* %7)
store i8* %47, i8** %5
store i32 32, i32* %7
%48 = getelementptr inbounds [33 x i8], [33 x i8]* %2, i64 0, i64 0
%49 = call i8* @fec_encode(i8* %48, i32* %7, i32 1)
store i8* %49, i8** %4
%50 = load i8*, i8** %4
%51 = call i8* @fec_decode(i8* %50, i32* %7)
store i8* %51, i8** %5
store i32 32, i32* %7
%52 = getelementptr inbounds [33 x i8], [33 x i8]* %2, i64 0, i64 0
%53 = call i8* @fec_encode(i8* %52, i32* %7, i32 3)
store i8* %53, i8** %4
%54 = load i8*, i8** %5
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %79
56: ; preds = %43
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %62
62: ; preds = %74, %56
%63 = load i32, i32* %6
%64 = load i32, i32* %7
%65 = icmp ult i32 %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i8*, i8** %5
%68 = load i32, i32* %6
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %72)
br label %74
74: ; preds = %66
%75 = load i32, i32* %6
%76 = add i32 %75, 1
store i32 %76, i32* %6
br label %62
77: ; preds = %62
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %84
79: ; preds = %43
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
br label %84
84: ; preds = %79, %77
%85 = call i32 (...) @fec_close()
ret i32 0
}

LLVM IR (-O2):
@__const.main.msg = [33 x i8] c"PAYLOAD1PAYLOAD2PAYLOAD3PAYLOAD4\00"
@str.10 = [21 x i8] c" WE WANT TO ENCODE: \00"
@str.11 = [62 x i8] c"*************************************************************\00"
@str.15 = [69 x i8] c"!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS NOT DECODED!!!!!!!!!!!!!!!!!\00"
@str.17 = [5 x i8] c"\0A \0A \00"
@str.19 = [65 x i8] c"!!!!!!!!!!!!!!!!!THE CONTROL MESSAGE IS DECODED!!!!!!!!!!!!!!!!!\00"
@str.20 = [67 x i8] c"******************************************************************\00"
define i32 @main() {
%1 = alloca [33 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [33 x i8], [33 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 80)
%9 = tail call i32 @putchar(i32 65)
%10 = tail call i32 @putchar(i32 89)
%11 = tail call i32 @putchar(i32 76)
%12 = tail call i32 @putchar(i32 79)
%13 = tail call i32 @putchar(i32 65)
%14 = tail call i32 @putchar(i32 68)
%15 = tail call i32 @putchar(i32 49)
%16 = tail call i32 @putchar(i32 80)
%17 = tail call i32 @putchar(i32 65)
%18 = tail call i32 @putchar(i32 89)
%19 = tail call i32 @putchar(i32 76)
%20 = tail call i32 @putchar(i32 79)
%21 = tail call i32 @putchar(i32 65)
%22 = tail call i32 @putchar(i32 68)
%23 = tail call i32 @putchar(i32 50)
%24 = tail call i32 @putchar(i32 80)
%25 = tail call i32 @putchar(i32 65)
%26 = tail call i32 @putchar(i32 89)
%27 = tail call i32 @putchar(i32 76)
%28 = tail call i32 @putchar(i32 79)
%29 = tail call i32 @putchar(i32 65)
%30 = tail call i32 @putchar(i32 68)
%31 = tail call i32 @putchar(i32 51)
%32 = tail call i32 @putchar(i32 80)
%33 = tail call i32 @putchar(i32 65)
%34 = tail call i32 @putchar(i32 89)
%35 = tail call i32 @putchar(i32 76)
%36 = tail call i32 @putchar(i32 79)
%37 = tail call i32 @putchar(i32 65)
%38 = tail call i32 @putchar(i32 68)
%39 = tail call i32 @putchar(i32 52)
%40 = tail call i32 @putchar(i32 10)
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.11, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.17, i64 0, i64 0))
%43 = tail call i32 (...) @fec_open()
br label %44
44: ; preds = %44, %0
%45 = phi i32 [ 0, %0 ], [ %48, %44 ]
store i32 32, i32* %2
%46 = call i8* @fec_encode(i8* %3, i32* %2, i32 %45)
%47 = icmp eq i8* %46, null
%48 = add nuw nsw i32 %45, 1
br i1 %47, label %49, label %44
49: ; preds = %44
store i32 32, i32* %2
%50 = call i8* @fec_encode(i8* %3, i32* %2, i32 0)
%51 = call i8* @fec_decode(i8* %50, i32* %2)
store i32 32, i32* %2
%52 = call i8* @fec_encode(i8* %3, i32* %2, i32 1)
%53 = call i8* @fec_decode(i8* %52, i32* %2)
store i32 32, i32* %2
%54 = call i8* @fec_encode(i8* %3, i32* %2, i32 3)
%55 = icmp eq i8* %53, null
br i1 %55, label %75, label %56
56: ; preds = %49
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.17, i64 0, i64 0))
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.20, i64 0, i64 0))
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.19, i64 0, i64 0))
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.20, i64 0, i64 0))
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, 0
br i1 %62, label %73, label %63
63: ; preds = %56, %63
%64 = phi i64 [ %69, %63 ], [ 0, %56 ]
%65 = getelementptr inbounds i8, i8* %53, i64 %64
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = call i32 @putchar(i32 %67)
%69 = add nuw nsw i64 %64, 1
%70 = load i32, i32* %2
%71 = zext i32 %70 to i64
%72 = icmp ult i64 %69, %71
br i1 %72, label %63, label %73
73: ; preds = %63, %56
%74 = call i32 @putchar(i32 10)
br label %80
75: ; preds = %49
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.17, i64 0, i64 0))
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.20, i64 0, i64 0))
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.15, i64 0, i64 0))
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.20, i64 0, i64 0))
br label %80
80: ; preds = %75, %73
%81 = call i32 (...) @fec_close()
ret i32 0
}