#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 SQLITE_OK;
int /*<<< orphan*/ set_info(int *, int, int, char *, char *);
int strlen(char *);
int card_rule_cb(void *arg, int col_n, char **row, char **titles) {
  int *i = (int *)arg;
  char *ptr, q[100];
  int len;
  len = strlen(row[0]);
  ptr = row[0];
  set_info(i, len, 75, q, ptr);
  len = strlen(row[1]);
  ptr = row[1];
  set_info(i, len, 75, q, ptr);
  (*i)++;
  return SQLITE_OK;
}


x86 assembly (clang, -O0):
<card_rule_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xa4(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0xa4(%rbp),%esi
lea    -0xa0(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    $0x4b,%edx
call   1040 <set_info@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xa4(%rbp)
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0xa4(%rbp),%esi
lea    -0xa0(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    $0x4b,%edx
call   1040 <set_info@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    0x2e1a(%rip),%rax
mov    (%rax),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<card_rule_cb>:
push   %r15
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %rdx,%rbx
mov    %rdi,%r14
mov    (%rdx),%rdi
call   1030 <strlen@plt>
mov    (%rbx),%r8
mov    %rsp,%r15
mov    %r14,%rdi
mov    %eax,%esi
mov    $0x4b,%edx
mov    %r15,%rcx
call   1040 <set_info@plt>
mov    0x8(%rbx),%rdi
call   1030 <strlen@plt>
mov    0x8(%rbx),%r8
mov    %r14,%rdi
mov    %eax,%esi
mov    $0x4b,%edx
mov    %r15,%rcx
call   1040 <set_info@plt>
addl   $0x1,(%r14)
mov    0x2e6f(%rip),%rax
mov    (%rax),%eax
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@SQLITE_OK = global i32 0
define i32 @card_rule_cb(i8* %0, i32 %1, i8** %2, i8** %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca [100 x i8]
%12 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
store i8** %3, i8*** %8
%13 = load i8*, i8** %5
%14 = bitcast i8* %13 to i32*
store i32* %14, i32** %9
%15 = load i8**, i8*** %7
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @strlen(i8* %17)
store i32 %18, i32* %12
%19 = load i8**, i8*** %7
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
store i8* %21, i8** %10
%22 = load i32*, i32** %9
%23 = load i32, i32* %12
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%25 = load i8*, i8** %10
%26 = call i32 @set_info(i32* %22, i32 %23, i32 75, i8* %24, i8* %25)
%27 = load i8**, i8*** %7
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32 @strlen(i8* %29)
store i32 %30, i32* %12
%31 = load i8**, i8*** %7
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
store i8* %33, i8** %10
%34 = load i32*, i32** %9
%35 = load i32, i32* %12
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%37 = load i8*, i8** %10
%38 = call i32 @set_info(i32* %34, i32 %35, i32 75, i8* %36, i8* %37)
%39 = load i32*, i32** %9
%40 = load i32, i32* %39
%41 = add nsw i32 %40, 1
store i32 %41, i32* %39
%42 = load i32, i32* @SQLITE_OK
ret i32 %42
}

LLVM IR (-O2):
@SQLITE_OK = global i32 0
define i32 @card_rule_cb(i8* %0, i32 %1, i8** nocapture %2, i8** nocapture readnone %3) {
%5 = alloca [100 x i8]
%6 = bitcast i8* %0 to i32*
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%8 = load i8*, i8** %2
%9 = tail call i32 @strlen(i8* %8)
%10 = load i8*, i8** %2
%11 = call i32 @set_info(i32* %6, i32 %9, i32 75, i8* %7, i8* %10)
%12 = getelementptr inbounds i8*, i8** %2, i64 1
%13 = load i8*, i8** %12
%14 = call i32 @strlen(i8* %13)
%15 = load i8*, i8** %12
%16 = call i32 @set_info(i32* %6, i32 %14, i32 75, i8* %7, i8* %15)
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 1
store i32 %18, i32* %6
%19 = load i32, i32* @SQLITE_OK
ret i32 %19
}