#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int i, j;
  int dim_a, dim_b;
  int trovato;
  int lista[30];
  int A[30];
  int B[30];
  int len_a = 0;
  int len_b = 0;
  int len_u = 0;
  int len_i = 0;
  int len_d = 0;
  int unione[2 * 30];
  int intersezione[30];
  int differenza[30];
  do {
    printf("Quanti elementi vuoi inserire nella prima lista (max: %d)? ", 30);
    scanf("%d", &dim_a);
    if (dim_a > 30)
      printf("Il valore inserito è troppo grande!\n");
  } while (dim_a > 30);
  for (i = 0; i < dim_a; i++) {
    printf("Inserire il %do elemento: ", i + 1);
    scanf("%d", &lista[i]);
  }
  for (i = 0; i < dim_a; i++) {
    trovato = 0;
    for (j = 0; !trovato && j < len_a; j++)
      trovato = (lista[i] == A[j]);
    if (!trovato) {
      unione[len_a] = lista[i];
      A[len_a] = lista[i];
      len_a++;
    }
  }
  len_u = len_a;
  printf("Insieme A = {");
  for (i = 0; i < len_a; i++)
    printf("%d ", A[i]);
  printf("}\n");
  do {
    printf("Quanti elementi vuoi inserire nella seconda lista (max: %d)? ", 30);
    scanf("%d", &dim_b);
    if (dim_b > 30)
      printf("Il valore inserito è troppo grande!\n");
  } while (dim_b > 30);
  for (i = 0; i < dim_b; i++) {
    printf("Inserire il %do elemento: ", i + 1);
    scanf("%d", &lista[i]);
  }
  for (i = 0; i < dim_b; i++) {
    trovato = 0;
    for (j = 0; !trovato && j < len_b; j++)
      trovato = (lista[i] == B[j]);
    if (!trovato) {
      B[len_b] = lista[i];
      len_b++;
    }
    trovato = 0;
    for (j = 0; !trovato && j < len_u; j++)
      trovato = (unione[j] == lista[i]);
    if (!trovato) {
      unione[len_u] = lista[i];
      len_u++;
    }
    trovato = 0;
    for (j = 0; !trovato && j < len_a; j++)
      trovato = (A[j] == B[len_b - 1]);
    if (trovato) {
      trovato = 0;
      for (j = 0; !trovato && j < len_i; j++)
        trovato = (intersezione[j] == B[len_b - 1]);
      if (!trovato) {
        intersezione[len_i] = B[len_b - 1];
        len_i++;
      }
    } else {
      trovato = 0;
      for (j = 0; !trovato && j < len_d; j++)
        trovato = (differenza[j] == B[len_b - 1]);
      if (!trovato) {
        differenza[len_d] = B[len_b - 1];
        len_d++;
      }
    }
  }
  printf("B = {");
  for (i = 0; i < len_b; i++)
    printf("%d ", B[i]);
  printf("}\n");
  printf("unione = {");
  for (i = 0; i < len_u; i++)
    printf("%d ", unione[i]);
  printf("}\n");
  printf("intersezione = {");
  for (i = 0; i < len_i; i++)
    printf("%d ", intersezione[i]);
  printf("}\n");
  printf("differenza = {");
  for (i = 0; i < len_d; i++)
    printf("%d ", differenza[i]);
  printf("}\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x194(%rbp)
movl   $0x0,-0x198(%rbp)
movl   $0x0,-0x19c(%rbp)
movl   $0x0,-0x1a0(%rbp)
movl   $0x0,-0x1a4(%rbp)
lea    0xe95(%rip),%rdi
mov    $0x1e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1e,-0x10(%rbp)
jle    119f <main+0x7f>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a4 <main+0x84>
cmpl   $0x1e,-0x10(%rbp)
jg     1164 <main+0x44>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1201 <main+0xe1>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x90(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe4e(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b5 <main+0x95>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12e6 <main+0x1c6>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a1(%rbp)
jne    1246 <main+0x126>
mov    -0xc(%rbp),%eax
cmp    -0x194(%rbp),%eax
setl   %al
mov    %al,-0x3a1(%rbp)
mov    -0x3a1(%rbp),%al
test   $0x1,%al
jne    1259 <main+0x139>
jmp    1288 <main+0x168>
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x110(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1222 <main+0x102>
cmpl   $0x0,-0x18(%rbp)
jne    12d3 <main+0x1b3>
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%ecx
movslq -0x194(%rbp),%rax
mov    %ecx,-0x2a0(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%ecx
movslq -0x194(%rbp),%rax
mov    %ecx,-0x110(%rbp,%rax,4)
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    12d8 <main+0x1b8>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1208 <main+0xe8>
mov    -0x194(%rbp),%eax
mov    %eax,-0x19c(%rbp)
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x194(%rbp),%eax
jge    133d <main+0x21d>
movslq -0x8(%rbp),%rax
mov    -0x110(%rbp,%rax,4),%esi
lea    0xd66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1307 <main+0x1e7>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd43(%rip),%rdi
mov    $0x1e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd7(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1e,-0x14(%rbp)
jle    1386 <main+0x266>
lea    0xcc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    138b <main+0x26b>
cmpl   $0x1e,-0x14(%rbp)
jg     134b <main+0x22b>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13e8 <main+0x2c8>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x90(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xc67(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    139c <main+0x27c>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1754 <main+0x634>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a2(%rbp)
jne    142d <main+0x30d>
mov    -0xc(%rbp),%eax
cmp    -0x198(%rbp),%eax
setl   %al
mov    %al,-0x3a2(%rbp)
mov    -0x3a2(%rbp),%al
test   $0x1,%al
jne    1440 <main+0x320>
jmp    146f <main+0x34f>
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x190(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1409 <main+0x2e9>
cmpl   $0x0,-0x18(%rbp)
jne    14a1 <main+0x381>
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%ecx
movslq -0x198(%rbp),%rax
mov    %ecx,-0x190(%rbp,%rax,4)
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a3(%rbp)
jne    14d3 <main+0x3b3>
mov    -0xc(%rbp),%eax
cmp    -0x19c(%rbp),%eax
setl   %al
mov    %al,-0x3a3(%rbp)
mov    -0x3a3(%rbp),%al
test   $0x1,%al
jne    14e6 <main+0x3c6>
jmp    1515 <main+0x3f5>
movslq -0xc(%rbp),%rax
mov    -0x2a0(%rbp,%rax,4),%eax
movslq -0x8(%rbp),%rcx
cmp    -0x90(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14af <main+0x38f>
cmpl   $0x0,-0x18(%rbp)
jne    1547 <main+0x427>
movslq -0x8(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%ecx
movslq -0x19c(%rbp),%rax
mov    %ecx,-0x2a0(%rbp,%rax,4)
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a4(%rbp)
jne    1579 <main+0x459>
mov    -0xc(%rbp),%eax
cmp    -0x194(%rbp),%eax
setl   %al
mov    %al,-0x3a4(%rbp)
mov    -0x3a4(%rbp),%al
test   $0x1,%al
jne    158c <main+0x46c>
jmp    15c3 <main+0x4a3>
movslq -0xc(%rbp),%rax
mov    -0x110(%rbp,%rax,4),%eax
mov    -0x198(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x190(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1555 <main+0x435>
cmpl   $0x0,-0x18(%rbp)
je     1687 <main+0x567>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a5(%rbp)
jne    15ff <main+0x4df>
mov    -0xc(%rbp),%eax
cmp    -0x1a0(%rbp),%eax
setl   %al
mov    %al,-0x3a5(%rbp)
mov    -0x3a5(%rbp),%al
test   $0x1,%al
jne    1612 <main+0x4f2>
jmp    1649 <main+0x529>
movslq -0xc(%rbp),%rax
mov    -0x320(%rbp,%rax,4),%eax
mov    -0x198(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x190(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    15db <main+0x4bb>
cmpl   $0x0,-0x18(%rbp)
jne    1682 <main+0x562>
mov    -0x198(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x190(%rbp,%rax,4),%ecx
movslq -0x1a0(%rbp),%rax
mov    %ecx,-0x320(%rbp,%rax,4)
mov    -0x1a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a0(%rbp)
jmp    1741 <main+0x621>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x3a6(%rbp)
jne    16b9 <main+0x599>
mov    -0xc(%rbp),%eax
cmp    -0x1a4(%rbp),%eax
setl   %al
mov    %al,-0x3a6(%rbp)
mov    -0x3a6(%rbp),%al
test   $0x1,%al
jne    16cc <main+0x5ac>
jmp    1703 <main+0x5e3>
movslq -0xc(%rbp),%rax
mov    -0x3a0(%rbp,%rax,4),%eax
mov    -0x198(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x190(%rbp,%rcx,4),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1695 <main+0x575>
cmpl   $0x0,-0x18(%rbp)
jne    173c <main+0x61c>
mov    -0x198(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x190(%rbp,%rax,4),%ecx
movslq -0x1a4(%rbp),%rax
mov    %ecx,-0x3a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1741 <main+0x621>
jmp    1746 <main+0x626>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13ef <main+0x2cf>
lea    0x978(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x198(%rbp),%eax
jge    179f <main+0x67f>
movslq -0x8(%rbp),%rax
mov    -0x190(%rbp,%rax,4),%esi
lea    0x904(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1769 <main+0x649>
lea    0x8ec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x925(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x19c(%rbp),%eax
jge    17f8 <main+0x6d8>
movslq -0x8(%rbp),%rax
mov    -0x2a0(%rbp,%rax,4),%esi
lea    0x8ab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    17c2 <main+0x6a2>
lea    0x893(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8d7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1a0(%rbp),%eax
jge    1851 <main+0x731>
movslq -0x8(%rbp),%rax
mov    -0x320(%rbp,%rax,4),%esi
lea    0x852(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    181b <main+0x6fb>
lea    0x83a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x88f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1a4(%rbp),%eax
jge    18aa <main+0x78a>
movslq -0x8(%rbp),%rax
mov    -0x3a0(%rbp,%rax,4),%esi
lea    0x7f9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1874 <main+0x754>
lea    0x7e1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x3b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x388,%rsp
lea    0xeb8(%rip),%r14
lea    0xeed(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0xf82(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x1f,%eax
jl     1194 <main+0x64>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    0xc(%rsp),%eax
cmp    $0x1e,%eax
jg     1160 <main+0x30>
test   %eax,%eax
jle    125d <main+0x12d>
lea    0x10(%rsp),%r12
lea    0xe97(%rip),%r14
lea    0xe8d(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
movslq 0xc(%rsp),%rax
add    $0x4,%r12
cmp    %rax,%rbx
jl     11c0 <main+0x90>
mov    %eax,%eax
test   %eax,%eax
jle    125d <main+0x12d>
xor    %ecx,%ecx
xor    %r13d,%r13d
jmp    1222 <main+0xf2>
cs nopw 0x0(%rax,%rax,1)
mov    0x10(%rsp,%rcx,4),%edx
movslq %r13d,%rsi
mov    %edx,0x290(%rsp,%rsi,4)
mov    %edx,0x110(%rsp,%rsi,4)
add    $0x1,%r13d
add    $0x1,%rcx
cmp    %rax,%rcx
je     1272 <main+0x142>
test   %r13d,%r13d
jle    1200 <main+0xd0>
mov    0x10(%rsp,%rcx,4),%edx
mov    %r13d,%esi
mov    $0x1,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x10c(%rsp,%rdi,4),%ebp
cmp    %ebp,%edx
je     1257 <main+0x127>
lea    0x1(%rdi),%rbx
cmp    %rsi,%rdi
mov    %rbx,%rdi
jb     1240 <main+0x110>
cmp    %ebp,%edx
jne    1200 <main+0xd0>
jmp    1219 <main+0xe9>
lea    0xdf6(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <printf@plt>
xor    %r13d,%r13d
jmp    12be <main+0x18e>
lea    0xde1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r13d,%r13d
setg   %bpl
jle    12bc <main+0x18c>
mov    %r13d,%r15d
lea    0xdd5(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x110(%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    12a0 <main+0x170>
jmp    12be <main+0x18e>
xor    %ebp,%ebp
lea    0xe16(%rip),%rdi
call   1030 <puts@plt>
lea    0xd9b(%rip),%r14
lea    0xd64(%rip),%r15
lea    0x8(%rsp),%rbx
lea    0xdf9(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    $0x1f,%eax
jl     1324 <main+0x1f4>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%eax
cmp    $0x1e,%eax
jg     12f0 <main+0x1c0>
test   %eax,%eax
jle    1524 <main+0x3f4>
lea    0x10(%rsp),%r12
lea    0xd07(%rip),%r14
lea    0xcfd(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
movslq 0x8(%rsp),%rax
add    $0x4,%r12
cmp    %rax,%rbx
jl     1350 <main+0x220>
mov    %eax,%r8d
test   %r8d,%r8d
jle    1524 <main+0x3f4>
movslq %r13d,%rcx
xor    %edx,%edx
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %r12d,%r12d
mov    %ebp,%r10d
jmp    13c3 <main+0x293>
nopl   0x0(%rax,%rax,1)
movslq %r14d,%rdi
mov    0x90(%rsp,%r9,4),%eax
mov    %eax,0x190(%rsp,%rdi,4)
add    $0x1,%r14d
add    $0x1,%rdx
cmp    %r8,%rdx
je     153a <main+0x40a>
test   %r12d,%r12d
jle    13fb <main+0x2cb>
mov    0x10(%rsp,%rdx,4),%eax
mov    %r12d,%esi
mov    $0x1,%edi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8c(%rsp,%rdi,4),%ebp
cmp    %ebp,%eax
je     13f7 <main+0x2c7>
lea    0x1(%rdi),%rbx
cmp    %rsi,%rdi
mov    %rbx,%rdi
jb     13e0 <main+0x2b0>
cmp    %ebp,%eax
je     140d <main+0x2dd>
mov    0x10(%rsp,%rdx,4),%eax
movslq %r12d,%rsi
mov    %eax,0x90(%rsp,%rsi,4)
add    $0x1,%r12d
test   %r13d,%r13d
jle    143b <main+0x30b>
mov    0x10(%rsp,%rdx,4),%eax
mov    %r13d,%esi
mov    $0x1,%edi
xchg   %ax,%ax
mov    0x28c(%rsp,%rdi,4),%ebp
cmp    %eax,%ebp
je     1437 <main+0x307>
lea    0x1(%rdi),%rbx
cmp    %rsi,%rdi
mov    %rbx,%rdi
jb     1420 <main+0x2f0>
cmp    %eax,%ebp
je     144d <main+0x31d>
mov    0x10(%rsp,%rdx,4),%eax
movslq %r13d,%rsi
mov    %eax,0x290(%rsp,%rsi,4)
add    $0x1,%r13d
test   %r10b,%r10b
je     148b <main+0x35b>
movslq %r12d,%rax
mov    0x8c(%rsp,%rax,4),%esi
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x10c(%rsp,%rax,4),%edi
cmp    %esi,%edi
je     1487 <main+0x357>
lea    0x1(%rax),%rbp
cmp    %rcx,%rax
mov    %rbp,%rax
jl     1470 <main+0x340>
cmp    %esi,%edi
je     14e0 <main+0x3b0>
lea    -0x1(%r12),%eax
movslq %eax,%r9
test   %r14d,%r14d
jle    13a0 <main+0x270>
mov    0x90(%rsp,%r9,4),%eax
mov    %r14d,%edi
mov    $0x1,%ebp
nopl   0x0(%rax)
mov    0x18c(%rsp,%rbp,4),%ebx
cmp    %eax,%ebx
je     14c7 <main+0x397>
lea    0x1(%rbp),%rsi
cmp    %rdi,%rbp
mov    %rsi,%rbp
jb     14b0 <main+0x380>
cmp    %eax,%ebx
jne    13a3 <main+0x273>
jmp    13b6 <main+0x286>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   %r15d,%r15d
jle    1511 <main+0x3e1>
mov    %r15d,%edi
mov    $0x1,%eax
nopl   (%rax)
mov    0x20c(%rsp,%rax,4),%ebp
cmp    %esi,%ebp
je     1507 <main+0x3d7>
lea    0x1(%rax),%rbx
cmp    %rdi,%rax
mov    %rbx,%rax
jb     14f0 <main+0x3c0>
cmp    %esi,%ebp
je     13b6 <main+0x286>
jmp    1514 <main+0x3e4>
movslq %r15d,%rdi
mov    %esi,0x210(%rsp,%rdi,4)
add    $0x1,%r15d
jmp    13b6 <main+0x286>
lea    0xb7f(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1040 <printf@plt>
xor    %r15d,%r15d
jmp    157a <main+0x44a>
lea    0xb69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r12d,%r12d
jle    157a <main+0x44a>
mov    %r12d,%ebp
lea    0xb11(%rip),%r12
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    0x90(%rsp,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1560 <main+0x430>
lea    0xb5a(%rip),%rdi
call   1030 <puts@plt>
lea    0xb23(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r13d,%r13d
jle    15ca <main+0x49a>
mov    %r13d,%ebp
lea    0xac5(%rip),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x290(%rsp,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    15b0 <main+0x480>
lea    0xb0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xade(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r15d,%r15d
jle    161a <main+0x4ea>
mov    %r15d,%ebp
lea    0xa75(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x210(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1600 <main+0x4d0>
lea    0xaba(%rip),%rdi
call   1030 <puts@plt>
lea    0xa9f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r14d,%r14d
jle    166a <main+0x53a>
mov    %r14d,%ebp
lea    0xa25(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x190(%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1650 <main+0x520>
lea    0xa6a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x388,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [60 x i8] c"Quanti elementi vuoi inserire nella prima lista (max: %d)? \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [38 x i8] c"Il valore inserito \C3\A8 troppo grande!\0A\00"
@.str.3 = [27 x i8] c"Inserire il %do elemento: \00"
@.str.4 = [14 x i8] c"Insieme A = {\00"
@.str.5 = [4 x i8] c"%d \00"
@.str.6 = [3 x i8] c"}\0A\00"
@.str.7 = [62 x i8] c"Quanti elementi vuoi inserire nella seconda lista (max: %d)? \00"
@.str.8 = [6 x i8] c"B = {\00"
@.str.9 = [11 x i8] c"unione = {\00"
@.str.10 = [17 x i8] c"intersezione = {\00"
@.str.11 = [15 x i8] c"differenza = {\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [30 x i32]
%8 = alloca [30 x i32]
%9 = alloca [30 x i32]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [60 x i32]
%16 = alloca [30 x i32]
%17 = alloca [30 x i32]
store i32 0, i32* %1
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
br label %18
18: ; preds = %26, %0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i32 30)
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 30
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %18
br label %26
26: ; preds = %25
%27 = load i32, i32* %4
%28 = icmp sgt i32 %27, 30
br i1 %28, label %18, label %29
29: ; preds = %26
store i32 0, i32* %2
br label %30
30: ; preds = %42, %29
%31 = load i32, i32* %2
%32 = load i32, i32* %4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %45
34: ; preds = %30
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %39
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %40)
br label %42
42: ; preds = %34
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %30
45: ; preds = %30
store i32 0, i32* %2
br label %46
46: ; preds = %95, %45
%47 = load i32, i32* %2
%48 = load i32, i32* %4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %98
50: ; preds = %46
store i32 0, i32* %6
store i32 0, i32* %3
br label %51
51: ; preds = %71, %50
%52 = load i32, i32* %6
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %51
%55 = load i32, i32* %3
%56 = load i32, i32* %10
%57 = icmp slt i32 %55, %56
br label %58
58: ; preds = %54, %51
%59 = phi i1 [ false, %51 ], [ %57, %54 ]
br i1 %59, label %60, label %74
60: ; preds = %58
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = icmp eq i32 %64, %68
%70 = zext i1 %69 to i32
store i32 %70, i32* %6
br label %71
71: ; preds = %60
%72 = load i32, i32* %3
%73 = add nsw i32 %72, 1
store i32 %73, i32* %3
br label %51
74: ; preds = %58
%75 = load i32, i32* %6
%76 = icmp ne i32 %75, 0
br i1 %76, label %94, label %77
77: ; preds = %74
%78 = load i32, i32* %2
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = load i32, i32* %10
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [60 x i32], [60 x i32]* %15, i64 0, i64 %83
store i32 %81, i32* %84
%85 = load i32, i32* %2
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %86
%88 = load i32, i32* %87
%89 = load i32, i32* %10
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %90
store i32 %88, i32* %91
%92 = load i32, i32* %10
%93 = add nsw i32 %92, 1
store i32 %93, i32* %10
br label %94
94: ; preds = %77, %74
br label %95
95: ; preds = %94
%96 = load i32, i32* %2
%97 = add nsw i32 %96, 1
store i32 %97, i32* %2
br label %46
98: ; preds = %46
%99 = load i32, i32* %10
store i32 %99, i32* %12
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %101
101: ; preds = %111, %98
%102 = load i32, i32* %2
%103 = load i32, i32* %10
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %114
105: ; preds = %101
%106 = load i32, i32* %2
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %107
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %109)
br label %111
111: ; preds = %105
%112 = load i32, i32* %2
%113 = add nsw i32 %112, 1
store i32 %113, i32* %2
br label %101
114: ; preds = %101
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %116
116: ; preds = %124, %114
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0), i32 30)
%118 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%119 = load i32, i32* %5
%120 = icmp sgt i32 %119, 30
br i1 %120, label %121, label %123
121: ; preds = %116
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
br label %123
123: ; preds = %121, %116
br label %124
124: ; preds = %123
%125 = load i32, i32* %5
%126 = icmp sgt i32 %125, 30
br i1 %126, label %116, label %127
127: ; preds = %124
store i32 0, i32* %2
br label %128
128: ; preds = %140, %127
%129 = load i32, i32* %2
%130 = load i32, i32* %5
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %143
132: ; preds = %128
%133 = load i32, i32* %2
%134 = add nsw i32 %133, 1
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %134)
%136 = load i32, i32* %2
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %137
%139 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %138)
br label %140
140: ; preds = %132
%141 = load i32, i32* %2
%142 = add nsw i32 %141, 1
store i32 %142, i32* %2
br label %128
143: ; preds = %128
store i32 0, i32* %2
br label %144
144: ; preds = %331, %143
%145 = load i32, i32* %2
%146 = load i32, i32* %5
%147 = icmp slt i32 %145, %146
br i1 %147, label %148, label %334
148: ; preds = %144
store i32 0, i32* %6
store i32 0, i32* %3
br label %149
149: ; preds = %169, %148
%150 = load i32, i32* %6
%151 = icmp ne i32 %150, 0
br i1 %151, label %156, label %152
152: ; preds = %149
%153 = load i32, i32* %3
%154 = load i32, i32* %11
%155 = icmp slt i32 %153, %154
br label %156
156: ; preds = %152, %149
%157 = phi i1 [ false, %149 ], [ %155, %152 ]
br i1 %157, label %158, label %172
158: ; preds = %156
%159 = load i32, i32* %2
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %160
%162 = load i32, i32* %161
%163 = load i32, i32* %3
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %164
%166 = load i32, i32* %165
%167 = icmp eq i32 %162, %166
%168 = zext i1 %167 to i32
store i32 %168, i32* %6
br label %169
169: ; preds = %158
%170 = load i32, i32* %3
%171 = add nsw i32 %170, 1
store i32 %171, i32* %3
br label %149
172: ; preds = %156
%173 = load i32, i32* %6
%174 = icmp ne i32 %173, 0
br i1 %174, label %185, label %175
175: ; preds = %172
%176 = load i32, i32* %2
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %177
%179 = load i32, i32* %178
%180 = load i32, i32* %11
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %181
store i32 %179, i32* %182
%183 = load i32, i32* %11
%184 = add nsw i32 %183, 1
store i32 %184, i32* %11
br label %185
185: ; preds = %175, %172
store i32 0, i32* %6
store i32 0, i32* %3
br label %186
186: ; preds = %206, %185
%187 = load i32, i32* %6
%188 = icmp ne i32 %187, 0
br i1 %188, label %193, label %189
189: ; preds = %186
%190 = load i32, i32* %3
%191 = load i32, i32* %12
%192 = icmp slt i32 %190, %191
br label %193
193: ; preds = %189, %186
%194 = phi i1 [ false, %186 ], [ %192, %189 ]
br i1 %194, label %195, label %209
195: ; preds = %193
%196 = load i32, i32* %3
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [60 x i32], [60 x i32]* %15, i64 0, i64 %197
%199 = load i32, i32* %198
%200 = load i32, i32* %2
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %201
%203 = load i32, i32* %202
%204 = icmp eq i32 %199, %203
%205 = zext i1 %204 to i32
store i32 %205, i32* %6
br label %206
206: ; preds = %195
%207 = load i32, i32* %3
%208 = add nsw i32 %207, 1
store i32 %208, i32* %3
br label %186
209: ; preds = %193
%210 = load i32, i32* %6
%211 = icmp ne i32 %210, 0
br i1 %211, label %222, label %212
212: ; preds = %209
%213 = load i32, i32* %2
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %214
%216 = load i32, i32* %215
%217 = load i32, i32* %12
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [60 x i32], [60 x i32]* %15, i64 0, i64 %218
store i32 %216, i32* %219
%220 = load i32, i32* %12
%221 = add nsw i32 %220, 1
store i32 %221, i32* %12
br label %222
222: ; preds = %212, %209
store i32 0, i32* %6
store i32 0, i32* %3
br label %223
223: ; preds = %244, %222
%224 = load i32, i32* %6
%225 = icmp ne i32 %224, 0
br i1 %225, label %230, label %226
226: ; preds = %223
%227 = load i32, i32* %3
%228 = load i32, i32* %10
%229 = icmp slt i32 %227, %228
br label %230
230: ; preds = %226, %223
%231 = phi i1 [ false, %223 ], [ %229, %226 ]
br i1 %231, label %232, label %247
232: ; preds = %230
%233 = load i32, i32* %3
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %234
%236 = load i32, i32* %235
%237 = load i32, i32* %11
%238 = sub nsw i32 %237, 1
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %239
%241 = load i32, i32* %240
%242 = icmp eq i32 %236, %241
%243 = zext i1 %242 to i32
store i32 %243, i32* %6
br label %244
244: ; preds = %232
%245 = load i32, i32* %3
%246 = add nsw i32 %245, 1
store i32 %246, i32* %3
br label %223
247: ; preds = %230
%248 = load i32, i32* %6
%249 = icmp ne i32 %248, 0
br i1 %249, label %250, label %290
250: ; preds = %247
store i32 0, i32* %6
store i32 0, i32* %3
br label %251
251: ; preds = %272, %250
%252 = load i32, i32* %6
%253 = icmp ne i32 %252, 0
br i1 %253, label %258, label %254
254: ; preds = %251
%255 = load i32, i32* %3
%256 = load i32, i32* %13
%257 = icmp slt i32 %255, %256
br label %258
258: ; preds = %254, %251
%259 = phi i1 [ false, %251 ], [ %257, %254 ]
br i1 %259, label %260, label %275
260: ; preds = %258
%261 = load i32, i32* %3
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds [30 x i32], [30 x i32]* %16, i64 0, i64 %262
%264 = load i32, i32* %263
%265 = load i32, i32* %11
%266 = sub nsw i32 %265, 1
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %267
%269 = load i32, i32* %268
%270 = icmp eq i32 %264, %269
%271 = zext i1 %270 to i32
store i32 %271, i32* %6
br label %272
272: ; preds = %260
%273 = load i32, i32* %3
%274 = add nsw i32 %273, 1
store i32 %274, i32* %3
br label %251
275: ; preds = %258
%276 = load i32, i32* %6
%277 = icmp ne i32 %276, 0
br i1 %277, label %289, label %278
278: ; preds = %275
%279 = load i32, i32* %11
%280 = sub nsw i32 %279, 1
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %281
%283 = load i32, i32* %282
%284 = load i32, i32* %13
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds [30 x i32], [30 x i32]* %16, i64 0, i64 %285
store i32 %283, i32* %286
%287 = load i32, i32* %13
%288 = add nsw i32 %287, 1
store i32 %288, i32* %13
br label %289
289: ; preds = %278, %275
br label %330
290: ; preds = %247
store i32 0, i32* %6
store i32 0, i32* %3
br label %291
291: ; preds = %312, %290
%292 = load i32, i32* %6
%293 = icmp ne i32 %292, 0
br i1 %293, label %298, label %294
294: ; preds = %291
%295 = load i32, i32* %3
%296 = load i32, i32* %14
%297 = icmp slt i32 %295, %296
br label %298
298: ; preds = %294, %291
%299 = phi i1 [ false, %291 ], [ %297, %294 ]
br i1 %299, label %300, label %315
300: ; preds = %298
%301 = load i32, i32* %3
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds [30 x i32], [30 x i32]* %17, i64 0, i64 %302
%304 = load i32, i32* %303
%305 = load i32, i32* %11
%306 = sub nsw i32 %305, 1
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %307
%309 = load i32, i32* %308
%310 = icmp eq i32 %304, %309
%311 = zext i1 %310 to i32
store i32 %311, i32* %6
br label %312
312: ; preds = %300
%313 = load i32, i32* %3
%314 = add nsw i32 %313, 1
store i32 %314, i32* %3
br label %291
315: ; preds = %298
%316 = load i32, i32* %6
%317 = icmp ne i32 %316, 0
br i1 %317, label %329, label %318
318: ; preds = %315
%319 = load i32, i32* %11
%320 = sub nsw i32 %319, 1
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %321
%323 = load i32, i32* %322
%324 = load i32, i32* %14
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds [30 x i32], [30 x i32]* %17, i64 0, i64 %325
store i32 %323, i32* %326
%327 = load i32, i32* %14
%328 = add nsw i32 %327, 1
store i32 %328, i32* %14
br label %329
329: ; preds = %318, %315
br label %330
330: ; preds = %329, %289
br label %331
331: ; preds = %330
%332 = load i32, i32* %2
%333 = add nsw i32 %332, 1
store i32 %333, i32* %2
br label %144
334: ; preds = %144
%335 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %2
br label %336
336: ; preds = %346, %334
%337 = load i32, i32* %2
%338 = load i32, i32* %11
%339 = icmp slt i32 %337, %338
br i1 %339, label %340, label %349
340: ; preds = %336
%341 = load i32, i32* %2
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 %342
%344 = load i32, i32* %343
%345 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %344)
br label %346
346: ; preds = %340
%347 = load i32, i32* %2
%348 = add nsw i32 %347, 1
store i32 %348, i32* %2
br label %336
349: ; preds = %336
%350 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%351 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %2
br label %352
352: ; preds = %362, %349
%353 = load i32, i32* %2
%354 = load i32, i32* %12
%355 = icmp slt i32 %353, %354
br i1 %355, label %356, label %365
356: ; preds = %352
%357 = load i32, i32* %2
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds [60 x i32], [60 x i32]* %15, i64 0, i64 %358
%360 = load i32, i32* %359
%361 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %360)
br label %362
362: ; preds = %356
%363 = load i32, i32* %2
%364 = add nsw i32 %363, 1
store i32 %364, i32* %2
br label %352
365: ; preds = %352
%366 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%367 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %2
br label %368
368: ; preds = %378, %365
%369 = load i32, i32* %2
%370 = load i32, i32* %13
%371 = icmp slt i32 %369, %370
br i1 %371, label %372, label %381
372: ; preds = %368
%373 = load i32, i32* %2
%374 = sext i32 %373 to i64
%375 = getelementptr inbounds [30 x i32], [30 x i32]* %16, i64 0, i64 %374
%376 = load i32, i32* %375
%377 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %376)
br label %378
378: ; preds = %372
%379 = load i32, i32* %2
%380 = add nsw i32 %379, 1
store i32 %380, i32* %2
br label %368
381: ; preds = %368
%382 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%383 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %2
br label %384
384: ; preds = %394, %381
%385 = load i32, i32* %2
%386 = load i32, i32* %14
%387 = icmp slt i32 %385, %386
br i1 %387, label %388, label %397
388: ; preds = %384
%389 = load i32, i32* %2
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds [30 x i32], [30 x i32]* %17, i64 0, i64 %390
%392 = load i32, i32* %391
%393 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %392)
br label %394
394: ; preds = %388
%395 = load i32, i32* %2
%396 = add nsw i32 %395, 1
store i32 %396, i32* %2
br label %384
397: ; preds = %384
%398 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%399 = load i32, i32* %1
ret i32 %399
}

LLVM IR (-O2):
@.str = [60 x i8] c"Quanti elementi vuoi inserire nella prima lista (max: %d)? \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [27 x i8] c"Inserire il %do elemento: \00"
@.str.4 = [14 x i8] c"Insieme A = {\00"
@.str.5 = [4 x i8] c"%d \00"
@.str.7 = [62 x i8] c"Quanti elementi vuoi inserire nella seconda lista (max: %d)? \00"
@.str.8 = [6 x i8] c"B = {\00"
@.str.9 = [11 x i8] c"unione = {\00"
@.str.10 = [17 x i8] c"intersezione = {\00"
@.str.11 = [15 x i8] c"differenza = {\00"
@str.15 = [2 x i8] c"}\00"
@str.17 = [37 x i8] c"Il valore inserito \C3\A8 troppo grande!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [30 x i32]
%4 = alloca [30 x i32]
%5 = alloca [30 x i32]
%6 = alloca [60 x i32]
%7 = alloca [30 x i32]
%8 = alloca [30 x i32]
%9 = bitcast i32* %1 to i8*
%10 = bitcast i32* %2 to i8*
%11 = bitcast [30 x i32]* %3 to i8*
%12 = bitcast [30 x i32]* %4 to i8*
%13 = bitcast [30 x i32]* %5 to i8*
%14 = bitcast [60 x i32]* %6 to i8*
%15 = bitcast [30 x i32]* %7 to i8*
%16 = bitcast [30 x i32]* %8 to i8*
br label %17
17: ; preds = %22, %0
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i32 30)
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%20 = load i32, i32* %1
%21 = icmp sgt i32 %20, 30
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.17, i64 0, i64 0))
%24 = load i32, i32* %1
%25 = icmp sgt i32 %24, 30
br i1 %25, label %17, label %26
26: ; preds = %17, %22
%27 = phi i32 [ %24, %22 ], [ %20, %17 ]
%28 = icmp sgt i32 %27, 0
br i1 %28, label %33, label %71
29: ; preds = %33
%30 = icmp sgt i32 %40, 0
br i1 %30, label %31, label %71
31: ; preds = %29
%32 = zext i32 %40 to i64
br label %43
33: ; preds = %26, %33
%34 = phi i64 [ %35, %33 ], [ 0, %26 ]
%35 = add nuw nsw i64 %34, 1
%36 = trunc i64 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %34
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %38)
%40 = load i32, i32* %1
%41 = sext i32 %40 to i64
%42 = icmp slt i64 %35, %41
br i1 %42, label %33, label %29
43: ; preds = %31, %67
%44 = phi i64 [ 0, %31 ], [ %69, %67 ]
%45 = phi i32 [ 0, %31 ], [ %68, %67 ]
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %60
47: ; preds = %43
%48 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %44
%49 = load i32, i32* %48
%50 = zext i32 %45 to i64
br label %51
51: ; preds = %47, %51
%52 = phi i64 [ 0, %47 ], [ %56, %51 ]
%53 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = icmp ne i32 %49, %54
%56 = add nuw nsw i64 %52, 1
%57 = icmp ult i64 %56, %50
%58 = select i1 %55, i1 %57, i1 false
br i1 %58, label %51, label %59
59: ; preds = %51
br i1 %55, label %60, label %67
60: ; preds = %43, %59
%61 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %44
%62 = load i32, i32* %61
%63 = sext i32 %45 to i64
%64 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %63
store i32 %62, i32* %64
%65 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %63
store i32 %62, i32* %65
%66 = add nsw i32 %45, 1
br label %67
67: ; preds = %59, %60
%68 = phi i32 [ %45, %59 ], [ %66, %60 ]
%69 = add nuw nsw i64 %44, 1
%70 = icmp eq i64 %69, %32
br i1 %70, label %73, label %43
71: ; preds = %29, %26
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %85
73: ; preds = %67
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%75 = icmp sgt i32 %68, 0
br i1 %75, label %76, label %85
76: ; preds = %73
%77 = zext i32 %68 to i64
br label %78
78: ; preds = %76, %78
%79 = phi i64 [ 0, %76 ], [ %83, %78 ]
%80 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %81)
%83 = add nuw nsw i64 %79, 1
%84 = icmp eq i64 %83, %77
br i1 %84, label %85, label %78
85: ; preds = %78, %71, %73
%86 = phi i1 [ false, %71 ], [ false, %73 ], [ %75, %78 ]
%87 = phi i32 [ 0, %71 ], [ %68, %73 ], [ %68, %78 ]
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
br label %89
89: ; preds = %94, %85
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0), i32 30)
%91 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%92 = load i32, i32* %2
%93 = icmp sgt i32 %92, 30
br i1 %93, label %94, label %98
94: ; preds = %89
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.17, i64 0, i64 0))
%96 = load i32, i32* %2
%97 = icmp sgt i32 %96, 30
br i1 %97, label %89, label %98
98: ; preds = %89, %94
%99 = phi i32 [ %96, %94 ], [ %92, %89 ]
%100 = icmp sgt i32 %99, 0
br i1 %100, label %106, label %229
101: ; preds = %106
%102 = icmp sgt i32 %113, 0
br i1 %102, label %103, label %229
103: ; preds = %101
%104 = sext i32 %87 to i64
%105 = zext i32 %113 to i64
br label %116
106: ; preds = %98, %106
%107 = phi i64 [ %108, %106 ], [ 0, %98 ]
%108 = add nuw nsw i64 %107, 1
%109 = trunc i64 %108 to i32
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %109)
%111 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %107
%112 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %111)
%113 = load i32, i32* %2
%114 = sext i32 %113 to i64
%115 = icmp slt i64 %108, %114
br i1 %115, label %106, label %101
116: ; preds = %103, %224
%117 = phi i64 [ 0, %103 ], [ %227, %224 ]
%118 = phi i32 [ 0, %103 ], [ %226, %224 ]
%119 = phi i32 [ 0, %103 ], [ %225, %224 ]
%120 = phi i32 [ %87, %103 ], [ %165, %224 ]
%121 = phi i32 [ 0, %103 ], [ %143, %224 ]
%122 = icmp sgt i32 %121, 0
br i1 %122, label %123, label %136
123: ; preds = %116
%124 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %117
%125 = load i32, i32* %124
%126 = zext i32 %121 to i64
br label %127
127: ; preds = %123, %127
%128 = phi i64 [ 0, %123 ], [ %132, %127 ]
%129 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = icmp ne i32 %125, %130
%132 = add nuw nsw i64 %128, 1
%133 = icmp ult i64 %132, %126
%134 = select i1 %131, i1 %133, i1 false
br i1 %134, label %127, label %135
135: ; preds = %127
br i1 %131, label %136, label %142
136: ; preds = %116, %135
%137 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %117
%138 = load i32, i32* %137
%139 = sext i32 %121 to i64
%140 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %139
store i32 %138, i32* %140
%141 = add nsw i32 %121, 1
br label %142
142: ; preds = %136, %135
%143 = phi i32 [ %121, %135 ], [ %141, %136 ]
%144 = icmp sgt i32 %120, 0
br i1 %144, label %145, label %158
145: ; preds = %142
%146 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %117
%147 = load i32, i32* %146
%148 = zext i32 %120 to i64
br label %149
149: ; preds = %145, %149
%150 = phi i64 [ 0, %145 ], [ %154, %149 ]
%151 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %150
%152 = load i32, i32* %151
%153 = icmp ne i32 %152, %147
%154 = add nuw nsw i64 %150, 1
%155 = icmp ult i64 %154, %148
%156 = select i1 %153, i1 %155, i1 false
br i1 %156, label %149, label %157
157: ; preds = %149
br i1 %153, label %158, label %164
158: ; preds = %142, %157
%159 = getelementptr inbounds [30 x i32], [30 x i32]* %3, i64 0, i64 %117
%160 = load i32, i32* %159
%161 = sext i32 %120 to i64
%162 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %161
store i32 %160, i32* %162
%163 = add nsw i32 %120, 1
br label %164
164: ; preds = %158, %157
%165 = phi i32 [ %120, %157 ], [ %163, %158 ]
br i1 %86, label %166, label %186
166: ; preds = %164
%167 = add nsw i32 %143, -1
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %168
%170 = load i32, i32* %169
br label %171
171: ; preds = %166, %171
%172 = phi i64 [ 0, %166 ], [ %176, %171 ]
%173 = getelementptr inbounds [30 x i32], [30 x i32]* %4, i64 0, i64 %172
%174 = load i32, i32* %173
%175 = icmp ne i32 %174, %170
%176 = add nuw nsw i64 %172, 1
%177 = icmp slt i64 %176, %104
%178 = select i1 %175, i1 %177, i1 false
br i1 %178, label %171, label %179
179: ; preds = %171
br i1 %175, label %186, label %180
180: ; preds = %179
%181 = icmp sgt i32 %119, 0
br i1 %181, label %184, label %182
182: ; preds = %180
%183 = sext i32 %119 to i64
br label %205
184: ; preds = %180
%185 = zext i32 %119 to i64
br label %196
186: ; preds = %164, %179
%187 = icmp sgt i32 %118, 0
%188 = add nsw i32 %143, -1
%189 = sext i32 %188 to i64
br i1 %187, label %192, label %190
190: ; preds = %186
%191 = sext i32 %118 to i64
br label %218
192: ; preds = %186
%193 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %189
%194 = load i32, i32* %193
%195 = zext i32 %118 to i64
br label %209
196: ; preds = %184, %196
%197 = phi i64 [ 0, %184 ], [ %201, %196 ]
%198 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %197
%199 = load i32, i32* %198
%200 = icmp ne i32 %199, %170
%201 = add nuw nsw i64 %197, 1
%202 = icmp ult i64 %201, %185
%203 = select i1 %200, i1 %202, i1 false
br i1 %203, label %196, label %204
204: ; preds = %196
br i1 %200, label %205, label %224
205: ; preds = %182, %204
%206 = phi i64 [ %183, %182 ], [ %185, %204 ]
%207 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %206
store i32 %170, i32* %207
%208 = add nsw i32 %119, 1
br label %224
209: ; preds = %192, %209
%210 = phi i64 [ 0, %192 ], [ %214, %209 ]
%211 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %210
%212 = load i32, i32* %211
%213 = icmp ne i32 %212, %194
%214 = add nuw nsw i64 %210, 1
%215 = icmp ult i64 %214, %195
%216 = select i1 %213, i1 %215, i1 false
br i1 %216, label %209, label %217
217: ; preds = %209
br i1 %213, label %218, label %224
218: ; preds = %190, %217
%219 = phi i64 [ %191, %190 ], [ %195, %217 ]
%220 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %189
%221 = load i32, i32* %220
%222 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %219
store i32 %221, i32* %222
%223 = add nsw i32 %118, 1
br label %224
224: ; preds = %205, %204, %218, %217
%225 = phi i32 [ %119, %204 ], [ %208, %205 ], [ %119, %217 ], [ %119, %218 ]
%226 = phi i32 [ %118, %204 ], [ %118, %205 ], [ %118, %217 ], [ %223, %218 ]
%227 = add nuw nsw i64 %117, 1
%228 = icmp eq i64 %227, %105
br i1 %228, label %231, label %116
229: ; preds = %101, %98
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %243
231: ; preds = %224
%232 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%233 = icmp sgt i32 %143, 0
br i1 %233, label %234, label %243
234: ; preds = %231
%235 = zext i32 %143 to i64
br label %236
236: ; preds = %234, %236
%237 = phi i64 [ 0, %234 ], [ %241, %236 ]
%238 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %237
%239 = load i32, i32* %238
%240 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %239)
%241 = add nuw nsw i64 %237, 1
%242 = icmp eq i64 %241, %235
br i1 %242, label %243, label %236
243: ; preds = %236, %229, %231
%244 = phi i32 [ 0, %229 ], [ %226, %231 ], [ %226, %236 ]
%245 = phi i32 [ 0, %229 ], [ %225, %231 ], [ %225, %236 ]
%246 = phi i32 [ %87, %229 ], [ %165, %231 ], [ %165, %236 ]
%247 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
%248 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%249 = icmp sgt i32 %246, 0
br i1 %249, label %250, label %259
250: ; preds = %243
%251 = zext i32 %246 to i64
br label %252
252: ; preds = %250, %252
%253 = phi i64 [ 0, %250 ], [ %257, %252 ]
%254 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %253
%255 = load i32, i32* %254
%256 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %255)
%257 = add nuw nsw i64 %253, 1
%258 = icmp eq i64 %257, %251
br i1 %258, label %259, label %252
259: ; preds = %252, %243
%260 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
%261 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%262 = icmp sgt i32 %245, 0
br i1 %262, label %263, label %272
263: ; preds = %259
%264 = zext i32 %245 to i64
br label %265
265: ; preds = %263, %265
%266 = phi i64 [ 0, %263 ], [ %270, %265 ]
%267 = getelementptr inbounds [30 x i32], [30 x i32]* %7, i64 0, i64 %266
%268 = load i32, i32* %267
%269 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %268)
%270 = add nuw nsw i64 %266, 1
%271 = icmp eq i64 %270, %264
br i1 %271, label %272, label %265
272: ; preds = %265, %259
%273 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
%274 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%275 = icmp sgt i32 %244, 0
br i1 %275, label %276, label %285
276: ; preds = %272
%277 = zext i32 %244 to i64
br label %278
278: ; preds = %276, %278
%279 = phi i64 [ 0, %276 ], [ %283, %278 ]
%280 = getelementptr inbounds [30 x i32], [30 x i32]* %8, i64 0, i64 %279
%281 = load i32, i32* %280
%282 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %281)
%283 = add nuw nsw i64 %279, 1
%284 = icmp eq i64 %283, %277
br i1 %284, label %285, label %278
285: ; preds = %278, %272
%286 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
ret i32 0
}