#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 *, int);
int sequential_search(int *, int, int /*<<< orphan*/);
char *test_lt_size() {
  int array[] = {123, 10, -56, 0, 90, 154};
  do {
    if (!(sequential_search(array, 3, 0) == -1)) {
      printf("Line number is: %d\n", 54);
      return "error, found the keyword successfully";
    }
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_lt_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x3,%esi
xor    %edx,%edx
call   1040 <sequential_search@plt>
cmp    $0xffffffff,%eax
je     1183 <test_lt_size+0x63>
lea    0xeaf(%rip),%rdi
mov    $0x36,%esi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1190 <test_lt_size+0x70>
jmp    1188 <test_lt_size+0x68>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_lt_size>:
push   %rbx
sub    $0x20,%rsp
mov    0xee4(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
xor    %ebx,%ebx
mov    $0x3,%esi
xor    %edx,%edx
call   1040 <sequential_search@plt>
cmp    $0xffffffff,%eax
je     116a <test_lt_size+0x4a>
lea    0xebf(%rip),%rdi
mov    $0x36,%esi
call   1030 <printf@plt>
lea    0xec2(%rip),%rbx
mov    %rbx,%rax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.test_lt_size.array = [6 x i32] [i32 123, i32 10, i32 -56, i32 0, i32 90, i32 154]
@.str = [20 x i8] c"Line number is: %d\0A\00"
@.str.1 = [38 x i8] c"error, found the keyword successfully\00"
define i8* @test_lt_size() {
%1 = alloca i8*
%2 = alloca [6 x i32]
%3 = bitcast [6 x i32]* %2 to i8*
br label %4
4: ; preds = %0
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 0
%6 = call i32 @sequential_search(i32* %5, i32 3, i32 0)
%7 = icmp eq i32 %6, -1
br i1 %7, label %10, label %8
8: ; preds = %4
%9 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 54)
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8** %1
br label %12
10: ; preds = %4
br label %11
11: ; preds = %10
store i8* null, i8** %1
br label %12
12: ; preds = %11, %8
%13 = load i8*, i8** %1
ret i8* %13
}

LLVM IR (-O2):
@__const.test_lt_size.array = [6 x i32] [i32 123, i32 10, i32 -56, i32 0, i32 90, i32 154]
@.str = [20 x i8] c"Line number is: %d\0A\00"
@.str.1 = [38 x i8] c"error, found the keyword successfully\00"
define i8* @test_lt_size() {
%1 = alloca [6 x i32]
%2 = bitcast [6 x i32]* %1 to i8*
%3 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%4 = call i32 @sequential_search(i32* %3, i32 3, i32 0)
%5 = icmp eq i32 %4, -1
br i1 %5, label %8, label %6
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 54)
br label %8
8: ; preds = %0, %6
%9 = phi i8* [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), %6 ], [ null, %0 ]
ret i8* %9
}