#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 */
struct pilha {
  int dummy;
};
struct fila {
  int dummy;
};

/* Variables and functions */
int deletaFila(struct fila **, struct fila **, int);
int /*<<< orphan*/ enfileirar(struct fila **, struct fila **, int);
int /*<<< orphan*/ imprimeFila(struct fila **);
int /*<<< orphan*/ imprimePilha(struct pilha **);
int /*<<< orphan*/ insereFilaImparPilha(struct fila **, struct fila **,
                                        struct pilha **);
int /*<<< orphan*/ insereFilaParPilha(struct fila **, struct fila **,
                                      struct pilha **);
int /*<<< orphan*/
insereValoresMenor50PilhaFila(struct pilha **, struct fila **, struct fila **);
int /*<<< orphan*/ printf(char *);
int rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int i;
  struct fila *inicioFila = NULL;
  struct fila *fimFila = NULL;
  struct pilha *pilhaImpar = NULL;
  struct pilha *pilhaPar = NULL;
  struct fila *inicioFilaMenor = NULL;
  struct fila *fimFilaMenor = NULL;
  srand(time(NULL));
  for (i = 0; i < 30; i++) {
    int rnd = rand() % 100;
    enfileirar(&inicioFila, &fimFila, rnd);
  }
  printf("Fila:\n\t");
  imprimeFila(&inicioFila);
  printf("Pilha Impar:\n\t");
  imprimePilha(&pilhaImpar);
  printf("Pilha Par:\n\t");
  imprimePilha(&pilhaPar);
  printf("Fila Menor:\n\t");
  imprimeFila(&inicioFilaMenor);
  printf("------------------------------\n");
  insereFilaImparPilha(&inicioFila, &fimFila, &pilhaImpar);
  printf("Fila:\n\t");
  imprimeFila(&inicioFila);
  printf("Pilha Impar:\n\t");
  imprimePilha(&pilhaImpar);
  printf("Pilha Par:\n\t");
  imprimePilha(&pilhaPar);
  printf("Fila Menor:\n\t");
  imprimeFila(&inicioFilaMenor);
  printf("------------------------------\n");
  insereFilaParPilha(&inicioFila, &fimFila, &pilhaPar);
  printf("Fila:\n\t");
  imprimeFila(&inicioFila);
  printf("Pilha Impar:\n\t");
  imprimePilha(&pilhaImpar);
  printf("Pilha Par:\n\t");
  imprimePilha(&pilhaPar);
  printf("Fila Menor:\n\t");
  imprimeFila(&inicioFilaMenor);
  printf("------------------------------\n");
  insereValoresMenor50PilhaFila(&pilhaImpar, &inicioFilaMenor, &fimFilaMenor);
  printf("Fila:\n\t");
  imprimeFila(&inicioFila);
  printf("Pilha Impar:\n\t");
  imprimePilha(&pilhaImpar);
  printf("Pilha Par:\n\t");
  imprimePilha(&pilhaPar);
  printf("Fila Menor:\n\t");
  imprimeFila(&inicioFilaMenor);
  printf("------------------------------\n");
  int valDel;
  printf("Digite um valor a ser deletado da fila: ");
  scanf("%i", &valDel);
  int statusExcluiNodo = deletaFila(&inicioFila, &fimFila, valDel);
  if (statusExcluiNodo == 0) {
    printf("O valor selecionado não foi encontrado.\n");
  }
  printf("Fila:\n\t");
  imprimeFila(&inicioFila);
  printf("Pilha Impar:\n\t");
  imprimePilha(&pilhaImpar);
  printf("Pilha Par:\n\t");
  imprimePilha(&pilhaPar);
  printf("Fila Menor:\n\t");
  imprimeFila(&inicioFilaMenor);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1e,-0x8(%rbp)
jge    1250 <main+0x90>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x3c(%rbp)
mov    -0x3c(%rbp),%edx
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <enfileirar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1216 <main+0x56>
lea    0xda9(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xd9c(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xd96(%rip),%rdi
call   1050 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xd8e(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xd87(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   10a0 <insereFilaImparPilha@plt>
lea    0xd38(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xd2b(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xd25(%rip),%rdi
call   1050 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xd1d(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xd16(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   10d0 <insereFilaParPilha@plt>
lea    0xcc7(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xcba(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xcb4(%rip),%rdi
call   1050 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xcac(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xca5(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   10b0 <insereValoresMenor50PilhaFila@plt>
lea    0xc56(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xc49(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xc43(%rip),%rdi
call   1050 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xc3b(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xc34(%rip),%rdi
call   1050 <printf@plt>
lea    0xc48(%rip),%rdi
call   1050 <printf@plt>
lea    0xc65(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10c0 <scanf@plt>
mov    -0x40(%rbp),%edx
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1090 <deletaFila@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jne    1448 <main+0x288>
lea    0xc3b(%rip),%rdi
call   1050 <printf@plt>
lea    0xbb1(%rip),%rdi
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1060 <imprimeFila@plt>
lea    0xba4(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xb9e(%rip),%rdi
call   1050 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <imprimePilha@plt>
lea    0xb96(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1060 <imprimeFila@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x28(%rsp)
movq   $0x0,0x20(%rsp)
movq   $0x0,0x30(%rsp)
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    $0x1e,%ebx
lea    0x10(%rsp),%r14
mov    %rsp,%rbp
xchg   %ax,%ax
xor    %eax,%eax
call   10f0 <rand@plt>
movslq %eax,%rdx
imul   $0x51eb851f,%rdx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
imul   $0x64,%eax,%eax
sub    %eax,%edx
mov    %r14,%rdi
mov    %rbp,%rsi
call   1030 <enfileirar@plt>
add    $0xffffffff,%ebx
jne    1230 <main+0x60>
lea    0xd96(%rip),%r12
mov    %r12,%rdi
call   1060 <printf@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <imprimeFila@plt>
lea    0xd82(%rip),%r13
mov    %r13,%rdi
call   1060 <printf@plt>
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
call   1050 <imprimePilha@plt>
lea    0xd75(%rip),%rdi
call   1060 <printf@plt>
lea    0x28(%rsp),%r15
mov    %r15,%rdi
call   1050 <imprimePilha@plt>
lea    0xd69(%rip),%rdi
call   1060 <printf@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1070 <imprimeFila@plt>
lea    0xd8a(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
call   10b0 <insereFilaImparPilha@plt>
mov    %r12,%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1070 <imprimeFila@plt>
mov    %r13,%rdi
call   1060 <printf@plt>
mov    %rbp,%rdi
call   1050 <imprimePilha@plt>
lea    0xd09(%rip),%rdi
mov    %rdi,%rbp
call   1060 <printf@plt>
mov    %r15,%rdi
call   1050 <imprimePilha@plt>
lea    0xcff(%rip),%rdi
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %r14,%r12
call   1070 <imprimeFila@plt>
lea    0xd22(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %rsp,%rsi
mov    %r15,%rdx
call   10e0 <insereFilaParPilha@plt>
lea    0xca7(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1070 <imprimeFila@plt>
mov    %r13,%rdi
call   1060 <printf@plt>
lea    0x8(%rsp),%rdi
mov    %rdi,%r13
call   1050 <imprimePilha@plt>
mov    %rbp,%rdi
call   1060 <printf@plt>
mov    %r15,%rdi
call   1050 <imprimePilha@plt>
lea    0xc92(%rip),%rdi
call   1060 <printf@plt>
mov    %r12,%rdi
call   1070 <imprimeFila@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x30(%rsp),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
call   10c0 <insereValoresMenor50PilhaFila@plt>
lea    0xc42(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1070 <imprimeFila@plt>
lea    0xc36(%rip),%rdi
call   1060 <printf@plt>
mov    %r13,%rdi
call   1050 <imprimePilha@plt>
lea    0xc31(%rip),%rdi
call   1060 <printf@plt>
mov    %r15,%rdi
call   1050 <imprimePilha@plt>
lea    0xc2a(%rip),%rdi
call   1060 <printf@plt>
mov    %r12,%rdi
call   1070 <imprimeFila@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xc1c(%rip),%rdi
call   1060 <printf@plt>
lea    0xc39(%rip),%rdi
lea    0x1c(%rsp),%rsi
call   10d0 <scanf@plt>
mov    0x1c(%rsp),%edx
mov    %rbx,%rdi
mov    %rsp,%rsi
call   10a0 <deletaFila@plt>
test   %eax,%eax
jne    144b <main+0x27b>
lea    0xc37(%rip),%rdi
call   1040 <puts@plt>
lea    0xbae(%rip),%rdi
call   1060 <printf@plt>
lea    0x10(%rsp),%rdi
call   1070 <imprimeFila@plt>
lea    0xba0(%rip),%rdi
call   1060 <printf@plt>
lea    0x8(%rsp),%rdi
call   1050 <imprimePilha@plt>
lea    0xb99(%rip),%rdi
call   1060 <printf@plt>
lea    0x28(%rsp),%rdi
call   1050 <imprimePilha@plt>
lea    0xb90(%rip),%rdi
call   1060 <printf@plt>
lea    0x20(%rsp),%rdi
call   1070 <imprimeFila@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.fila = type { i32 }
%struct.pilha = type { i32 }
@.str = [8 x i8] c"Fila:\0A\09\00"
@.str.1 = [15 x i8] c"Pilha Impar:\0A\09\00"
@.str.2 = [13 x i8] c"Pilha Par:\0A\09\00"
@.str.3 = [14 x i8] c"Fila Menor:\0A\09\00"
@.str.4 = [32 x i8] c"------------------------------\0A\00"
@.str.5 = [41 x i8] c"Digite um valor a ser deletado da fila: \00"
@.str.6 = [3 x i8] c"%i\00"
@.str.7 = [42 x i8] c"O valor selecionado n\C3\A3o foi encontrado.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.fila*
%4 = alloca %struct.fila*
%5 = alloca %struct.pilha*
%6 = alloca %struct.pilha*
%7 = alloca %struct.fila*
%8 = alloca %struct.fila*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store %struct.fila* null, %struct.fila** %3
store %struct.fila* null, %struct.fila** %4
store %struct.pilha* null, %struct.pilha** %5
store %struct.pilha* null, %struct.pilha** %6
store %struct.fila* null, %struct.fila** %7
store %struct.fila* null, %struct.fila** %8
%12 = call i32 @time(i32* null)
%13 = call i32 @srand(i32 %12)
store i32 0, i32* %2
br label %14
14: ; preds = %22, %0
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 30
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 100
store i32 %19, i32* %9
%20 = load i32, i32* %9
%21 = call i32 @enfileirar(%struct.fila** %3, %struct.fila** %4, i32 %20)
br label %22
22: ; preds = %17
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
br label %14
25: ; preds = %14
%26 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%27 = call i32 @imprimeFila(%struct.fila** %3)
%28 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 @imprimePilha(%struct.pilha** %5)
%30 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 @imprimePilha(%struct.pilha** %6)
%32 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%33 = call i32 @imprimeFila(%struct.fila** %7)
%34 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%35 = call i32 @insereFilaImparPilha(%struct.fila** %3, %struct.fila** %4, %struct.pilha** %5)
%36 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%37 = call i32 @imprimeFila(%struct.fila** %3)
%38 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%39 = call i32 @imprimePilha(%struct.pilha** %5)
%40 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%41 = call i32 @imprimePilha(%struct.pilha** %6)
%42 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%43 = call i32 @imprimeFila(%struct.fila** %7)
%44 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%45 = call i32 @insereFilaParPilha(%struct.fila** %3, %struct.fila** %4, %struct.pilha** %6)
%46 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%47 = call i32 @imprimeFila(%struct.fila** %3)
%48 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%49 = call i32 @imprimePilha(%struct.pilha** %5)
%50 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%51 = call i32 @imprimePilha(%struct.pilha** %6)
%52 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%53 = call i32 @imprimeFila(%struct.fila** %7)
%54 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%55 = call i32 @insereValoresMenor50PilhaFila(%struct.pilha** %5, %struct.fila** %7, %struct.fila** %8)
%56 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%57 = call i32 @imprimeFila(%struct.fila** %3)
%58 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%59 = call i32 @imprimePilha(%struct.pilha** %5)
%60 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%61 = call i32 @imprimePilha(%struct.pilha** %6)
%62 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%63 = call i32 @imprimeFila(%struct.fila** %7)
%64 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%65 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%66 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%67 = load i32, i32* %10
%68 = call i32 @deletaFila(%struct.fila** %3, %struct.fila** %4, i32 %67)
store i32 %68, i32* %11
%69 = load i32, i32* %11
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %25
%72 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
br label %73
73: ; preds = %71, %25
%74 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%75 = call i32 @imprimeFila(%struct.fila** %3)
%76 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%77 = call i32 @imprimePilha(%struct.pilha** %5)
%78 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%79 = call i32 @imprimePilha(%struct.pilha** %6)
%80 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%81 = call i32 @imprimeFila(%struct.fila** %7)
%82 = load i32, i32* %1
ret i32 %82
}

LLVM IR (-O2):
%struct.fila = type { i32 }
%struct.pilha = type { i32 }
@.str = [8 x i8] c"Fila:\0A\09\00"
@.str.1 = [15 x i8] c"Pilha Impar:\0A\09\00"
@.str.2 = [13 x i8] c"Pilha Par:\0A\09\00"
@.str.3 = [14 x i8] c"Fila Menor:\0A\09\00"
@.str.5 = [41 x i8] c"Digite um valor a ser deletado da fila: \00"
@.str.6 = [3 x i8] c"%i\00"
@str.10 = [31 x i8] c"------------------------------\00"
@str.11 = [41 x i8] c"O valor selecionado n\C3\A3o foi encontrado.\00"
define i32 @main() {
%1 = alloca %struct.fila*
%2 = alloca %struct.fila*
%3 = alloca %struct.pilha*
%4 = alloca %struct.pilha*
%5 = alloca %struct.fila*
%6 = alloca %struct.fila*
%7 = alloca i32
%8 = bitcast %struct.fila** %1 to i8*
store %struct.fila* null, %struct.fila** %1
%9 = bitcast %struct.fila** %2 to i8*
store %struct.fila* null, %struct.fila** %2
%10 = bitcast %struct.pilha** %3 to i8*
store %struct.pilha* null, %struct.pilha** %3
%11 = bitcast %struct.pilha** %4 to i8*
store %struct.pilha* null, %struct.pilha** %4
%12 = bitcast %struct.fila** %5 to i8*
store %struct.fila* null, %struct.fila** %5
%13 = bitcast %struct.fila** %6 to i8*
store %struct.fila* null, %struct.fila** %6
%14 = tail call i32 @time(i32* null)
%15 = tail call i32 @srand(i32 %14)
br label %16
16: ; preds = %0, %16
%17 = phi i32 [ 0, %0 ], [ %21, %16 ]
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 100
%20 = call i32 @enfileirar(%struct.fila** %1, %struct.fila** %2, i32 %19)
%21 = add nuw nsw i32 %17, 1
%22 = icmp eq i32 %21, 30
br i1 %22, label %23, label %16
23: ; preds = %16
%24 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @imprimeFila(%struct.fila** %1)
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 @imprimePilha(%struct.pilha** %3)
%28 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @imprimePilha(%struct.pilha** %4)
%30 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 @imprimeFila(%struct.fila** %5)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.10, i64 0, i64 0))
%33 = call i32 @insereFilaImparPilha(%struct.fila** %1, %struct.fila** %2, %struct.pilha** %3)
%34 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%35 = call i32 @imprimeFila(%struct.fila** %1)
%36 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%37 = call i32 @imprimePilha(%struct.pilha** %3)
%38 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%39 = call i32 @imprimePilha(%struct.pilha** %4)
%40 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 @imprimeFila(%struct.fila** %5)
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.10, i64 0, i64 0))
%43 = call i32 @insereFilaParPilha(%struct.fila** %1, %struct.fila** %2, %struct.pilha** %4)
%44 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%45 = call i32 @imprimeFila(%struct.fila** %1)
%46 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%47 = call i32 @imprimePilha(%struct.pilha** %3)
%48 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%49 = call i32 @imprimePilha(%struct.pilha** %4)
%50 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 @imprimeFila(%struct.fila** %5)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.10, i64 0, i64 0))
%53 = call i32 @insereValoresMenor50PilhaFila(%struct.pilha** %3, %struct.fila** %5, %struct.fila** %6)
%54 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%55 = call i32 @imprimeFila(%struct.fila** %1)
%56 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%57 = call i32 @imprimePilha(%struct.pilha** %3)
%58 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%59 = call i32 @imprimePilha(%struct.pilha** %4)
%60 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%61 = call i32 @imprimeFila(%struct.fila** %5)
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.10, i64 0, i64 0))
%63 = bitcast i32* %7 to i8*
%64 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%65 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %7)
%66 = load i32, i32* %7
%67 = call i32 @deletaFila(%struct.fila** %1, %struct.fila** %2, i32 %66)
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %23
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.11, i64 0, i64 0))
br label %71
71: ; preds = %69, %23
%72 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%73 = call i32 @imprimeFila(%struct.fila** %1)
%74 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%75 = call i32 @imprimePilha(%struct.pilha** %3)
%76 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%77 = call i32 @imprimePilha(%struct.pilha** %4)
%78 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%79 = call i32 @imprimeFila(%struct.fila** %5)
ret i32 0
}