#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 headerd {
  int dummy;
};
struct header {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ criaHeaderLDE(struct headerd **);
int /*<<< orphan*/ criaHeaderLSE(struct header **);
int /*<<< orphan*/ excluiLDE(struct headerd **);
int /*<<< orphan*/ excluiLSE(struct header **);
int excluiNodoLDE(struct headerd **, int);
int /*<<< orphan*/ imprimeLDE(struct headerd **);
int /*<<< orphan*/ imprimeLSE(struct header **);
int /*<<< orphan*/ insereAntesMaiorValorLSE(struct header **, int);
int /*<<< orphan*/ insereDireiraLSE(struct header **, int);
int /*<<< orphan*/ insereEsquerdaLDE(struct headerd **, int);
int /*<<< orphan*/ insereInicioMaiorValorLDE(struct headerd **,
                                             struct header **);
int /*<<< orphan*/ printf(char *, ...);
int qtdLDE(struct headerd **);
int qtdLSE(struct header **);
int rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int i = 0;
  struct header *headerLSE = NULL;
  struct headerd *headerLDE = NULL;
  srand(time(NULL));
  criaHeaderLSE(&headerLSE);
  criaHeaderLDE(&headerLDE);
  for (i = 0; i < 50; i++) {
    int rnd = rand() % 100;
    insereDireiraLSE(&headerLSE, i);
    insereEsquerdaLDE(&headerLDE, i);
  }
  printf("Valores LSE:\n");
  imprimeLSE(&headerLSE);
  printf("Valores LDE:\n");
  imprimeLDE(&headerLDE);
  int valIns;
  printf("Digite um valor a ser inserido antes do maior valor da LSE: ");
  scanf("%i", &valIns);
  insereAntesMaiorValorLSE(&headerLSE, valIns);
  printf("Valores LSE:\n");
  imprimeLSE(&headerLSE);
  printf("Valores LDE:\n");
  imprimeLDE(&headerLDE);
  int valDel;
  printf("Digite um valor a ser deletado da LDE: ");
  scanf("%i", &valDel);
  int statusExcluiNodo = excluiNodoLDE(&headerLDE, valDel);
  if (statusExcluiNodo == 0) {
    printf("O valor selecionado não foi encontrado.\n");
  }
  printf("Valores LSE:\n");
  imprimeLSE(&headerLSE);
  printf("Valores LDE:\n");
  imprimeLDE(&headerLDE);
  insereInicioMaiorValorLDE(&headerLDE, &headerLSE);
  printf("Valores LSE:\n");
  imprimeLSE(&headerLSE);
  printf("Valores LDE:\n");
  imprimeLDE(&headerLDE);
  printf("Quantdade de itens na LSE: %i\n", qtdLSE(&headerLSE));
  printf("Quantdade de itens na LDE: %i\n", qtdLDE(&headerLDE));
  printf("Escolha uma opção para exclusão da lista:\n\t1 - Excluir LSE\n\t2 - "
         "Excluir LDE\n");
  int opt;
  scanf("%i", &opt);
  switch (opt) {
  case 1:
    excluiLSE(&headerLSE);
    break;
  case 2:
    excluiLDE(&headerLDE);
    break;
  default:
    printf("Opção inválida.\n");
  }
  printf("Valores LSE:\n");
  imprimeLSE(&headerLSE);
  printf("Valores LDE:\n");
  imprimeLDE(&headerLDE);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
lea    -0x10(%rbp),%rdi
call   1060 <criaHeaderLSE@plt>
lea    -0x18(%rbp),%rdi
call   1100 <criaHeaderLDE@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    12b1 <main+0x91>
mov    $0x0,%al
call   1120 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
mov    -0x8(%rbp),%esi
lea    -0x10(%rbp),%rdi
call   10e0 <insereDireiraLSE@plt>
mov    -0x8(%rbp),%esi
lea    -0x18(%rbp),%rdi
call   1030 <insereEsquerdaLDE@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    126f <main+0x4f>
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1040 <imprimeLSE@plt>
lea    0xd3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1130 <imprimeLDE@plt>
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd65(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   10d0 <scanf@plt>
mov    -0x20(%rbp),%esi
lea    -0x10(%rbp),%rdi
call   10c0 <insereAntesMaiorValorLSE@plt>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1040 <imprimeLSE@plt>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1130 <imprimeLDE@plt>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd0d(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   10d0 <scanf@plt>
mov    -0x24(%rbp),%esi
lea    -0x18(%rbp),%rdi
call   10f0 <excluiNodoLDE@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jne    137c <main+0x15c>
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc7d(%rip),%rdi
mov    %rdi,-0x58(%rbp)
xor    %eax,%eax
mov    %al,-0x31(%rbp)
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
mov    %rdi,-0x48(%rbp)
call   1040 <imprimeLSE@plt>
mov    -0x31(%rbp),%al
lea    0xc66(%rip),%rdi
mov    %rdi,-0x50(%rbp)
call   1050 <printf@plt>
lea    -0x18(%rbp),%rdi
mov    %rdi,-0x40(%rbp)
call   1130 <imprimeLDE@plt>
mov    -0x48(%rbp),%rsi
mov    -0x40(%rbp),%rdi
call   10b0 <insereInicioMaiorValorLDE@plt>
mov    -0x58(%rbp),%rdi
mov    -0x31(%rbp),%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%rdi
call   1040 <imprimeLSE@plt>
mov    -0x50(%rbp),%rdi
mov    -0x31(%rbp),%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1130 <imprimeLDE@plt>
mov    -0x48(%rbp),%rdi
call   1110 <qtdLSE@plt>
mov    %eax,%esi
mov    -0x31(%rbp),%al
lea    0xca4(%rip),%rdi
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1090 <qtdLDE@plt>
mov    %eax,%esi
mov    -0x31(%rbp),%al
lea    0xca9(%rip),%rdi
call   1050 <printf@plt>
mov    -0x31(%rbp),%al
lea    0xcb9(%rip),%rdi
call   1050 <printf@plt>
lea    0xc1a(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10d0 <scanf@plt>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
sub    $0x1,%eax
je     146d <main+0x24d>
jmp    145c <main+0x23c>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     147b <main+0x25b>
jmp    1489 <main+0x269>
lea    -0x10(%rbp),%rdi
call   1080 <excluiLSE@plt>
jmp    1497 <main+0x277>
lea    -0x18(%rbp),%rdi
call   1140 <excluiLDE@plt>
jmp    1497 <main+0x277>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xb62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x10(%rbp),%rdi
call   1040 <imprimeLSE@plt>
lea    0xb59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1130 <imprimeLDE@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1070 <criaHeaderLSE@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1110 <criaHeaderLDE@plt>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1130 <rand@plt>
mov    %r14,%rdi
mov    %ebp,%esi
call   10f0 <insereDireiraLSE@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <insereEsquerdaLDE@plt>
add    $0x1,%ebp
cmp    $0x32,%ebp
jne    1280 <main+0x50>
lea    0xe4b(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <imprimeLSE@plt>
lea    0xe3c(%rip),%r12
mov    %r12,%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%r15
mov    %r15,%rdi
call   1140 <imprimeLDE@plt>
lea    0xd1e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd4d(%rip),%r13
lea    0x24(%rsp),%rsi
mov    %r13,%rdi
call   10e0 <scanf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
call   10d0 <insereAntesMaiorValorLSE@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1050 <imprimeLSE@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1140 <imprimeLDE@plt>
lea    0xd10(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %r13,%rdi
call   10e0 <scanf@plt>
mov    0x20(%rsp),%esi
mov    %r15,%rdi
call   1100 <excluiNodoLDE@plt>
test   %eax,%eax
jne    1360 <main+0x130>
lea    0xdc7(%rip),%rdi
call   1040 <puts@plt>
lea    0xd8e(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <imprimeLSE@plt>
lea    0xd7f(%rip),%rbp
mov    %rbp,%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%r14
mov    %r14,%rdi
call   1140 <imprimeLDE@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10c0 <insereInicioMaiorValorLDE@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1050 <imprimeLSE@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1140 <imprimeLDE@plt>
mov    %rbx,%rdi
call   1120 <qtdLSE@plt>
lea    0xc96(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   10a0 <qtdLDE@plt>
lea    0xc9d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcac(%rip),%rdi
call   1040 <puts@plt>
lea    0xc37(%rip),%rdi
lea    0x1c(%rsp),%rsi
call   10e0 <scanf@plt>
mov    0x1c(%rsp),%eax
cmp    $0x2,%eax
je     142a <main+0x1fa>
cmp    $0x1,%eax
jne    1436 <main+0x206>
lea    0x10(%rsp),%rdi
call   1090 <excluiLSE@plt>
jmp    1442 <main+0x212>
lea    0x8(%rsp),%rdi
call   1150 <excluiLDE@plt>
jmp    1442 <main+0x212>
lea    0xcd2(%rip),%rdi
call   1040 <puts@plt>
lea    0xcac(%rip),%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rdi
call   1050 <imprimeLSE@plt>
lea    0xca3(%rip),%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rdi
call   1140 <imprimeLDE@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.header = type { i32 }
%struct.headerd = type { i32 }
@.str = [14 x i8] c"Valores LSE:\0A\00"
@.str.1 = [14 x i8] c"Valores LDE:\0A\00"
@.str.2 = [61 x i8] c"Digite um valor a ser inserido antes do maior valor da LSE: \00"
@.str.3 = [3 x i8] c"%i\00"
@.str.4 = [40 x i8] c"Digite um valor a ser deletado da LDE: \00"
@.str.5 = [42 x i8] c"O valor selecionado n\C3\A3o foi encontrado.\0A\00"
@.str.6 = [31 x i8] c"Quantdade de itens na LSE: %i\0A\00"
@.str.7 = [31 x i8] c"Quantdade de itens na LDE: %i\0A\00"
@.str.8 = [80 x i8] c"Escolha uma op\C3\A7\C3\A3o para exclus\C3\A3o da lista:\0A\091 - Excluir LSE\0A\092 - Excluir LDE\0A\00"
@.str.9 = [20 x i8] c"Op\C3\A7\C3\A3o inv\C3\A1lida.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.header*
%4 = alloca %struct.headerd*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store %struct.header* null, %struct.header** %3
store %struct.headerd* null, %struct.headerd** %4
%10 = call i32 @time(i32* null)
%11 = call i32 @srand(i32 %10)
%12 = call i32 @criaHeaderLSE(%struct.header** %3)
%13 = call i32 @criaHeaderLDE(%struct.headerd** %4)
store i32 0, i32* %2
br label %14
14: ; preds = %24, %0
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 50
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 100
store i32 %19, i32* %5
%20 = load i32, i32* %2
%21 = call i32 @insereDireiraLSE(%struct.header** %3, i32 %20)
%22 = load i32, i32* %2
%23 = call i32 @insereEsquerdaLDE(%struct.headerd** %4, i32 %22)
br label %24
24: ; preds = %17
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %14
27: ; preds = %14
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @imprimeLSE(%struct.header** %3)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @imprimeLDE(%struct.headerd** %4)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %6)
%34 = load i32, i32* %6
%35 = call i32 @insereAntesMaiorValorLSE(%struct.header** %3, i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%37 = call i32 @imprimeLSE(%struct.header** %3)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%39 = call i32 @imprimeLDE(%struct.headerd** %4)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %7)
%42 = load i32, i32* %7
%43 = call i32 @excluiNodoLDE(%struct.headerd** %4, i32 %42)
store i32 %43, i32* %8
%44 = load i32, i32* %8
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %27
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
br label %48
48: ; preds = %46, %27
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%50 = call i32 @imprimeLSE(%struct.header** %3)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%52 = call i32 @imprimeLDE(%struct.headerd** %4)
%53 = call i32 @insereInicioMaiorValorLDE(%struct.headerd** %4, %struct.header** %3)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%55 = call i32 @imprimeLSE(%struct.header** %3)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%57 = call i32 @imprimeLDE(%struct.headerd** %4)
%58 = call i32 @qtdLSE(%struct.header** %3)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %58)
%60 = call i32 @qtdLDE(%struct.headerd** %4)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %9)
%64 = load i32, i32* %9
switch i32 %64, label %69 [
i32 1, label %65
i32 2, label %67
]
65: ; preds = %48
%66 = call i32 @excluiLSE(%struct.header** %3)
br label %71
67: ; preds = %48
%68 = call i32 @excluiLDE(%struct.headerd** %4)
br label %71
69: ; preds = %48
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %71
71: ; preds = %69, %67, %65
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%73 = call i32 @imprimeLSE(%struct.header** %3)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%75 = call i32 @imprimeLDE(%struct.headerd** %4)
%76 = load i32, i32* %1
ret i32 %76
}

LLVM IR (-O2):
%struct.header = type { i32 }
%struct.headerd = type { i32 }
@.str.2 = [61 x i8] c"Digite um valor a ser inserido antes do maior valor da LSE: \00"
@.str.3 = [3 x i8] c"%i\00"
@.str.4 = [40 x i8] c"Digite um valor a ser deletado da LDE: \00"
@.str.6 = [31 x i8] c"Quantdade de itens na LSE: %i\0A\00"
@.str.7 = [31 x i8] c"Quantdade de itens na LDE: %i\0A\00"
@str.17 = [79 x i8] c"Escolha uma op\C3\A7\C3\A3o para exclus\C3\A3o da lista:\0A\091 - Excluir LSE\0A\092 - Excluir LDE\00"
@str.18 = [13 x i8] c"Valores LSE:\00"
@str.19 = [13 x i8] c"Valores LDE:\00"
@str.20 = [19 x i8] c"Op\C3\A7\C3\A3o inv\C3\A1lida.\00"
@str.21 = [41 x i8] c"O valor selecionado n\C3\A3o foi encontrado.\00"
define i32 @main() {
%1 = alloca %struct.header*
%2 = alloca %struct.headerd*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast %struct.header** %1 to i8*
store %struct.header* null, %struct.header** %1
%7 = bitcast %struct.headerd** %2 to i8*
store %struct.headerd* null, %struct.headerd** %2
%8 = tail call i32 @time(i32* null)
%9 = tail call i32 @srand(i32 %8)
%10 = call i32 @criaHeaderLSE(%struct.header** %1)
%11 = call i32 @criaHeaderLDE(%struct.headerd** %2)
br label %12
12: ; preds = %0, %12
%13 = phi i32 [ 0, %0 ], [ %17, %12 ]
%14 = call i32 (...) @rand()
%15 = call i32 @insereDireiraLSE(%struct.header** %1, i32 %13)
%16 = call i32 @insereEsquerdaLDE(%struct.headerd** %2, i32 %13)
%17 = add nuw nsw i32 %13, 1
%18 = icmp eq i32 %17, 50
br i1 %18, label %19, label %12
19: ; preds = %12
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%21 = call i32 @imprimeLSE(%struct.header** %1)
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%23 = call i32 @imprimeLDE(%struct.headerd** %2)
%24 = bitcast i32* %3 to i8*
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%27 = load i32, i32* %3
%28 = call i32 @insereAntesMaiorValorLSE(%struct.header** %1, i32 %27)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%30 = call i32 @imprimeLSE(%struct.header** %1)
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%32 = call i32 @imprimeLDE(%struct.headerd** %2)
%33 = bitcast i32* %4 to i8*
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%36 = load i32, i32* %4
%37 = call i32 @excluiNodoLDE(%struct.headerd** %2, i32 %36)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %19
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.21, i64 0, i64 0))
br label %41
41: ; preds = %39, %19
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%43 = call i32 @imprimeLSE(%struct.header** %1)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%45 = call i32 @imprimeLDE(%struct.headerd** %2)
%46 = call i32 @insereInicioMaiorValorLDE(%struct.headerd** %2, %struct.header** %1)
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%48 = call i32 @imprimeLSE(%struct.header** %1)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%50 = call i32 @imprimeLDE(%struct.headerd** %2)
%51 = call i32 @qtdLSE(%struct.header** %1)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %51)
%53 = call i32 @qtdLDE(%struct.headerd** %2)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %53)
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.17, i64 0, i64 0))
%56 = bitcast i32* %5 to i8*
%57 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%58 = load i32, i32* %5
switch i32 %58, label %63 [
i32 1, label %59
i32 2, label %61
]
59: ; preds = %41
%60 = call i32 @excluiLSE(%struct.header** %1)
br label %65
61: ; preds = %41
%62 = call i32 @excluiLDE(%struct.headerd** %2)
br label %65
63: ; preds = %41
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.20, i64 0, i64 0))
br label %65
65: ; preds = %63, %61, %59
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%67 = call i32 @imprimeLSE(%struct.header** %1)
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%69 = call i32 @imprimeLDE(%struct.headerd** %2)
ret i32 0
}