#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*/ fexpect(char *, int, int, char);
void unnamed() {
  struct {
    union {
      struct {
        int x;
        int y;
      };
      struct {
        char c[8];
      };
    };
  } v;
  v.x = 1;
  v.y = 7;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/struct.c",
          135, 1, v.c[0]);
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/struct.c",
          136, 7, v.c[4]);
  ;
}


x86 assembly (clang, -O0):
<unnamed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x8(%rbp)
movl   $0x7,-0x4(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x87,%esi
mov    $0x1,%edx
movsbl -0x8(%rbp),%ecx
call   1030 <fexpect@plt>
lea    0xeb9(%rip),%rdi
mov    $0x88,%esi
mov    $0x7,%edx
movsbl -0x4(%rbp),%ecx
call   1030 <fexpect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unnamed>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x87,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x88,%esi
mov    $0x7,%edx
mov    $0x7,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
%struct.anon = type { %union.anon }
%union.anon = type { %struct.anon.0 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { [8 x i8] }
@.str = [129 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/struct.c\00"
define void @unnamed() {
%1 = alloca %struct.anon
%2 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%3 = bitcast %union.anon* %2 to %struct.anon.0*
%4 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %3, i32 0, i32 0
store i32 1, i32* %4
%5 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%6 = bitcast %union.anon* %5 to %struct.anon.0*
%7 = getelementptr inbounds %struct.anon.0, %struct.anon.0* %6, i32 0, i32 1
store i32 7, i32* %7
%8 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%9 = bitcast %union.anon* %8 to %struct.anon.1*
%10 = getelementptr inbounds %struct.anon.1, %struct.anon.1* %9, i32 0, i32 0
%11 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%12 = load i8, i8* %11
%13 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 135, i32 1, i8 signext %12)
%14 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
%15 = bitcast %union.anon* %14 to %struct.anon.1*
%16 = getelementptr inbounds %struct.anon.1, %struct.anon.1* %15, i32 0, i32 0
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %16, i64 0, i64 4
%18 = load i8, i8* %17
%19 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 136, i32 7, i8 signext %18)
ret void
}

LLVM IR (-O2):
@.str = [129 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/struct.c\00"
define void @unnamed() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 135, i32 1, i8 signext 1)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 136, i32 7, i8 signext 7)
ret void
}