#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, int);
void assign() {
  struct {
    int a, b, c;
    short d;
    char f;
  } v1, v2;
  v1.a = 3;
  v1.b = 5;
  v1.c = 7;
  v1.d = 9;
  v1.f = 11;
  v2 = v1;
  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",
          147, 3, v2.a);
  ;
  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",
          148, 5, v2.b);
  ;
  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",
          149, 7, v2.c);
  ;
  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",
          150, 9, v2.d);
  ;
  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",
          151, 11, v2.f);
  ;
}


x86 assembly (clang, -O0):
<assign>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x3,-0x10(%rbp)
movl   $0x5,-0xc(%rbp)
movl   $0x7,-0x8(%rbp)
movw   $0x9,-0x4(%rbp)
movb   $0xb,-0x2(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%ecx
lea    0xeaf(%rip),%rdi
mov    $0x93,%esi
mov    $0x3,%edx
call   1030 <fexpect@plt>
mov    -0x1c(%rbp),%ecx
lea    0xe96(%rip),%rdi
mov    $0x94,%esi
mov    $0x5,%edx
call   1030 <fexpect@plt>
mov    -0x18(%rbp),%ecx
lea    0xe7d(%rip),%rdi
mov    $0x95,%esi
mov    $0x7,%edx
call   1030 <fexpect@plt>
movswl -0x14(%rbp),%ecx
lea    0xe63(%rip),%rdi
mov    $0x96,%esi
mov    $0x9,%edx
call   1030 <fexpect@plt>
movsbl -0x12(%rbp),%ecx
lea    0xe49(%rip),%rdi
mov    $0x97,%esi
mov    $0xb,%edx
call   1030 <fexpect@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<assign>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x93,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x94,%esi
mov    $0x5,%edx
mov    $0x5,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x95,%esi
mov    $0x7,%edx
mov    $0x7,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x96,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
call   1030 <fexpect@plt>
mov    %rbx,%rdi
mov    $0x97,%esi
mov    $0xb,%edx
mov    $0xb,%ecx
pop    %rbx
jmp    1030 <fexpect@plt>

LLVM IR (-O0):
%struct.anon = type { i32, i32, i32, i16, 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 @assign() {
%1 = alloca %struct.anon
%2 = alloca %struct.anon
%3 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 0
store i32 3, i32* %3
%4 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 1
store i32 5, i32* %4
%5 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 2
store i32 7, i32* %5
%6 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 3
store i16 9, i16* %6
%7 = getelementptr inbounds %struct.anon, %struct.anon* %1, i32 0, i32 4
store i8 11, i8* %7
%8 = bitcast %struct.anon* %2 to i8*
%9 = bitcast %struct.anon* %1 to i8*
%10 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 0
%11 = load i32, i32* %10
%12 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 147, i32 3, i32 %11)
%13 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 1
%14 = load i32, i32* %13
%15 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 148, i32 5, i32 %14)
%16 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 2
%17 = load i32, i32* %16
%18 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 149, i32 7, i32 %17)
%19 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 3
%20 = load i16, i16* %19
%21 = sext i16 %20 to i32
%22 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 150, i32 9, i32 %21)
%23 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 4
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 151, i32 11, i32 %25)
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 @assign() {
%1 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 147, i32 3, i32 3)
%2 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 148, i32 5, i32 5)
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 149, i32 7, i32 7)
%4 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 150, i32 9, i32 9)
%5 = tail call i32 @fexpect(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0), i32 151, i32 11, i32 11)
ret void
}