#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ captura(char *, int);
int /*<<< orphan*/ criar_conta(char *, int, int, int);
int /*<<< orphan*/ erro();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ menu_principal(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sair();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(int /*<<< orphan*/, char *);
int /*<<< orphan*/ system(char *);
void exibe_criar_conta(int *terminal) {
  system("cls");
  printf(
      "############### BANCO KNC - O SEU BANCO DE SUCESSO ###############\n\n");
  printf("Criar Conta - Terminal %d\n", *terminal);
  int senha_arq, senha_gerente, eh_gerente = 0;
  FILE *arq_usuarios;
  char buffer[200];
  arq_usuarios = fopen("usuarios.txt", "r");
  if (arq_usuarios != NULL) {
    while ((eh_gerente == 0) && (!feof(arq_usuarios))) {
      fgets(buffer, 200, arq_usuarios);
      if ((strcmp(captura(buffer, 1), "1001") == 0) &&
          (strcmp(captura(buffer, 2), "1001") == 0)) {
        senha_arq = atoi(captura(buffer, 3));
        eh_gerente = 1;
      }
    }
    fclose(arq_usuarios);
    printf(
        "\nDigite a senha para acesso a criacao de conta (Somente Gerente):");
    scanf("%d", &senha_gerente);
    if (senha_gerente == senha_arq) {
      int opc = 0;
      char nome[50];
      int agencia, cc, senha;
      printf("Digite o Nome:");
      fflush(stdin);
      gets(nome);
      printf("\nDigite o numero da Agencia:");
      scanf("%d", &agencia);
      printf("\nDigite o numero da Conta Corrente:");
      scanf("%d", &cc);
      printf("\nDigite a senha do usuario:");
      scanf("%d", &senha);
      criar_conta(nome, agencia, cc, senha);
      while ((opc < 1) || (opc > 2)) {
        printf("Deseja voltar ao menu principal? (1 - S/ 2 - N): ");
        scanf("%d", &opc);
        if ((opc < 1) || (opc > 2))
          printf("\nOpcao invalida!\n");
      }
      if (opc == 1)
        menu_principal(terminal);
      else
        sair();
    } else {
      printf("Acesso negado, senha incorreta!\n");
      system("pause");
      menu_principal(terminal);
    }
  } else {
    erro();
    menu_principal(terminal);
  }
}


x86 assembly (clang, -O0):
<exibe_criar_conta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xdea(%rip),%rdi
call   1050 <system@plt>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
lea    0xe19(%rip),%rdi
lea    0xe1f(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     14f0 <exibe_criar_conta+0x2f0>
jmp    126b <exibe_criar_conta+0x6b>
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x13d(%rbp)
jne    1294 <exibe_criar_conta+0x94>
mov    -0x20(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x13d(%rbp)
mov    -0x13d(%rbp),%al
test   $0x1,%al
jne    12a7 <exibe_criar_conta+0xa7>
jmp    1335 <exibe_criar_conta+0x135>
lea    -0xf0(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0xc8,%esi
call   1080 <fgets@plt>
lea    -0xf0(%rbp),%rdi
mov    $0x1,%esi
call   1120 <captura@plt>
mov    %eax,%edi
lea    0xd9d(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1330 <exibe_criar_conta+0x130>
lea    -0xf0(%rbp),%rdi
mov    $0x2,%esi
call   1120 <captura@plt>
mov    %eax,%edi
lea    0xd74(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1330 <exibe_criar_conta+0x130>
lea    -0xf0(%rbp),%rdi
mov    $0x3,%esi
call   1120 <captura@plt>
mov    %eax,%edi
call   1110 <atoi@plt>
mov    %eax,-0xc(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    126b <exibe_criar_conta+0x6b>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd67(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   10f0 <scanf@plt>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    14c8 <exibe_criar_conta+0x2c8>
movl   $0x0,-0xf4(%rbp)
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
lea    -0x130(%rbp),%rdi
call   10b0 <gets@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd0b(%rip),%rdi
lea    -0x134(%rbp),%rsi
call   10f0 <scanf@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcea(%rip),%rdi
lea    -0x138(%rbp),%rsi
call   10f0 <scanf@plt>
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcc9(%rip),%rdi
lea    -0x13c(%rbp),%rsi
call   10f0 <scanf@plt>
lea    -0x130(%rbp),%rdi
mov    -0x134(%rbp),%esi
mov    -0x138(%rbp),%edx
mov    -0x13c(%rbp),%ecx
call   1030 <criar_conta@plt>
mov    $0x1,%al
cmpl   $0x1,-0xf4(%rbp)
mov    %al,-0x13e(%rbp)
jl     1440 <exibe_criar_conta+0x240>
cmpl   $0x2,-0xf4(%rbp)
setg   %al
mov    %al,-0x13e(%rbp)
mov    -0x13e(%rbp),%al
test   $0x1,%al
jne    1453 <exibe_criar_conta+0x253>
jmp    14a1 <exibe_criar_conta+0x2a1>
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc52(%rip),%rdi
lea    -0xf4(%rbp),%rsi
call   10f0 <scanf@plt>
cmpl   $0x1,-0xf4(%rbp)
jl     148e <exibe_criar_conta+0x28e>
cmpl   $0x2,-0xf4(%rbp)
jle    149c <exibe_criar_conta+0x29c>
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    141b <exibe_criar_conta+0x21b>
cmpl   $0x1,-0xf4(%rbp)
jne    14bc <exibe_criar_conta+0x2bc>
mov    -0x8(%rbp),%rdi
call   10d0 <menu_principal@plt>
jmp    14c3 <exibe_criar_conta+0x2c3>
mov    $0x0,%al
call   10e0 <sair@plt>
jmp    14eb <exibe_criar_conta+0x2eb>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcb1(%rip),%rdi
call   1050 <system@plt>
mov    -0x8(%rbp),%rdi
call   10d0 <menu_principal@plt>
jmp    1500 <exibe_criar_conta+0x300>
mov    $0x0,%al
call   1070 <erro@plt>
mov    -0x8(%rbp),%rdi
call   10d0 <menu_principal@plt>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exibe_criar_conta>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %rdi,%r14
lea    0xdd5(%rip),%rdi
call   1060 <system@plt>
lea    0xee5(%rip),%rdi
call   1040 <puts@plt>
mov    (%r14),%esi
lea    0xdbe(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xdcb(%rip),%rdi
lea    0xdd1(%rip),%rsi
call   1110 <fopen@plt>
test   %rax,%rax
je     13a3 <exibe_criar_conta+0x193>
mov    %rax,%rbx
mov    %rax,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
je     13f5 <exibe_criar_conta+0x1e5>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xda8(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xddc(%rip),%rdi
lea    0x1c(%rsp),%rsi
call   1100 <scanf@plt>
cmp    %ebp,0x1c(%rsp)
jne    13c3 <exibe_criar_conta+0x1b3>
movl   $0x0,0xc(%rsp)
lea    0xdbc(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
lea    0x20(%rsp),%r15
mov    %r15,%rdi
call   10c0 <gets@plt>
lea    0xda2(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd82(%rip),%r12
lea    0x18(%rsp),%rsi
mov    %r12,%rdi
call   1100 <scanf@plt>
lea    0xd9d(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %r12,%rdi
call   1100 <scanf@plt>
lea    0xda6(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %r12,%rdi
call   1100 <scanf@plt>
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    %r15,%rdi
call   1030 <criar_conta@plt>
lea    0xd93(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0xe23(%rip),%r13
nopl   (%rax)
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1100 <scanf@plt>
mov    0xc(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffd,%ecx
ja     1395 <exibe_criar_conta+0x185>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jb     1360 <exibe_criar_conta+0x150>
cmp    $0x1,%eax
je     13db <exibe_criar_conta+0x1cb>
xor    %eax,%eax
call   10f0 <sair@plt>
jmp    13e3 <exibe_criar_conta+0x1d3>
xor    %eax,%eax
call   1080 <erro@plt>
mov    %r14,%rdi
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10e0 <menu_principal@plt>
lea    0xd96(%rip),%rdi
call   1040 <puts@plt>
lea    0xd40(%rip),%rdi
call   1060 <system@plt>
mov    %r14,%rdi
call   10e0 <menu_principal@plt>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x60(%rsp),%r15
lea    0xc2d(%rip),%r12
jmp    1420 <exibe_criar_conta+0x210>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
jne    127c <exibe_criar_conta+0x6c>
mov    %r15,%rdi
mov    $0xc8,%esi
mov    %rbx,%rdx
call   1090 <fgets@plt>
mov    %r15,%rdi
mov    $0x1,%esi
call   1130 <captura@plt>
mov    %eax,%edi
mov    %r12,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1410 <exibe_criar_conta+0x200>
mov    %r15,%rdi
mov    $0x2,%esi
call   1130 <captura@plt>
mov    %eax,%edi
mov    %r12,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1410 <exibe_criar_conta+0x200>
lea    0x60(%rsp),%rdi
mov    $0x3,%esi
call   1130 <captura@plt>
mov    %eax,%edi
call   1120 <atoi@plt>
mov    %eax,%ebp
jmp    127c <exibe_criar_conta+0x6c>

LLVM IR (-O0):
@.str = [4 x i8] c"cls\00"
@.str.1 = [69 x i8] c"############### BANCO KNC - O SEU BANCO DE SUCESSO ###############\0A\0A\00"
@.str.2 = [27 x i8] c"Criar Conta - Terminal %d\0A\00"
@.str.3 = [13 x i8] c"usuarios.txt\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [5 x i8] c"1001\00"
@.str.6 = [66 x i8] c"\0ADigite a senha para acesso a criacao de conta (Somente Gerente):\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [15 x i8] c"Digite o Nome:\00"
@stdin = global i32 0
@.str.9 = [29 x i8] c"\0ADigite o numero da Agencia:\00"
@.str.10 = [36 x i8] c"\0ADigite o numero da Conta Corrente:\00"
@.str.11 = [28 x i8] c"\0ADigite a senha do usuario:\00"
@.str.12 = [50 x i8] c"Deseja voltar ao menu principal? (1 - S/ 2 - N): \00"
@.str.13 = [18 x i8] c"\0AOpcao invalida!\0A\00"
@.str.14 = [33 x i8] c"Acesso negado, senha incorreta!\0A\00"
@.str.15 = [6 x i8] c"pause\00"
define void @exibe_criar_conta(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca [200 x i8]
%8 = alloca i32
%9 = alloca [50 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32* %0, i32** %2
%13 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %16)
store i32 0, i32* %5
%18 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %18, i32** %6
%19 = load i32*, i32** %6
%20 = icmp ne i32* %19, null
br i1 %20, label %21, label %109
21: ; preds = %1
br label %22
22: ; preds = %49, %21
%23 = load i32, i32* %5
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load i32*, i32** %6
%27 = call i32 @feof(i32* %26)
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
br label %30
30: ; preds = %25, %22
%31 = phi i1 [ false, %22 ], [ %29, %25 ]
br i1 %31, label %32, label %50
32: ; preds = %30
%33 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%34 = load i32*, i32** %6
%35 = call i32 @fgets(i8* %33, i32 200, i32* %34)
%36 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%37 = call i32 @captura(i8* %36, i32 1)
%38 = call i64 @strcmp(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %49
40: ; preds = %32
%41 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%42 = call i32 @captura(i8* %41, i32 2)
%43 = call i64 @strcmp(i32 %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %40
%46 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%47 = call i32 @captura(i8* %46, i32 3)
%48 = call i32 @atoi(i32 %47)
store i32 %48, i32* %3
store i32 1, i32* %5
br label %49
49: ; preds = %45, %40, %32
br label %22
50: ; preds = %30
%51 = load i32*, i32** %6
%52 = call i32 @fclose(i32* %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
%55 = load i32, i32* %4
%56 = load i32, i32* %3
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %103
58: ; preds = %50
store i32 0, i32* %8
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%60 = load i32, i32* @stdin
%61 = call i32 @fflush(i32 %60)
%62 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%63 = call i32 @gets(i8* %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
%65 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %10)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%67 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %11)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%69 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %12)
%70 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%71 = load i32, i32* %10
%72 = load i32, i32* %11
%73 = load i32, i32* %12
%74 = call i32 @criar_conta(i8* %70, i32 %71, i32 %72, i32 %73)
br label %75
75: ; preds = %93, %58
%76 = load i32, i32* %8
%77 = icmp slt i32 %76, 1
br i1 %77, label %81, label %78
78: ; preds = %75
%79 = load i32, i32* %8
%80 = icmp sgt i32 %79, 2
br label %81
81: ; preds = %78, %75
%82 = phi i1 [ true, %75 ], [ %80, %78 ]
br i1 %82, label %83, label %94
83: ; preds = %81
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0))
%85 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %8)
%86 = load i32, i32* %8
%87 = icmp slt i32 %86, 1
br i1 %87, label %91, label %88
88: ; preds = %83
%89 = load i32, i32* %8
%90 = icmp sgt i32 %89, 2
br i1 %90, label %91, label %93
91: ; preds = %88, %83
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
br label %93
93: ; preds = %91, %88
br label %75
94: ; preds = %81
%95 = load i32, i32* %8
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %100
97: ; preds = %94
%98 = load i32*, i32** %2
%99 = call i32 @menu_principal(i32* %98)
br label %102
100: ; preds = %94
%101 = call i32 (...) @sair()
br label %102
102: ; preds = %100, %97
br label %108
103: ; preds = %50
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%105 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%106 = load i32*, i32** %2
%107 = call i32 @menu_principal(i32* %106)
br label %108
108: ; preds = %103, %102
br label %113
109: ; preds = %1
%110 = call i32 (...) @erro()
%111 = load i32*, i32** %2
%112 = call i32 @menu_principal(i32* %111)
br label %113
113: ; preds = %109, %108
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"cls\00"
@.str.2 = [27 x i8] c"Criar Conta - Terminal %d\0A\00"
@.str.3 = [13 x i8] c"usuarios.txt\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [5 x i8] c"1001\00"
@.str.6 = [66 x i8] c"\0ADigite a senha para acesso a criacao de conta (Somente Gerente):\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [15 x i8] c"Digite o Nome:\00"
@stdin = global i32 0
@.str.9 = [29 x i8] c"\0ADigite o numero da Agencia:\00"
@.str.10 = [36 x i8] c"\0ADigite o numero da Conta Corrente:\00"
@.str.11 = [28 x i8] c"\0ADigite a senha do usuario:\00"
@.str.12 = [50 x i8] c"Deseja voltar ao menu principal? (1 - S/ 2 - N): \00"
@.str.15 = [6 x i8] c"pause\00"
@str = [68 x i8] c"############### BANCO KNC - O SEU BANCO DE SUCESSO ###############\0A\00"
@str.16 = [32 x i8] c"Acesso negado, senha incorreta!\00"
@str.17 = [17 x i8] c"\0AOpcao invalida!\00"
define void @exibe_criar_conta(i32* %0) {
%2 = alloca i32
%3 = alloca [200 x i8]
%4 = alloca i32
%5 = alloca [50 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
%11 = load i32, i32* %0
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = bitcast i32* %2 to i8*
%14 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%15 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %85, label %17
17: ; preds = %1
%18 = call i32 @feof(i32* %15)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %35
20: ; preds = %17, %32
%21 = call i32 @fgets(i8* %14, i32 200, i32* %15)
%22 = call i32 @captura(i8* %14, i32 1)
%23 = call i64 @strcmp(i32 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %20
%26 = call i32 @captura(i8* %14, i32 2)
%27 = call i64 @strcmp(i32 %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = call i32 @captura(i8* %14, i32 3)
%31 = call i32 @atoi(i32 %30)
br label %35
32: ; preds = %25, %20
%33 = call i32 @feof(i32* %15)
%34 = icmp eq i32 %33, 0
br i1 %34, label %20, label %35
35: ; preds = %32, %17, %29
%36 = phi i32 [ %31, %29 ], [ undef, %17 ], [ undef, %32 ]
%37 = call i32 @fclose(i32* %15)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%40 = load i32, i32* %2
%41 = icmp eq i32 %40, %36
br i1 %41, label %42, label %81
42: ; preds = %35
%43 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%44 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%45 = bitcast i32* %6 to i8*
%46 = bitcast i32* %7 to i8*
%47 = bitcast i32* %8 to i8*
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%49 = load i32, i32* @stdin
%50 = call i32 @fflush(i32 %49)
%51 = call i32 @gets(i8* %44)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %6)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%55 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %7)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%57 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %8)
%58 = load i32, i32* %6
%59 = load i32, i32* %7
%60 = load i32, i32* %8
%61 = call i32 @criar_conta(i8* %44, i32 %58, i32 %59, i32 %60)
br label %62
62: ; preds = %42, %68
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0))
%64 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
%65 = load i32, i32* %4
%66 = add i32 %65, -3
%67 = icmp ult i32 %66, -2
br i1 %67, label %68, label %73
68: ; preds = %62
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0))
%70 = load i32, i32* %4
%71 = add i32 %70, -3
%72 = icmp ult i32 %71, -2
br i1 %72, label %62, label %73
73: ; preds = %62, %68
%74 = phi i32 [ %70, %68 ], [ %65, %62 ]
%75 = icmp eq i32 %74, 1
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = call i32 @menu_principal(i32* %0)
br label %80
78: ; preds = %73
%79 = call i32 (...) @sair()
br label %80
80: ; preds = %78, %76
br label %88
81: ; preds = %35
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.16, i64 0, i64 0))
%83 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%84 = call i32 @menu_principal(i32* %0)
br label %88
85: ; preds = %1
%86 = tail call i32 (...) @erro()
%87 = tail call i32 @menu_principal(i32* %0)
br label %88
88: ; preds = %80, %81, %85
ret void
}