#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 /*<<< orphan*/ printf(char *, char, char);
void text2numeric_matrix(int *ret, char *data, int data_len, int elen) {
  int i, j = 0;
  for (i = 0; i < data_len; i += elen + 1) {
    printf("%c%c\n", data[i], data[i + 1]);
    for (j = elen - 1; j >= 0; j--) {
    }
  }
}


x86 assembly (clang, -O0):
<text2numeric_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11a7 <text2numeric_matrix+0x97>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
lea    0xea1(%rip),%rdi
movsbl %dl,%esi
movsbl (%rax,%rcx,1),%edx
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     1191 <text2numeric_matrix+0x81>
jmp    1183 <text2numeric_matrix+0x73>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    1174 <text2numeric_matrix+0x64>
jmp    1196 <text2numeric_matrix+0x86>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1134 <text2numeric_matrix+0x24>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<text2numeric_matrix>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %edx,%edx
jle    1154 <text2numeric_matrix+0x44>
mov    %ecx,%r14d
mov    %edx,%r12d
mov    %rsi,%rbx
xor    %eax,%eax
lea    0xed2(%rip),%r15
xchg   %ax,%ax
movslq %eax,%rbp
movsbl (%rbx,%rbp,1),%esi
lea    0x1(%rbp),%eax
cltq
movsbl (%rbx,%rax,1),%edx
mov    %r15,%rdi
call   1030 <printf@plt>
lea    (%r14,%rbp,1),%eax
add    $0x1,%eax
cmp    %r12d,%eax
jl     1130 <text2numeric_matrix+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%c%c\0A\00"
define void @text2numeric_matrix(i32* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %10
store i32 0, i32* %9
br label %11
11: ; preds = %38, %4
%12 = load i32, i32* %9
%13 = load i32, i32* %7
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %43
15: ; preds = %11
%16 = load i8*, i8** %6
%17 = load i32, i32* %9
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
%20 = load i8, i8* %19
%21 = load i8*, i8** %6
%22 = load i32, i32* %9
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, i8* %21, i64 %24
%26 = load i8, i8* %25
%27 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext %20, i8 signext %26)
%28 = load i32, i32* %8
%29 = sub nsw i32 %28, 1
store i32 %29, i32* %10
br label %30
30: ; preds = %34, %15
%31 = load i32, i32* %10
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %30
br label %34
34: ; preds = %33
%35 = load i32, i32* %10
%36 = add nsw i32 %35, -1
store i32 %36, i32* %10
br label %30
37: ; preds = %30
br label %38
38: ; preds = %37
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
%41 = load i32, i32* %9
%42 = add nsw i32 %41, %40
store i32 %42, i32* %9
br label %11
43: ; preds = %11
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%c%c\0A\00"
define void @text2numeric_matrix(i32* nocapture readnone %0, i8* nocapture %1, i32 %2, i32 %3) {
%5 = icmp sgt i32 %2, 0
br i1 %5, label %6, label %18
6: ; preds = %4, %6
%7 = phi i32 [ %16, %6 ], [ 0, %4 ]
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %1, i64 %8
%10 = load i8, i8* %9
%11 = add nsw i32 %7, 1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %1, i64 %12
%14 = load i8, i8* %13
%15 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext %10, i8 signext %14)
%16 = add i32 %11, %3
%17 = icmp slt i32 %16, %2
br i1 %17, label %6, label %18
18: ; preds = %6, %4
ret void
}