#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 nodod {
  int dummy;
};
struct nodo {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ imprimeLDE(struct nodod **);
int /*<<< orphan*/ imprimeLSE(struct nodo **);
int /*<<< orphan*/ insereDireitaLDE(struct nodod **, struct nodod **, int);
int /*<<< orphan*/ insereMultiploLSE(struct nodod **, struct nodod **,
                                     struct nodo **, int);
int /*<<< orphan*/ printf(char *);
int rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ verificaIntervaloExclui(struct nodod **, struct nodod **,
                                           struct nodo **, int, int);
int /*<<< orphan*/ verificaLSEMultiplicaLDE(struct nodo **, struct nodod **,
                                            struct nodod **, int);
int main() {
  srand(time(NULL));
  int i;
  struct nodo *lse = NULL;
  struct nodo *lseAuxiliar = NULL;
  struct nodod *ldeInicio = NULL;
  struct nodod *ldeFim = NULL;
  struct nodod *ldeMultiplicadoInicio = NULL;
  struct nodod *ldeMultiplicadoFim = NULL;
  for (i = 0; i < 50; i++) {
    int val = rand() % 1000;
    insereDireitaLDE(&ldeInicio, &ldeFim, i);
  }
  printf("\n");
  printf("LDE:\n");
  imprimeLDE(&ldeInicio);
  printf("LSE:\n");
  imprimeLSE(&lse);
  printf("LSE auxiliar:\n");
  imprimeLSE(&lseAuxiliar);
  printf("LDE multiplicada:\n");
  imprimeLDE(&ldeMultiplicadoInicio);
  printf("\n");
  int valValorBusca;
  printf("Digite um valor a ser encontrado os multiplos: ");
  scanf("%i", &valValorBusca);
  insereMultiploLSE(&ldeInicio, &ldeFim, &lse, valValorBusca);
  printf("\n");
  printf("LDE:\n");
  imprimeLDE(&ldeInicio);
  printf("LSE:\n");
  imprimeLSE(&lse);
  printf("LSE auxiliar:\n");
  imprimeLSE(&lseAuxiliar);
  printf("LDE multiplicada:\n");
  imprimeLDE(&ldeMultiplicadoInicio);
  printf("\n");
  int inicioIntervalo;
  printf("Digite o valor do início do intervalo para verificar e excluir: ");
  scanf("%i", &inicioIntervalo);
  int fimIntervalo;
  printf("Digite o valor do fim do intervalo para verificar e excluir: ");
  scanf("%i", &fimIntervalo);
  verificaIntervaloExclui(&ldeInicio, &ldeFim, &lseAuxiliar, inicioIntervalo,
                          fimIntervalo);
  printf("\n");
  printf("LDE:\n");
  imprimeLDE(&ldeInicio);
  printf("LSE:\n");
  imprimeLSE(&lse);
  printf("LSE auxiliar:\n");
  imprimeLSE(&lseAuxiliar);
  printf("LDE multiplicada:\n");
  imprimeLDE(&ldeMultiplicadoInicio);
  printf("\n");
  int valorEscolhido;
  printf("Digite um valor a ser verificado na LSE auxiliar e multiplicado em "
         "uma LDE: ");
  scanf("%i", &valorEscolhido);
  verificaLSEMultiplicaLDE(&lseAuxiliar, &ldeMultiplicadoInicio,
                           &ldeMultiplicadoFim, valorEscolhido);
  printf("\n");
  printf("LDE:\n");
  imprimeLDE(&ldeInicio);
  printf("LSE:\n");
  imprimeLSE(&lse);
  printf("LSE auxiliar:\n");
  imprimeLSE(&lseAuxiliar);
  printf("LDE multiplicada:\n");
  imprimeLDE(&ldeMultiplicadoInicio);
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    1240 <main+0x90>
mov    $0x0,%al
call   10c0 <rand@plt>
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %edx,-0x3c(%rbp)
mov    -0x8(%rbp),%edx
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10a0 <insereDireitaLDE@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1206 <main+0x56>
lea    0xdbd(%rip),%rdi
call   1060 <printf@plt>
lea    0xdad(%rip),%rdi
call   1060 <printf@plt>
lea    -0x20(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xd9e(%rip),%rdi
call   1060 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xd8f(%rip),%rdi
call   1060 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xd89(%rip),%rdi
call   1060 <printf@plt>
lea    -0x30(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xd5d(%rip),%rdi
call   1060 <printf@plt>
lea    0xd7b(%rip),%rdi
call   1060 <printf@plt>
lea    0xd9f(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <scanf@plt>
mov    -0x40(%rbp),%ecx
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1030 <insereMultiploLSE@plt>
lea    0xd21(%rip),%rdi
call   1060 <printf@plt>
lea    0xd11(%rip),%rdi
call   1060 <printf@plt>
lea    -0x20(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xd02(%rip),%rdi
call   1060 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xcf3(%rip),%rdi
call   1060 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xced(%rip),%rdi
call   1060 <printf@plt>
lea    -0x30(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xcc1(%rip),%rdi
call   1060 <printf@plt>
lea    0xd12(%rip),%rdi
call   1060 <printf@plt>
lea    0xd03(%rip),%rdi
lea    -0x44(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xd38(%rip),%rdi
call   1060 <printf@plt>
lea    0xce7(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   10b0 <scanf@plt>
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1090 <verificaIntervaloExclui@plt>
lea    0xc65(%rip),%rdi
call   1060 <printf@plt>
lea    0xc55(%rip),%rdi
call   1060 <printf@plt>
lea    -0x20(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xc46(%rip),%rdi
call   1060 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xc37(%rip),%rdi
call   1060 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xc31(%rip),%rdi
call   1060 <printf@plt>
lea    -0x30(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xc05(%rip),%rdi
call   1060 <printf@plt>
lea    0xcd6(%rip),%rdi
call   1060 <printf@plt>
lea    0xc47(%rip),%rdi
lea    -0x4c(%rbp),%rsi
call   10b0 <scanf@plt>
mov    -0x4c(%rbp),%ecx
lea    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1040 <verificaLSEMultiplicaLDE@plt>
lea    0xbc9(%rip),%rdi
call   1060 <printf@plt>
lea    0xbb9(%rip),%rdi
call   1060 <printf@plt>
lea    -0x20(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xbaa(%rip),%rdi
call   1060 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xb9b(%rip),%rdi
call   1060 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xb95(%rip),%rdi
call   1060 <printf@plt>
lea    -0x30(%rbp),%rdi
call   10d0 <imprimeLDE@plt>
lea    0xb69(%rip),%rdi
call   1060 <printf@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    $0x48,%rsp
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
movq   $0x0,0x10(%rsp)
movq   $0x0,0x40(%rsp)
movq   $0x0,0x28(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x38(%rsp)
movq   $0x0,0x30(%rsp)
lea    0x28(%rsp),%r14
lea    0x8(%rsp),%rbp
xor    %ebx,%ebx
xchg   %ax,%ax
xor    %eax,%eax
call   10e0 <rand@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %ebx,%edx
call   10c0 <insereDireitaLDE@plt>
add    $0x1,%ebx
cmp    $0x32,%ebx
jne    1230 <main+0x60>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xea3(%rip),%rdi
call   1050 <puts@plt>
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
call   10f0 <imprimeLDE@plt>
lea    0xe8f(%rip),%rdi
call   1050 <puts@plt>
lea    0x10(%rsp),%r15
mov    %r15,%rdi
call   1070 <imprimeLSE@plt>
lea    0xe7b(%rip),%rdi
call   1050 <puts@plt>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <imprimeLSE@plt>
lea    0xe70(%rip),%r13
mov    %r13,%rdi
call   1050 <puts@plt>
lea    0x38(%rsp),%r14
mov    %r14,%rdi
call   10f0 <imprimeLDE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xd32(%rip),%rdi
call   1080 <printf@plt>
lea    0xd56(%rip),%r12
lea    0x24(%rsp),%rsi
mov    %r12,%rdi
call   10d0 <scanf@plt>
mov    0x24(%rsp),%ecx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1030 <insereMultiploLSE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xdf4(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   10f0 <imprimeLDE@plt>
lea    0xde5(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
call   1070 <imprimeLSE@plt>
lea    0xdd6(%rip),%rdi
mov    %rdi,%r15
call   1050 <puts@plt>
mov    %rbp,%rdi
call   1070 <imprimeLSE@plt>
mov    %r13,%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   10f0 <imprimeLDE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xcce(%rip),%rdi
call   1080 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
call   10d0 <scanf@plt>
lea    0xcf7(%rip),%rdi
call   1080 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %r12,%rdi
call   10d0 <scanf@plt>
mov    0x20(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
mov    %rbp,%rdx
call   10b0 <verificaIntervaloExclui@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xd46(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   10f0 <imprimeLDE@plt>
lea    0xd37(%rip),%rdi
call   1050 <puts@plt>
lea    0x10(%rsp),%rdi
call   1070 <imprimeLSE@plt>
mov    %r15,%rdi
call   1050 <puts@plt>
mov    %rbp,%rdi
call   1070 <imprimeLSE@plt>
mov    %r13,%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   10f0 <imprimeLDE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xca5(%rip),%rdi
call   1080 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %r12,%rdi
call   10d0 <scanf@plt>
mov    0x18(%rsp),%ecx
lea    0x30(%rsp),%rdx
mov    %rbp,%rdi
mov    %r14,%rsi
call   1060 <verificaLSEMultiplicaLDE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xcbb(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   10f0 <imprimeLDE@plt>
lea    0xcac(%rip),%rdi
call   1050 <puts@plt>
lea    0x10(%rsp),%rdi
call   1070 <imprimeLSE@plt>
mov    %r15,%rdi
call   1050 <puts@plt>
mov    %rbp,%rdi
call   1070 <imprimeLSE@plt>
mov    %r13,%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   10f0 <imprimeLDE@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.nodo = type { i32 }
%struct.nodod = type { i32 }
@.str = [2 x i8] c"\0A\00"
@.str.1 = [6 x i8] c"LDE:\0A\00"
@.str.2 = [6 x i8] c"LSE:\0A\00"
@.str.3 = [15 x i8] c"LSE auxiliar:\0A\00"
@.str.4 = [19 x i8] c"LDE multiplicada:\0A\00"
@.str.5 = [48 x i8] c"Digite um valor a ser encontrado os multiplos: \00"
@.str.6 = [3 x i8] c"%i\00"
@.str.7 = [66 x i8] c"Digite o valor do in\C3\ADcio do intervalo para verificar e excluir: \00"
@.str.8 = [62 x i8] c"Digite o valor do fim do intervalo para verificar e excluir: \00"
@.str.9 = [77 x i8] c"Digite um valor a ser verificado na LSE auxiliar e multiplicado em uma LDE: \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.nodo*
%4 = alloca %struct.nodo*
%5 = alloca %struct.nodod*
%6 = alloca %struct.nodod*
%7 = alloca %struct.nodod*
%8 = alloca %struct.nodod*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
%14 = call i32 @time(i32* null)
%15 = call i32 @srand(i32 %14)
store %struct.nodo* null, %struct.nodo** %3
store %struct.nodo* null, %struct.nodo** %4
store %struct.nodod* null, %struct.nodod** %5
store %struct.nodod* null, %struct.nodod** %6
store %struct.nodod* null, %struct.nodod** %7
store %struct.nodod* null, %struct.nodod** %8
store i32 0, i32* %2
br label %16
16: ; preds = %24, %0
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 50
br i1 %18, label %19, label %27
19: ; preds = %16
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 1000
store i32 %21, i32* %9
%22 = load i32, i32* %2
%23 = call i32 @insereDireitaLDE(%struct.nodod** %5, %struct.nodod** %6, i32 %22)
br label %24
24: ; preds = %19
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %16
27: ; preds = %16
%28 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @imprimeLDE(%struct.nodod** %5)
%31 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 @imprimeLSE(%struct.nodo** %3)
%33 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 @imprimeLSE(%struct.nodo** %4)
%35 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%36 = call i32 @imprimeLDE(%struct.nodod** %7)
%37 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%40 = load i32, i32* %10
%41 = call i32 @insereMultiploLSE(%struct.nodod** %5, %struct.nodod** %6, %struct.nodo** %3, i32 %40)
%42 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%44 = call i32 @imprimeLDE(%struct.nodod** %5)
%45 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 @imprimeLSE(%struct.nodo** %3)
%47 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%48 = call i32 @imprimeLSE(%struct.nodo** %4)
%49 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%50 = call i32 @imprimeLDE(%struct.nodod** %7)
%51 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %11)
%54 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%55 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %12)
%56 = load i32, i32* %11
%57 = load i32, i32* %12
%58 = call i32 @verificaIntervaloExclui(%struct.nodod** %5, %struct.nodod** %6, %struct.nodo** %4, i32 %56, i32 %57)
%59 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%60 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%61 = call i32 @imprimeLDE(%struct.nodod** %5)
%62 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%63 = call i32 @imprimeLSE(%struct.nodo** %3)
%64 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%65 = call i32 @imprimeLSE(%struct.nodo** %4)
%66 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%67 = call i32 @imprimeLDE(%struct.nodod** %7)
%68 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%69 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%70 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %13)
%71 = load i32, i32* %13
%72 = call i32 @verificaLSEMultiplicaLDE(%struct.nodo** %4, %struct.nodod** %7, %struct.nodod** %8, i32 %71)
%73 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%74 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%75 = call i32 @imprimeLDE(%struct.nodod** %5)
%76 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%77 = call i32 @imprimeLSE(%struct.nodo** %3)
%78 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%79 = call i32 @imprimeLSE(%struct.nodo** %4)
%80 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%81 = call i32 @imprimeLDE(%struct.nodod** %7)
%82 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%83 = load i32, i32* %1
ret i32 %83
}

LLVM IR (-O2):
%struct.nodo = type { i32 }
%struct.nodod = type { i32 }
@.str.5 = [48 x i8] c"Digite um valor a ser encontrado os multiplos: \00"
@.str.6 = [3 x i8] c"%i\00"
@.str.7 = [66 x i8] c"Digite o valor do in\C3\ADcio do intervalo para verificar e excluir: \00"
@.str.8 = [62 x i8] c"Digite o valor do fim do intervalo para verificar e excluir: \00"
@.str.9 = [77 x i8] c"Digite um valor a ser verificado na LSE auxiliar e multiplicado em uma LDE: \00"
@str.21 = [5 x i8] c"LDE:\00"
@str.22 = [5 x i8] c"LSE:\00"
@str.23 = [14 x i8] c"LSE auxiliar:\00"
@str.24 = [18 x i8] c"LDE multiplicada:\00"
define i32 @main() {
%1 = alloca %struct.nodo*
%2 = alloca %struct.nodo*
%3 = alloca %struct.nodod*
%4 = alloca %struct.nodod*
%5 = alloca %struct.nodod*
%6 = alloca %struct.nodod*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = tail call i32 @time(i32* null)
%12 = tail call i32 @srand(i32 %11)
%13 = bitcast %struct.nodo** %1 to i8*
store %struct.nodo* null, %struct.nodo** %1
%14 = bitcast %struct.nodo** %2 to i8*
store %struct.nodo* null, %struct.nodo** %2
%15 = bitcast %struct.nodod** %3 to i8*
store %struct.nodod* null, %struct.nodod** %3
%16 = bitcast %struct.nodod** %4 to i8*
store %struct.nodod* null, %struct.nodod** %4
%17 = bitcast %struct.nodod** %5 to i8*
store %struct.nodod* null, %struct.nodod** %5
%18 = bitcast %struct.nodod** %6 to i8*
store %struct.nodod* null, %struct.nodod** %6
br label %19
19: ; preds = %0, %19
%20 = phi i32 [ 0, %0 ], [ %23, %19 ]
%21 = call i32 (...) @rand()
%22 = call i32 @insereDireitaLDE(%struct.nodod** %3, %struct.nodod** %4, i32 %20)
%23 = add nuw nsw i32 %20, 1
%24 = icmp eq i32 %23, 50
br i1 %24, label %25, label %19
25: ; preds = %19
%26 = call i32 @putchar(i32 10)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.21, i64 0, i64 0))
%28 = call i32 @imprimeLDE(%struct.nodod** %3)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.22, i64 0, i64 0))
%30 = call i32 @imprimeLSE(%struct.nodo** %1)
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%32 = call i32 @imprimeLSE(%struct.nodo** %2)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%34 = call i32 @imprimeLDE(%struct.nodod** %5)
%35 = call i32 @putchar(i32 10)
%36 = bitcast i32* %7 to i8*
%37 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %7)
%39 = load i32, i32* %7
%40 = call i32 @insereMultiploLSE(%struct.nodod** %3, %struct.nodod** %4, %struct.nodo** %1, i32 %39)
%41 = call i32 @putchar(i32 10)
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.21, i64 0, i64 0))
%43 = call i32 @imprimeLDE(%struct.nodod** %3)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.22, i64 0, i64 0))
%45 = call i32 @imprimeLSE(%struct.nodo** %1)
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%47 = call i32 @imprimeLSE(%struct.nodo** %2)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%49 = call i32 @imprimeLDE(%struct.nodod** %5)
%50 = call i32 @putchar(i32 10)
%51 = bitcast i32* %8 to i8*
%52 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %8)
%54 = bitcast i32* %9 to i8*
%55 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%56 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %9)
%57 = load i32, i32* %8
%58 = load i32, i32* %9
%59 = call i32 @verificaIntervaloExclui(%struct.nodod** %3, %struct.nodod** %4, %struct.nodo** %2, i32 %57, i32 %58)
%60 = call i32 @putchar(i32 10)
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.21, i64 0, i64 0))
%62 = call i32 @imprimeLDE(%struct.nodod** %3)
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.22, i64 0, i64 0))
%64 = call i32 @imprimeLSE(%struct.nodo** %1)
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%66 = call i32 @imprimeLSE(%struct.nodo** %2)
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%68 = call i32 @imprimeLDE(%struct.nodod** %5)
%69 = call i32 @putchar(i32 10)
%70 = bitcast i32* %10 to i8*
%71 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%72 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%73 = load i32, i32* %10
%74 = call i32 @verificaLSEMultiplicaLDE(%struct.nodo** %2, %struct.nodod** %5, %struct.nodod** %6, i32 %73)
%75 = call i32 @putchar(i32 10)
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.21, i64 0, i64 0))
%77 = call i32 @imprimeLDE(%struct.nodod** %3)
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.22, i64 0, i64 0))
%79 = call i32 @imprimeLSE(%struct.nodo** %1)
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%81 = call i32 @imprimeLSE(%struct.nodo** %2)
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%83 = call i32 @imprimeLDE(%struct.nodod** %5)
%84 = call i32 @putchar(i32 10)
ret i32 0
}