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

/* Variables and functions */
int /*<<< orphan*/ fexpect(char *, int, int, int);
int strncmp(char *, char *, int);
void test_excessive() {
  char x1[3] = {1, 2, 3, 4, 5};
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      171, 3, sizeof(x1));
  ;
  char x2[3] = "abcdefg";
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      174, 3, sizeof(x2));
  ;
  fexpect(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c",
      175, 0, strncmp("abc", x2, 3));
  ;
}


x86 assembly (clang, -O0):
<test_excessive>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xed1(%rip),%ax
mov    %ax,-0x3(%rbp)
mov    0xec9(%rip),%al
mov    %al,-0x1(%rbp)
lea    0xec3(%rip),%rdi
mov    $0xab,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1040 <fexpect@plt>
mov    0xea8(%rip),%ax
mov    %ax,-0x6(%rbp)
mov    0xea0(%rip),%al
mov    %al,-0x4(%rbp)
lea    0xe97(%rip),%rdi
mov    $0xae,%esi
mov    $0x3,%ecx
mov    %ecx,%edx
call   1040 <fexpect@plt>
lea    -0x6(%rbp),%rsi
lea    0xf01(%rip),%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
lea    0xe68(%rip),%rdi
mov    $0xaf,%esi
xor    %edx,%edx
call   1040 <fexpect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_excessive>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
mov    %rbx,%rdi
mov    $0xab,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1040 <fexpect@plt>
movb   $0x63,0xe(%rsp)
movw   $0x6261,0xc(%rsp)
mov    %rbx,%rdi
mov    $0xae,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1040 <fexpect@plt>
lea    0xf19(%rip),%rdi
lea    0xc(%rsp),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
mov    %rbx,%rdi
mov    $0xaf,%esi
xor    %edx,%edx
mov    %eax,%ecx
call   1040 <fexpect@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.test_excessive.x1 = [3 x i8] c"\01\02\03"
@.str = [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c\00"
@__const.test_excessive.x2 = [3 x i8] c"abc"
@.str.1 = [4 x i8] c"abc\00"
define void @test_excessive() {
%1 = alloca [3 x i8]
%2 = alloca [3 x i8]
%3 = bitcast [3 x i8]* %1 to i8*
%4 = call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 171, i32 3, i32 3)
%5 = bitcast [3 x i8]* %2 to i8*
%6 = call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 174, i32 3, i32 3)
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%8 = call i32 @strncmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7, i32 3)
%9 = call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 175, i32 0, i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [134 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/initializer.c\00"
@__const.test_excessive.x2 = [3 x i8] c"abc"
@.str.1 = [4 x i8] c"abc\00"
define void @test_excessive() {
%1 = alloca [3 x i8]
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 171, i32 3, i32 3)
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 174, i32 3, i32 3)
%5 = call i32 @strncmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3, i32 3)
%6 = call i32 @fexpect(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str, i64 0, i64 0), i32 175, i32 0, i32 %5)
ret void
}