#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 FSQLF_read_int(char const *, int, int *);
int FSQLF_read_int_array(char *, int, int, int *);
int INT_MAX;
int /*<<< orphan*/ assert(int);
int main() {
  int r;
  int cnt = 1;
  r = 7789;
  cnt = FSQLF_read_int(" z15", 6, &r);
  assert(cnt == 0);
  assert(r == 7789);
  r = 7789;
  cnt = FSQLF_read_int("", 6, &r);
  assert(cnt == 0);
  assert(r == 7789);
  r = 7789;
  cnt = FSQLF_read_int("        ", 6, &r);
  assert(cnt == 0);
  assert(r == 7789);
  r = 7789;
  cnt = FSQLF_read_int("1234", 2, &r);
  assert(cnt == 2);
  assert(r == 12);
  r = 7789;
  cnt = FSQLF_read_int(" 1234", 2, &r);
  assert(cnt == 2);
  assert(r == 1);
  r = 7789;
  cnt = FSQLF_read_int("9234567890123456789012345678901234567890 1", 1000, &r);
  assert(cnt == 40);
  assert(r == INT_MAX);
  const char *txt = "12 345  6789";
  cnt = FSQLF_read_int(txt, 6, &r);
  assert(cnt == 2);
  assert(r == 12);
  txt += cnt;
  cnt = FSQLF_read_int(txt, 6, &r);
  assert(cnt == 4);
  assert(r == 345);
  txt += cnt;
  cnt = FSQLF_read_int(txt, 6, &r);
  assert(cnt == 6);
  assert(r == 6789);
  txt += cnt;
  cnt = FSQLF_read_int(txt, 6, &r);
  assert(cnt == 0);
  assert(r == 6789);
  int rs[10];
  cnt = FSQLF_read_int_array("1 2 3", 5, 3, rs);
  assert(cnt == 5);
  assert(rs[0] == 1);
  assert(rs[1] == 2);
  assert(rs[2] == 3);
  cnt = FSQLF_read_int_array("1 a 3", 5, 3, rs);
  assert(cnt == 0);
  cnt = FSQLF_read_int_array("1 2  ", 5, 3, rs);
  assert(cnt == 0);
  cnt = FSQLF_read_int_array("1 2 3 4", 20, 3, rs);
  assert(cnt == 5);
  cnt = FSQLF_read_int_array("1 2 3 4", 3, 3, rs);
  assert(cnt == 0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x1,-0x8(%rbp)
movl   $0x1e6d,-0x4(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1e6d,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1e6d,-0x4(%rbp)
lea    0xe7c(%rip),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1e6d,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1e6d,-0x4(%rbp)
lea    0xe30(%rip),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1e6d,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1e6d,-0x4(%rbp)
lea    0xdf6(%rip),%rdi
mov    $0x2,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0xc,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1e6d,-0x4(%rbp)
lea    0xdb4(%rip),%rdi
mov    $0x2,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x1e6d,-0x4(%rbp)
lea    0xd79(%rip),%rdi
mov    $0x3e8,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x28,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
mov    0x2d21(%rip),%rcx
cmp    (%rcx),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    0xd62(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0xc,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x159,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1a85,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
lea    -0x4(%rbp),%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1a85,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    -0x40(%rbp),%rcx
lea    0xc48(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
call   1040 <FSQLF_read_int_array@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0x40(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x2,-0x3c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x3,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    -0x40(%rbp),%rcx
lea    0xbed(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
call   1040 <FSQLF_read_int_array@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    -0x40(%rbp),%rcx
lea    0xbc5(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
call   1040 <FSQLF_read_int_array@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    -0x40(%rbp),%rcx
lea    0xb9d(%rip),%rdi
mov    $0x14,%esi
mov    $0x3,%edx
call   1040 <FSQLF_read_int_array@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
lea    -0x40(%rbp),%rcx
lea    0xb6f(%rip),%rdi
mov    $0x3,%edx
mov    %edx,%esi
call   1040 <FSQLF_read_int_array@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
movl   $0x1e6d,0xc(%rsp)
lea    0xeb9(%rip),%rdi
lea    0xc(%rsp),%r14
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1e6d,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movl   $0x1e6d,0xc(%rsp)
lea    0xe85(%rip),%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1e6d,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movl   $0x1e6d,0xc(%rsp)
lea    0xe41(%rip),%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1e6d,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movl   $0x1e6d,0xc(%rsp)
lea    0xe0f(%rip),%rdi
mov    $0x2,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0xc,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movl   $0x1e6d,0xc(%rsp)
lea    0xdd4(%rip),%rdi
mov    $0x2,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movl   $0x1e6d,0xc(%rsp)
lea    0xda0(%rip),%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
cmp    $0x28,%eax
sete   %dil
call   1030 <assert@plt>
mov    0xc(%rsp),%eax
mov    0x2d4e(%rip),%rcx
xor    %edi,%edi
cmp    (%rcx),%eax
sete   %dil
call   1030 <assert@plt>
lea    0xd91(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0xc,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movslq %ebp,%rbp
add    %rbx,%rbp
mov    %rbp,%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x159,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movslq %ebx,%rbx
add    %rbp,%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1a85,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
movslq %ebp,%rdi
add    %rbx,%rdi
mov    $0x6,%esi
mov    %r14,%rdx
call   1050 <FSQLF_read_int@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1a85,0xc(%rsp)
sete   %dil
call   1030 <assert@plt>
lea    0xcc2(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    $0x5,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1040 <FSQLF_read_int_array@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x1,0x10(%rsp)
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x2,0x14(%rsp)
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmpl   $0x3,0x18(%rsp)
sete   %dil
call   1030 <assert@plt>
lea    0xc6c(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1040 <FSQLF_read_int_array@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
lea    0xc4c(%rip),%rdi
mov    $0x5,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1040 <FSQLF_read_int_array@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
lea    0xc2c(%rip),%rbp
mov    %rbp,%rdi
mov    $0x14,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1040 <FSQLF_read_int_array@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1030 <assert@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
call   1040 <FSQLF_read_int_array@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c" z15\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c" \00"
@.str.3 = [5 x i8] c"1234\00"
@.str.4 = [6 x i8] c" 1234\00"
@.str.5 = [43 x i8] c"9234567890123456789012345678901234567890 1\00"
@INT_MAX = global i32 0
@.str.6 = [13 x i8] c"12 345 6789\00"
@.str.7 = [6 x i8] c"1 2 3\00"
@.str.8 = [6 x i8] c"1 a 3\00"
@.str.9 = [6 x i8] c"1 2 \00"
@.str.10 = [8 x i8] c"1 2 3 4\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [10 x i32]
store i32 1, i32* %2
store i32 7789, i32* %1
%5 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 6, i32* %1)
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 7789
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
store i32 7789, i32* %1
%14 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 6, i32* %1)
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = load i32, i32* %1
%20 = icmp eq i32 %19, 7789
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
store i32 7789, i32* %1
%23 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 6, i32* %1)
store i32 %23, i32* %2
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 0
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = load i32, i32* %1
%29 = icmp eq i32 %28, 7789
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
store i32 7789, i32* %1
%32 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 2, i32* %1)
store i32 %32, i32* %2
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 2
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = load i32, i32* %1
%38 = icmp eq i32 %37, 12
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
store i32 7789, i32* %1
%41 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2, i32* %1)
store i32 %41, i32* %2
%42 = load i32, i32* %2
%43 = icmp eq i32 %42, 2
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 %44)
%46 = load i32, i32* %1
%47 = icmp eq i32 %46, 1
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
store i32 7789, i32* %1
%50 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 1000, i32* %1)
store i32 %50, i32* %2
%51 = load i32, i32* %2
%52 = icmp eq i32 %51, 40
%53 = zext i1 %52 to i32
%54 = call i32 @assert(i32 %53)
%55 = load i32, i32* %1
%56 = load i32, i32* @INT_MAX
%57 = icmp eq i32 %55, %56
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8** %3
%60 = load i8*, i8** %3
%61 = call i32 @FSQLF_read_int(i8* %60, i32 6, i32* %1)
store i32 %61, i32* %2
%62 = load i32, i32* %2
%63 = icmp eq i32 %62, 2
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i32, i32* %1
%67 = icmp eq i32 %66, 12
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = load i32, i32* %2
%71 = load i8*, i8** %3
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds i8, i8* %71, i64 %72
store i8* %73, i8** %3
%74 = load i8*, i8** %3
%75 = call i32 @FSQLF_read_int(i8* %74, i32 6, i32* %1)
store i32 %75, i32* %2
%76 = load i32, i32* %2
%77 = icmp eq i32 %76, 4
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = load i32, i32* %1
%81 = icmp eq i32 %80, 345
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = load i32, i32* %2
%85 = load i8*, i8** %3
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds i8, i8* %85, i64 %86
store i8* %87, i8** %3
%88 = load i8*, i8** %3
%89 = call i32 @FSQLF_read_int(i8* %88, i32 6, i32* %1)
store i32 %89, i32* %2
%90 = load i32, i32* %2
%91 = icmp eq i32 %90, 6
%92 = zext i1 %91 to i32
%93 = call i32 @assert(i32 %92)
%94 = load i32, i32* %1
%95 = icmp eq i32 %94, 6789
%96 = zext i1 %95 to i32
%97 = call i32 @assert(i32 %96)
%98 = load i32, i32* %2
%99 = load i8*, i8** %3
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8, i8* %99, i64 %100
store i8* %101, i8** %3
%102 = load i8*, i8** %3
%103 = call i32 @FSQLF_read_int(i8* %102, i32 6, i32* %1)
store i32 %103, i32* %2
%104 = load i32, i32* %2
%105 = icmp eq i32 %104, 0
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = load i32, i32* %1
%109 = icmp eq i32 %108, 6789
%110 = zext i1 %109 to i32
%111 = call i32 @assert(i32 %110)
%112 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%113 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5, i32 3, i32* %112)
store i32 %113, i32* %2
%114 = load i32, i32* %2
%115 = icmp eq i32 %114, 5
%116 = zext i1 %115 to i32
%117 = call i32 @assert(i32 %116)
%118 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%119 = load i32, i32* %118
%120 = icmp eq i32 %119, 1
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 %121)
%123 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 1
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 2
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 2
%129 = load i32, i32* %128
%130 = icmp eq i32 %129, 3
%131 = zext i1 %130 to i32
%132 = call i32 @assert(i32 %131)
%133 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%134 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 5, i32 3, i32* %133)
store i32 %134, i32* %2
%135 = load i32, i32* %2
%136 = icmp eq i32 %135, 0
%137 = zext i1 %136 to i32
%138 = call i32 @assert(i32 %137)
%139 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%140 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5, i32 3, i32* %139)
store i32 %140, i32* %2
%141 = load i32, i32* %2
%142 = icmp eq i32 %141, 0
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 %143)
%145 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%146 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 20, i32 3, i32* %145)
store i32 %146, i32* %2
%147 = load i32, i32* %2
%148 = icmp eq i32 %147, 5
%149 = zext i1 %148 to i32
%150 = call i32 @assert(i32 %149)
%151 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%152 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 3, i32 3, i32* %151)
store i32 %152, i32* %2
%153 = load i32, i32* %2
%154 = icmp eq i32 %153, 0
%155 = zext i1 %154 to i32
%156 = call i32 @assert(i32 %155)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c" z15\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c" \00"
@.str.3 = [5 x i8] c"1234\00"
@.str.4 = [6 x i8] c" 1234\00"
@.str.5 = [43 x i8] c"9234567890123456789012345678901234567890 1\00"
@INT_MAX = global i32 0
@.str.6 = [13 x i8] c"12 345 6789\00"
@.str.7 = [6 x i8] c"1 2 3\00"
@.str.8 = [6 x i8] c"1 a 3\00"
@.str.9 = [6 x i8] c"1 2 \00"
@.str.10 = [8 x i8] c"1 2 3 4\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = bitcast i32* %1 to i8*
store i32 7789, i32* %1
%4 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 6, i32* %1)
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 7789
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
store i32 7789, i32* %1
%12 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 6, i32* %1)
%13 = icmp eq i32 %12, 0
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 %14)
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 7789
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
store i32 7789, i32* %1
%20 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 6, i32* %1)
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = load i32, i32* %1
%25 = icmp eq i32 %24, 7789
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
store i32 7789, i32* %1
%28 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 2, i32* %1)
%29 = icmp eq i32 %28, 2
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load i32, i32* %1
%33 = icmp eq i32 %32, 12
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
store i32 7789, i32* %1
%36 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2, i32* %1)
%37 = icmp eq i32 %36, 2
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load i32, i32* %1
%41 = icmp eq i32 %40, 1
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
store i32 7789, i32* %1
%44 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 1000, i32* %1)
%45 = icmp eq i32 %44, 40
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = load i32, i32* %1
%49 = load i32, i32* @INT_MAX
%50 = icmp eq i32 %48, %49
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i32 @FSQLF_read_int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 6, i32* %1)
%54 = icmp eq i32 %53, 2
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = load i32, i32* %1
%58 = icmp eq i32 %57, 12
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = sext i32 %53 to i64
%62 = getelementptr inbounds [13 x i8], [13 x i8]* @.str.6, i64 0, i64 %61
%63 = call i32 @FSQLF_read_int(i8* %62, i32 6, i32* %1)
%64 = icmp eq i32 %63, 4
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = load i32, i32* %1
%68 = icmp eq i32 %67, 345
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = sext i32 %63 to i64
%72 = getelementptr inbounds i8, i8* %62, i64 %71
%73 = call i32 @FSQLF_read_int(i8* %72, i32 6, i32* %1)
%74 = icmp eq i32 %73, 6
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = load i32, i32* %1
%78 = icmp eq i32 %77, 6789
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = sext i32 %73 to i64
%82 = getelementptr inbounds i8, i8* %72, i64 %81
%83 = call i32 @FSQLF_read_int(i8* %82, i32 6, i32* %1)
%84 = icmp eq i32 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = load i32, i32* %1
%88 = icmp eq i32 %87, 6789
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = bitcast [10 x i32]* %2 to i8*
%92 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%93 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5, i32 3, i32* %92)
%94 = icmp eq i32 %93, 5
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i32, i32* %92
%98 = icmp eq i32 %97, 1
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%102 = load i32, i32* %101
%103 = icmp eq i32 %102, 2
%104 = zext i1 %103 to i32
%105 = call i32 @assert(i32 %104)
%106 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%107 = load i32, i32* %106
%108 = icmp eq i32 %107, 3
%109 = zext i1 %108 to i32
%110 = call i32 @assert(i32 %109)
%111 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 5, i32 3, i32* %92)
%112 = icmp eq i32 %111, 0
%113 = zext i1 %112 to i32
%114 = call i32 @assert(i32 %113)
%115 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5, i32 3, i32* %92)
%116 = icmp eq i32 %115, 0
%117 = zext i1 %116 to i32
%118 = call i32 @assert(i32 %117)
%119 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 20, i32 3, i32* %92)
%120 = icmp eq i32 %119, 5
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 %121)
%123 = call i32 @FSQLF_read_int_array(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 3, i32 3, i32* %92)
%124 = icmp eq i32 %123, 0
%125 = zext i1 %124 to i32
%126 = call i32 @assert(i32 %125)
ret i32 0
}