#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 atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ gerarSenha(int);
int /*<<< orphan*/ mostrarAjuda();
int /*<<< orphan*/ mostrarVersao();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ validarQuantidadeDeVezes(int);
int main(int argc, char *argv[]) {
  int len = 8;
  int vezes;
  int register i = 0;
  system("clear");
  puts("\033[32m\tPASSWDGEN (Gerador de Senhas)\033[0m\n");
  srand(time(NULL));
  if (argc != 2) {
    puts("\033[34mProcessando...\033[0m\n");
    sleep(2);
  }
  switch (argc) {
  case 1:
    gerarSenha(len);
    break;
  case 2:
    if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0)) {
      mostrarAjuda();
    }
    if ((strcmp(argv[1], "-v") == 0) || (strcmp(argv[1], "--version") == 0)) {
      mostrarVersao();
    }
    break;
  case 3:
    if ((strcmp(argv[1], "-l") == 0) || (strcmp(argv[1], "--length") == 0)) {
      len = atoi(argv[2]);
      gerarSenha(len);
    }
    if ((strcmp(argv[1], "-a") == 0) || (strcmp(argv[1], "--amount") == 0)) {
      vezes = atoi(argv[2]);
      if (validarQuantidadeDeVezes(vezes))
        exit(1);
      for (i = 0; i < vezes; i++) {
        gerarSenha(len);
      }
    }
    break;
  case 4:
    if (strcmp(argv[1], "-al") == 0) {
      vezes = atoi(argv[2]);
      len = atoi(argv[3]);
    }
    if (strcmp(argv[1], "-la") == 0) {
      len = atoi(argv[2]);
      vezes = atoi(argv[3]);
    }
    if (validarQuantidadeDeVezes(vezes)) {
      exit(1);
    }
    for (i = 0; i < vezes; i++) {
      gerarSenha(len);
    }
    break;
  case 5:
    if ((strcmp(argv[1], "-l") == 0) || (strcmp(argv[1], "--length") == 0)) {
      len = atoi(argv[2]);
    } else {
      if ((strcmp(argv[1], "-a") == 0) || (strcmp(argv[1], "--amount") == 0)) {
        vezes = atoi(argv[2]);
        if (validarQuantidadeDeVezes(vezes))
          exit(1);
      }
    }
    if ((strcmp(argv[3], "-l") == 0) || (strcmp(argv[3], "--length") == 0)) {
      len = atoi(argv[4]);
    } else {
      if ((strcmp(argv[3], "-a") == 0) || (strcmp(argv[3], "--amount") == 0)) {
        vezes = atoi(argv[4]);
        if (validarQuantidadeDeVezes(vezes))
          exit(1);
      }
    }
    for (i = 0; i < vezes; i++) {
      gerarSenha(len);
    }
    break;
  default:
    printf("\n\033[32m\tDigite: passwdgen --help para obter ajuda.\033[0m\n\n");
  }
  puts("");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xe19(%rip),%rdi
call   1050 <system@plt>
lea    0xe13(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
cmpl   $0x2,-0x8(%rbp)
je     123c <main+0x6c>
lea    0xe16(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   10f0 <sleep@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x4,%eax
ja     1650 <main+0x480>
mov    -0x28(%rbp),%rax
lea    0xda4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%edi
call   1070 <gerarSenha@plt>
jmp    165c <main+0x48c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xddb(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     12ac <main+0xdc>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdc1(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    12b3 <main+0xe3>
mov    $0x0,%al
call   1080 <mostrarAjuda@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xda4(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     12ed <main+0x11d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd8a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    12f4 <main+0x124>
mov    $0x0,%al
call   10c0 <mostrarVersao@plt>
jmp    165c <main+0x48c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd6b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     1333 <main+0x163>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd51(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    134b <main+0x17b>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1070 <gerarSenha@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd25(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     1385 <main+0x1b5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd0b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    13de <main+0x20e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <validarQuantidadeDeVezes@plt>
cmp    $0x0,%eax
je     13b0 <main+0x1e0>
mov    $0x1,%edi
call   10e0 <exit@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13d9 <main+0x209>
mov    -0x14(%rbp),%edi
call   1070 <gerarSenha@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13b7 <main+0x1e7>
jmp    13de <main+0x20e>
jmp    165c <main+0x48c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc99(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1420 <main+0x250>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc60(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    145d <main+0x28d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <validarQuantidadeDeVezes@plt>
cmp    $0x0,%eax
je     1478 <main+0x2a8>
mov    $0x1,%edi
call   10e0 <exit@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    14a1 <main+0x2d1>
mov    -0x14(%rbp),%edi
call   1070 <gerarSenha@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    147f <main+0x2af>
jmp    165c <main+0x48c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbbe(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     14e0 <main+0x310>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xba4(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    14f5 <main+0x325>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    1564 <main+0x394>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb7b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     152f <main+0x35f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb61(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    155f <main+0x38f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <validarQuantidadeDeVezes@plt>
cmp    $0x0,%eax
je     155a <main+0x38a>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    155f <main+0x38f>
jmp    1564 <main+0x394>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xb00(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     159e <main+0x3ce>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xae6(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    15b3 <main+0x3e3>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    1622 <main+0x452>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xabd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
je     15ed <main+0x41d>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xaa3(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    161d <main+0x44d>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <validarQuantidadeDeVezes@plt>
cmp    $0x0,%eax
je     1618 <main+0x448>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    161d <main+0x44d>
jmp    1622 <main+0x452>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    164b <main+0x47b>
mov    -0x14(%rbp),%edi
call   1070 <gerarSenha@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1629 <main+0x459>
jmp    165c <main+0x48c>
lea    0xa3c(%rip),%rdi
call   1060 <printf@plt>
lea    0xa67(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebx
lea    0xe31(%rip),%rdi
call   1060 <system@plt>
lea    0xe2b(%rip),%rdi
call   1050 <puts@plt>
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
cmp    $0x2,%ebx
jne    1272 <main+0xa2>
mov    0x8(%r14),%rbx
lea    0xe4a(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1231 <main+0x61>
lea    0xe3a(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    123c <main+0x6c>
xor    %eax,%eax
call   1080 <mostrarAjuda@plt>
mov    0x8(%r14),%rbx
lea    0xe23(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1266 <main+0x96>
lea    0xe13(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    151c <main+0x34c>
xor    %eax,%eax
call   10c0 <mostrarVersao@plt>
jmp    151c <main+0x34c>
lea    0xdca(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   10f0 <sleep@plt>
add    $0xffffffff,%ebx
cmp    $0x4,%ebx
ja     12af <main+0xdf>
lea    0xd69(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x8,%edi
call   1070 <gerarSenha@plt>
jmp    151c <main+0x34c>
lea    0xddd(%rip),%rdi
call   1050 <puts@plt>
jmp    151c <main+0x34c>
mov    0x8(%r14),%rbp
lea    0xda8(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     12ef <main+0x11f>
lea    0xd98(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
mov    $0x8,%ebx
test   %eax,%eax
jne    1305 <main+0x135>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1070 <gerarSenha@plt>
mov    0x8(%r14),%rbp
lea    0xd73(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     132f <main+0x15f>
lea    0xd63(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    151c <main+0x34c>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <validarQuantidadeDeVezes@plt>
test   %eax,%eax
jne    14f2 <main+0x322>
test   %ebp,%ebp
jle    151c <main+0x34c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1070 <gerarSenha@plt>
add    $0xffffffff,%ebp
jne    1360 <main+0x190>
jmp    151c <main+0x34c>
mov    0x8(%r14),%r15
lea    0xd0f(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1404 <main+0x234>
mov    $0x8,%ebx
jmp    141a <main+0x24a>
mov    0x8(%r14),%rbx
lea    0xcd6(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     13f4 <main+0x224>
lea    0xcc6(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     13f4 <main+0x224>
lea    0xcbc(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1471 <main+0x2a1>
lea    0xca8(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1471 <main+0x2a1>
mov    $0x8,%ebx
jmp    148c <main+0x2bc>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
jmp    148c <main+0x2bc>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    0x18(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
lea    0xc6e(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    1443 <main+0x273>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
mov    0x18(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    %ebp,%edi
call   1040 <validarQuantidadeDeVezes@plt>
test   %eax,%eax
jne    14f2 <main+0x322>
test   %ebp,%ebp
jle    151c <main+0x34c>
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1070 <gerarSenha@plt>
add    $0xffffffff,%ebp
jne    1460 <main+0x290>
jmp    151c <main+0x34c>
mov    0x10(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <validarQuantidadeDeVezes@plt>
test   %eax,%eax
jne    14f2 <main+0x322>
mov    $0x8,%ebx
mov    0x18(%r14),%r15
lea    0xbdc(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14fc <main+0x32c>
lea    0xbcc(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14fc <main+0x32c>
lea    0xbc2(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14dc <main+0x30c>
lea    0xbb2(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
jne    1507 <main+0x337>
mov    0x20(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <validarQuantidadeDeVezes@plt>
test   %eax,%eax
je     1507 <main+0x337>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x20(%r14),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebx
test   %ebp,%ebp
jle    151c <main+0x34c>
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1070 <gerarSenha@plt>
add    $0xffffffff,%ebp
jne    1510 <main+0x340>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [41 x i8] c"\1B[32m\09PASSWDGEN (Gerador de Senhas)\1B[0m\0A\00"
@.str.2 = [25 x i8] c"\1B[34mProcessando...\1B[0m\0A\00"
@.str.3 = [3 x i8] c"-h\00"
@.str.4 = [7 x i8] c"--help\00"
@.str.5 = [3 x i8] c"-v\00"
@.str.6 = [10 x i8] c"--version\00"
@.str.7 = [3 x i8] c"-l\00"
@.str.8 = [9 x i8] c"--length\00"
@.str.9 = [3 x i8] c"-a\00"
@.str.10 = [9 x i8] c"--amount\00"
@.str.11 = [4 x i8] c"-al\00"
@.str.12 = [4 x i8] c"-la\00"
@.str.13 = [56 x i8] c"\0A\1B[32m\09Digite: passwdgen --help para obter ajuda.\1B[0m\0A\0A\00"
@.str.14 = [1 x i8] zeroinitializer
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 8, i32* %6
store i32 0, i32* %8
%9 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @time(i32* null)
%12 = call i32 @srand(i32 %11)
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 @sleep(i32 2)
br label %18
18: ; preds = %15, %2
%19 = load i32, i32* %4
switch i32 %19, label %248 [
i32 1, label %20
i32 2, label %23
i32 3, label %52
i32 4, label %106
i32 5, label %154
]
20: ; preds = %18
%21 = load i32, i32* %6
%22 = call i32 @gerarSenha(i32 %21)
br label %250
23: ; preds = %18
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %35, label %29
29: ; preds = %23
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29, %23
%36 = call i32 (...) @mostrarAjuda()
br label %37
37: ; preds = %35, %29
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 1
%40 = load i8*, i8** %39
%41 = call i32 @strcmp(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %49, label %43
43: ; preds = %37
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 1
%46 = load i8*, i8** %45
%47 = call i32 @strcmp(i8* %46, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43, %37
%50 = call i32 (...) @mostrarVersao()
br label %51
51: ; preds = %49, %43
br label %250
52: ; preds = %18
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 1
%55 = load i8*, i8** %54
%56 = call i32 @strcmp(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%57 = icmp eq i32 %56, 0
br i1 %57, label %64, label %58
58: ; preds = %52
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %71
64: ; preds = %58, %52
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 2
%67 = load i8*, i8** %66
%68 = call i32 @atoi(i8* %67)
store i32 %68, i32* %6
%69 = load i32, i32* %6
%70 = call i32 @gerarSenha(i32 %69)
br label %71
71: ; preds = %64, %58
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 1
%74 = load i8*, i8** %73
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%76 = icmp eq i32 %75, 0
br i1 %76, label %83, label %77
77: ; preds = %71
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 1
%80 = load i8*, i8** %79
%81 = call i32 @strcmp(i8* %80, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %105
83: ; preds = %77, %71
%84 = load i8**, i8*** %5
%85 = getelementptr inbounds i8*, i8** %84, i64 2
%86 = load i8*, i8** %85
%87 = call i32 @atoi(i8* %86)
store i32 %87, i32* %7
%88 = load i32, i32* %7
%89 = call i32 @validarQuantidadeDeVezes(i32 %88)
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %83
%92 = call i32 @exit(i32 1)
unreachable
93: ; preds = %83
store i32 0, i32* %8
br label %94
94: ; preds = %101, %93
%95 = load i32, i32* %8
%96 = load i32, i32* %7
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %104
98: ; preds = %94
%99 = load i32, i32* %6
%100 = call i32 @gerarSenha(i32 %99)
br label %101
101: ; preds = %98
%102 = load i32, i32* %8
%103 = add nsw i32 %102, 1
store i32 %103, i32* %8
br label %94
104: ; preds = %94
br label %105
105: ; preds = %104, %77
br label %250
106: ; preds = %18
%107 = load i8**, i8*** %5
%108 = getelementptr inbounds i8*, i8** %107, i64 1
%109 = load i8*, i8** %108
%110 = call i32 @strcmp(i8* %109, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %121
112: ; preds = %106
%113 = load i8**, i8*** %5
%114 = getelementptr inbounds i8*, i8** %113, i64 2
%115 = load i8*, i8** %114
%116 = call i32 @atoi(i8* %115)
store i32 %116, i32* %7
%117 = load i8**, i8*** %5
%118 = getelementptr inbounds i8*, i8** %117, i64 3
%119 = load i8*, i8** %118
%120 = call i32 @atoi(i8* %119)
store i32 %120, i32* %6
br label %121
121: ; preds = %112, %106
%122 = load i8**, i8*** %5
%123 = getelementptr inbounds i8*, i8** %122, i64 1
%124 = load i8*, i8** %123
%125 = call i32 @strcmp(i8* %124, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%126 = icmp eq i32 %125, 0
br i1 %126, label %127, label %136
127: ; preds = %121
%128 = load i8**, i8*** %5
%129 = getelementptr inbounds i8*, i8** %128, i64 2
%130 = load i8*, i8** %129
%131 = call i32 @atoi(i8* %130)
store i32 %131, i32* %6
%132 = load i8**, i8*** %5
%133 = getelementptr inbounds i8*, i8** %132, i64 3
%134 = load i8*, i8** %133
%135 = call i32 @atoi(i8* %134)
store i32 %135, i32* %7
br label %136
136: ; preds = %127, %121
%137 = load i32, i32* %7
%138 = call i32 @validarQuantidadeDeVezes(i32 %137)
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %142
140: ; preds = %136
%141 = call i32 @exit(i32 1)
unreachable
142: ; preds = %136
store i32 0, i32* %8
br label %143
143: ; preds = %150, %142
%144 = load i32, i32* %8
%145 = load i32, i32* %7
%146 = icmp slt i32 %144, %145
br i1 %146, label %147, label %153
147: ; preds = %143
%148 = load i32, i32* %6
%149 = call i32 @gerarSenha(i32 %148)
br label %150
150: ; preds = %147
%151 = load i32, i32* %8
%152 = add nsw i32 %151, 1
store i32 %152, i32* %8
br label %143
153: ; preds = %143
br label %250
154: ; preds = %18
%155 = load i8**, i8*** %5
%156 = getelementptr inbounds i8*, i8** %155, i64 1
%157 = load i8*, i8** %156
%158 = call i32 @strcmp(i8* %157, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%159 = icmp eq i32 %158, 0
br i1 %159, label %166, label %160
160: ; preds = %154
%161 = load i8**, i8*** %5
%162 = getelementptr inbounds i8*, i8** %161, i64 1
%163 = load i8*, i8** %162
%164 = call i32 @strcmp(i8* %163, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%165 = icmp eq i32 %164, 0
br i1 %165, label %166, label %171
166: ; preds = %160, %154
%167 = load i8**, i8*** %5
%168 = getelementptr inbounds i8*, i8** %167, i64 2
%169 = load i8*, i8** %168
%170 = call i32 @atoi(i8* %169)
store i32 %170, i32* %6
br label %195
171: ; preds = %160
%172 = load i8**, i8*** %5
%173 = getelementptr inbounds i8*, i8** %172, i64 1
%174 = load i8*, i8** %173
%175 = call i32 @strcmp(i8* %174, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%176 = icmp eq i32 %175, 0
br i1 %176, label %183, label %177
177: ; preds = %171
%178 = load i8**, i8*** %5
%179 = getelementptr inbounds i8*, i8** %178, i64 1
%180 = load i8*, i8** %179
%181 = call i32 @strcmp(i8* %180, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%182 = icmp eq i32 %181, 0
br i1 %182, label %183, label %194
183: ; preds = %177, %171
%184 = load i8**, i8*** %5
%185 = getelementptr inbounds i8*, i8** %184, i64 2
%186 = load i8*, i8** %185
%187 = call i32 @atoi(i8* %186)
store i32 %187, i32* %7
%188 = load i32, i32* %7
%189 = call i32 @validarQuantidadeDeVezes(i32 %188)
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %193
191: ; preds = %183
%192 = call i32 @exit(i32 1)
unreachable
193: ; preds = %183
br label %194
194: ; preds = %193, %177
br label %195
195: ; preds = %194, %166
%196 = load i8**, i8*** %5
%197 = getelementptr inbounds i8*, i8** %196, i64 3
%198 = load i8*, i8** %197
%199 = call i32 @strcmp(i8* %198, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%200 = icmp eq i32 %199, 0
br i1 %200, label %207, label %201
201: ; preds = %195
%202 = load i8**, i8*** %5
%203 = getelementptr inbounds i8*, i8** %202, i64 3
%204 = load i8*, i8** %203
%205 = call i32 @strcmp(i8* %204, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %212
207: ; preds = %201, %195
%208 = load i8**, i8*** %5
%209 = getelementptr inbounds i8*, i8** %208, i64 4
%210 = load i8*, i8** %209
%211 = call i32 @atoi(i8* %210)
store i32 %211, i32* %6
br label %236
212: ; preds = %201
%213 = load i8**, i8*** %5
%214 = getelementptr inbounds i8*, i8** %213, i64 3
%215 = load i8*, i8** %214
%216 = call i32 @strcmp(i8* %215, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%217 = icmp eq i32 %216, 0
br i1 %217, label %224, label %218
218: ; preds = %212
%219 = load i8**, i8*** %5
%220 = getelementptr inbounds i8*, i8** %219, i64 3
%221 = load i8*, i8** %220
%222 = call i32 @strcmp(i8* %221, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%223 = icmp eq i32 %222, 0
br i1 %223, label %224, label %235
224: ; preds = %218, %212
%225 = load i8**, i8*** %5
%226 = getelementptr inbounds i8*, i8** %225, i64 4
%227 = load i8*, i8** %226
%228 = call i32 @atoi(i8* %227)
store i32 %228, i32* %7
%229 = load i32, i32* %7
%230 = call i32 @validarQuantidadeDeVezes(i32 %229)
%231 = icmp ne i32 %230, 0
br i1 %231, label %232, label %234
232: ; preds = %224
%233 = call i32 @exit(i32 1)
unreachable
234: ; preds = %224
br label %235
235: ; preds = %234, %218
br label %236
236: ; preds = %235, %207
store i32 0, i32* %8
br label %237
237: ; preds = %244, %236
%238 = load i32, i32* %8
%239 = load i32, i32* %7
%240 = icmp slt i32 %238, %239
br i1 %240, label %241, label %247
241: ; preds = %237
%242 = load i32, i32* %6
%243 = call i32 @gerarSenha(i32 %242)
br label %244
244: ; preds = %241
%245 = load i32, i32* %8
%246 = add nsw i32 %245, 1
store i32 %246, i32* %8
br label %237
247: ; preds = %237
br label %250
248: ; preds = %18
%249 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
br label %250
250: ; preds = %248, %247, %153, %105, %51, %20
%251 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [41 x i8] c"\1B[32m\09PASSWDGEN (Gerador de Senhas)\1B[0m\0A\00"
@.str.2 = [25 x i8] c"\1B[34mProcessando...\1B[0m\0A\00"
@.str.3 = [3 x i8] c"-h\00"
@.str.4 = [7 x i8] c"--help\00"
@.str.5 = [3 x i8] c"-v\00"
@.str.6 = [10 x i8] c"--version\00"
@.str.7 = [3 x i8] c"-l\00"
@.str.8 = [9 x i8] c"--length\00"
@.str.9 = [3 x i8] c"-a\00"
@.str.10 = [9 x i8] c"--amount\00"
@.str.11 = [4 x i8] c"-al\00"
@.str.12 = [4 x i8] c"-la\00"
@str = [55 x i8] c"\0A\1B[32m\09Digite: passwdgen --help para obter ajuda.\1B[0m\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @time(i32* null)
%6 = tail call i32 @srand(i32 %5)
%7 = icmp eq i32 %0, 2
br i1 %7, label %13, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @sleep(i32 2)
switch i32 %0, label %171 [
i32 1, label %11
i32 5, label %108
i32 3, label %33
i32 4, label %70
]
11: ; preds = %8
%12 = tail call i32 @gerarSenha(i32 8)
br label %173
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18, %13
%22 = tail call i32 (...) @mostrarAjuda()
%23 = load i8*, i8** %14
br label %24
24: ; preds = %21, %18
%25 = phi i8* [ %23, %21 ], [ %15, %18 ]
%26 = tail call i32 @strcmp(i8* dereferenceable(1) %25, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %24
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %25, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %173
31: ; preds = %28, %24
%32 = tail call i32 (...) @mostrarVersao()
br label %173
33: ; preds = %8
%34 = getelementptr inbounds i8*, i8** %1, i64 1
%35 = load i8*, i8** %34
%36 = tail call i32 @strcmp(i8* dereferenceable(1) %35, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %33
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %35, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %38, %33
%42 = getelementptr inbounds i8*, i8** %1, i64 2
%43 = load i8*, i8** %42
%44 = tail call i32 @atoi(i8* %43)
%45 = tail call i32 @gerarSenha(i32 %44)
%46 = load i8*, i8** %34
br label %47
47: ; preds = %41, %38
%48 = phi i8* [ %46, %41 ], [ %35, %38 ]
%49 = phi i32 [ %44, %41 ], [ 8, %38 ]
%50 = tail call i32 @strcmp(i8* dereferenceable(1) %48, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %47
%53 = tail call i32 @strcmp(i8* dereferenceable(1) %48, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %173
55: ; preds = %52, %47
%56 = getelementptr inbounds i8*, i8** %1, i64 2
%57 = load i8*, i8** %56
%58 = tail call i32 @atoi(i8* %57)
%59 = tail call i32 @validarQuantidadeDeVezes(i32 %58)
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %55
%62 = icmp sgt i32 %58, 0
br i1 %62, label %65, label %173
63: ; preds = %55
%64 = tail call i32 @exit(i32 1)
unreachable
65: ; preds = %61, %65
%66 = phi i32 [ %68, %65 ], [ 0, %61 ]
%67 = tail call i32 @gerarSenha(i32 %49)
%68 = add nuw nsw i32 %66, 1
%69 = icmp eq i32 %68, %58
br i1 %69, label %173, label %65
70: ; preds = %8
%71 = getelementptr inbounds i8*, i8** %1, i64 1
%72 = load i8*, i8** %71
%73 = tail call i32 @strcmp(i8* dereferenceable(1) %72, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %70
%76 = getelementptr inbounds i8*, i8** %1, i64 2
%77 = load i8*, i8** %76
%78 = tail call i32 @atoi(i8* %77)
%79 = getelementptr inbounds i8*, i8** %1, i64 3
%80 = load i8*, i8** %79
%81 = tail call i32 @atoi(i8* %80)
br label %82
82: ; preds = %75, %70
%83 = phi i32 [ %81, %75 ], [ 8, %70 ]
%84 = phi i32 [ %78, %75 ], [ undef, %70 ]
%85 = tail call i32 @strcmp(i8* dereferenceable(1) %72, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %94
87: ; preds = %82
%88 = getelementptr inbounds i8*, i8** %1, i64 2
%89 = load i8*, i8** %88
%90 = tail call i32 @atoi(i8* %89)
%91 = getelementptr inbounds i8*, i8** %1, i64 3
%92 = load i8*, i8** %91
%93 = tail call i32 @atoi(i8* %92)
br label %94
94: ; preds = %87, %82
%95 = phi i32 [ %90, %87 ], [ %83, %82 ]
%96 = phi i32 [ %93, %87 ], [ %84, %82 ]
%97 = tail call i32 @validarQuantidadeDeVezes(i32 %96)
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %94
%100 = icmp sgt i32 %96, 0
br i1 %100, label %103, label %173
101: ; preds = %94
%102 = tail call i32 @exit(i32 1)
unreachable
103: ; preds = %99, %103
%104 = phi i32 [ %106, %103 ], [ 0, %99 ]
%105 = tail call i32 @gerarSenha(i32 %95)
%106 = add nuw nsw i32 %104, 1
%107 = icmp eq i32 %106, %96
br i1 %107, label %173, label %103
108: ; preds = %8
%109 = getelementptr inbounds i8*, i8** %1, i64 1
%110 = load i8*, i8** %109
%111 = tail call i32 @strcmp(i8* dereferenceable(1) %110, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%112 = icmp eq i32 %111, 0
br i1 %112, label %116, label %113
113: ; preds = %108
%114 = tail call i32 @strcmp(i8* dereferenceable(1) %110, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %120
116: ; preds = %113, %108
%117 = getelementptr inbounds i8*, i8** %1, i64 2
%118 = load i8*, i8** %117
%119 = tail call i32 @atoi(i8* %118)
br label %134
120: ; preds = %113
%121 = tail call i32 @strcmp(i8* dereferenceable(1) %110, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%122 = icmp eq i32 %121, 0
br i1 %122, label %126, label %123
123: ; preds = %120
%124 = tail call i32 @strcmp(i8* dereferenceable(1) %110, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %134
126: ; preds = %123, %120
%127 = getelementptr inbounds i8*, i8** %1, i64 2
%128 = load i8*, i8** %127
%129 = tail call i32 @atoi(i8* %128)
%130 = tail call i32 @validarQuantidadeDeVezes(i32 %129)
%131 = icmp eq i32 %130, 0
br i1 %131, label %134, label %132
132: ; preds = %126
%133 = tail call i32 @exit(i32 1)
unreachable
134: ; preds = %123, %126, %116
%135 = phi i32 [ %119, %116 ], [ 8, %126 ], [ 8, %123 ]
%136 = phi i32 [ undef, %116 ], [ %129, %126 ], [ undef, %123 ]
%137 = getelementptr inbounds i8*, i8** %1, i64 3
%138 = load i8*, i8** %137
%139 = tail call i32 @strcmp(i8* dereferenceable(1) %138, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%140 = icmp eq i32 %139, 0
br i1 %140, label %144, label %141
141: ; preds = %134
%142 = tail call i32 @strcmp(i8* dereferenceable(1) %138, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %148
144: ; preds = %141, %134
%145 = getelementptr inbounds i8*, i8** %1, i64 4
%146 = load i8*, i8** %145
%147 = tail call i32 @atoi(i8* %146)
br label %162
148: ; preds = %141
%149 = tail call i32 @strcmp(i8* dereferenceable(1) %138, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%150 = icmp eq i32 %149, 0
br i1 %150, label %154, label %151
151: ; preds = %148
%152 = tail call i32 @strcmp(i8* dereferenceable(1) %138, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %162
154: ; preds = %151, %148
%155 = getelementptr inbounds i8*, i8** %1, i64 4
%156 = load i8*, i8** %155
%157 = tail call i32 @atoi(i8* %156)
%158 = tail call i32 @validarQuantidadeDeVezes(i32 %157)
%159 = icmp eq i32 %158, 0
br i1 %159, label %162, label %160
160: ; preds = %154
%161 = tail call i32 @exit(i32 1)
unreachable
162: ; preds = %151, %154, %144
%163 = phi i32 [ %147, %144 ], [ %135, %154 ], [ %135, %151 ]
%164 = phi i32 [ %136, %144 ], [ %157, %154 ], [ %136, %151 ]
%165 = icmp sgt i32 %164, 0
br i1 %165, label %166, label %173
166: ; preds = %162, %166
%167 = phi i32 [ %169, %166 ], [ 0, %162 ]
%168 = tail call i32 @gerarSenha(i32 %163)
%169 = add nuw nsw i32 %167, 1
%170 = icmp eq i32 %169, %164
br i1 %170, label %173, label %166
171: ; preds = %8
%172 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
br label %173
173: ; preds = %103, %65, %166, %99, %61, %162, %52, %28, %31, %171, %11
%174 = tail call i32 @putchar(i32 10)
ret i32 0
}