#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 /*<<< orphan*/ captura(char *, int);
int /*<<< orphan*/ erro();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, int, ...);
int /*<<< orphan*/ itoa(int, char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(int /*<<< orphan*/, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void criar_conta(char nome[50], int agencia, int cc, int senha) {
  FILE *arq;
  int encontrou = 0;
  char agencia_str[10], cc_str[10], buffer[200];
  char nome_arq[50];
  arq = fopen("usuarios.txt", "r");
  itoa(cc, cc_str, 10);
  itoa(agencia, agencia_str, 10);
  if (arq != NULL) {
    while ((encontrou == 0) && (!feof(arq))) {
      fgets(buffer, 200, arq);
      if ((strcmp(captura(buffer, 1), agencia_str) == 0) &&
          (strcmp(captura(buffer, 2), cc_str) == 0)) {
        encontrou = 1;
      }
    }
    fclose(arq);
    if (encontrou == 0) {
      arq = fopen("usuarios.txt", "a");
      if (arq != NULL) {
        fprintf(arq, "\n%d;%d;%d;0", agencia, cc, senha);
        fclose(arq);
        strcpy(nome_arq, "dados_");
        strcat(nome_arq, agencia_str);
        strcat(nome_arq, "_");
        strcat(nome_arq, cc_str);
        strcat(nome_arq, ".txt");
        arq = fopen(nome_arq, "w");
        fprintf(arq, "%d;%d;%s;200,00;0,00;0,00", agencia, cc, nome);
        fclose(arq);
        strcpy(nome_arq, "mov_ccorrente_");
        strcat(nome_arq, agencia_str);
        strcat(nome_arq, "_");
        strcat(nome_arq, cc_str);
        strcat(nome_arq, ".txt");
        arq = fopen(nome_arq, "w");
        fclose(arq);
        strcpy(nome_arq, "mov_poupanca_");
        strcat(nome_arq, agencia_str);
        strcat(nome_arq, "_");
        strcat(nome_arq, cc_str);
        strcat(nome_arq, ".txt");
        arq = fopen(nome_arq, "w");
        fclose(arq);
        printf("Conta criada com sucesso!\n");
      } else {
        erro();
      }
    } else {
      printf("Conta ja existente!\n");
    }
  } else {
    erro();
  }
}


x86 assembly (clang, -O0):
<criar_conta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe1a(%rip),%rdi
lea    0xe20(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0xa,%edx
call   10d0 <itoa@plt>
mov    -0xc(%rbp),%edi
lea    -0x2e(%rbp),%rsi
mov    $0xa,%edx
call   10d0 <itoa@plt>
cmpq   $0x0,-0x20(%rbp)
je     14e0 <criar_conta+0x320>
jmp    1228 <criar_conta+0x68>
xor    %eax,%eax
cmpl   $0x0,-0x24(%rbp)
mov    %al,-0x141(%rbp)
jne    1251 <criar_conta+0x91>
mov    -0x20(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x141(%rbp)
mov    -0x141(%rbp),%al
test   $0x1,%al
jne    1264 <criar_conta+0xa4>
jmp    12d1 <criar_conta+0x111>
lea    -0x100(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0xc8,%esi
call   1070 <fgets@plt>
lea    -0x100(%rbp),%rdi
mov    $0x1,%esi
call   10e0 <captura@plt>
mov    %eax,%edi
lea    -0x2e(%rbp),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12cc <criar_conta+0x10c>
lea    -0x100(%rbp),%rdi
mov    $0x2,%esi
call   10e0 <captura@plt>
mov    %eax,%edi
lea    -0x38(%rbp),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12cc <criar_conta+0x10c>
movl   $0x1,-0x24(%rbp)
jmp    1228 <criar_conta+0x68>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
cmpl   $0x0,-0x24(%rbp)
jne    14cf <criar_conta+0x30f>
lea    0xd15(%rip),%rdi
lea    0xd1d(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     14c3 <criar_conta+0x303>
mov    -0x20(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xcf6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x140(%rbp),%rdi
lea    0xce4(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rdi
lea    -0x2e(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xcff(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xc89(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xc92(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%r8
lea    0xc76(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x140(%rbp),%rdi
lea    0xc72(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rdi
lea    -0x2e(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xc6a(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xbf4(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xbfd(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x140(%rbp),%rdi
lea    0xc08(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rdi
lea    -0x2e(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xbf1(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xb7b(%rip),%rsi
call   10c0 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xb84(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xba4(%rip),%rdi
call   1050 <printf@plt>
jmp    14ca <criar_conta+0x30a>
mov    $0x0,%al
call   1060 <erro@plt>
jmp    14db <criar_conta+0x31b>
lea    0xba2(%rip),%rdi
call   1050 <printf@plt>
jmp    14e7 <criar_conta+0x327>
mov    $0x0,%al
call   1060 <erro@plt>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<criar_conta>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %ecx,%r14d
mov    %edx,%r12d
mov    %esi,%r13d
mov    %rdi,%rbp
lea    0xe1c(%rip),%rdi
lea    0xe22(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
lea    0x4(%rsp),%rsi
mov    %r12d,%edi
mov    $0xa,%edx
call   10d0 <itoa@plt>
lea    0xe(%rsp),%rsi
mov    %r13d,%edi
mov    $0xa,%edx
call   10d0 <itoa@plt>
test   %rbx,%rbx
je     1445 <criar_conta+0x285>
mov    %r14d,(%rsp)
mov    %rbp,0x18(%rsp)
lea    0x60(%rsp),%rbp
lea    0xe(%rsp),%r14
lea    0x4(%rsp),%r15
jmp    1244 <criar_conta+0x84>
nopw   0x0(%rax,%rax,1)
test   %ecx,%ecx
jne    129f <criar_conta+0xdf>
mov    %rbx,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
jne    12b8 <criar_conta+0xf8>
mov    %rbp,%rdi
mov    $0xc8,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
call   10e0 <captura@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1080 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
jne    1240 <criar_conta+0x80>
mov    %rbp,%rdi
mov    $0x2,%esi
call   10e0 <captura@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   1080 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
jmp    1240 <criar_conta+0x80>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xdaf(%rip),%rdi
call   1040 <puts@plt>
jmp    144c <criar_conta+0x28c>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xd39(%rip),%rdi
lea    0xd41(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1445 <criar_conta+0x285>
mov    %rax,%rbx
lea    0xd2b(%rip),%rsi
mov    %rax,%rdi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    (%rsp),%r8d
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
lea    0xd14(%rip),%rsi
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xe(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
lea    0xd31(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
lea    0xcc2(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <strcat@plt>
lea    0xccc(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbp
lea    0xcb9(%rip),%rsi
mov    %rax,%rdi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    0x18(%rsp),%r8
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
lea    0xcaf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
lea    0xe(%rsp),%rbp
mov    %rbp,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
lea    0xca8(%rip),%r12
mov    %r12,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%r13
mov    %r13,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <fopen@plt>
mov    %rax,%rdi
call   1050 <fclose@plt>
lea    0xc5f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <fopen@plt>
mov    %rax,%rdi
call   1050 <fclose@plt>
lea    0xc33(%rip),%rdi
call   1040 <puts@plt>
jmp    144c <criar_conta+0x28c>
xor    %eax,%eax
call   1060 <erro@plt>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"usuarios.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [12 x i8] c"\0A%d;%d;%d;0\00"
@.str.4 = [7 x i8] c"dados_\00"
@.str.5 = [2 x i8] c"_\00"
@.str.6 = [5 x i8] c".txt\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [26 x i8] c"%d;%d;%s;200,00;0,00;0,00\00"
@.str.9 = [15 x i8] c"mov_ccorrente_\00"
@.str.10 = [14 x i8] c"mov_poupanca_\00"
@.str.11 = [27 x i8] c"Conta criada com sucesso!\0A\00"
@.str.12 = [21 x i8] c"Conta ja existente!\0A\00"
define void @criar_conta(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32
%11 = alloca [10 x i8]
%12 = alloca [10 x i8]
%13 = alloca [200 x i8]
%14 = alloca [50 x i8]
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %10
%15 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %15, i32** %9
%16 = load i32, i32* %7
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%18 = call i32 @itoa(i32 %16, i8* %17, i32 10)
%19 = load i32, i32* %6
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%21 = call i32 @itoa(i32 %19, i8* %20, i32 10)
%22 = load i32*, i32** %9
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %129
24: ; preds = %4
br label %25
25: ; preds = %51, %24
%26 = load i32, i32* %10
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = load i32*, i32** %9
%30 = call i32 @feof(i32* %29)
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br label %33
33: ; preds = %28, %25
%34 = phi i1 [ false, %25 ], [ %32, %28 ]
br i1 %34, label %35, label %52
35: ; preds = %33
%36 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%37 = load i32*, i32** %9
%38 = call i32 @fgets(i8* %36, i32 200, i32* %37)
%39 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%40 = call i32 @captura(i8* %39, i32 1)
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%42 = call i64 @strcmp(i32 %40, i8* %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %35
%45 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%46 = call i32 @captura(i8* %45, i32 2)
%47 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%48 = call i64 @strcmp(i32 %46, i8* %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %44
store i32 1, i32* %10
br label %51
51: ; preds = %50, %44, %35
br label %25
52: ; preds = %33
%53 = load i32*, i32** %9
%54 = call i32 @fclose(i32* %53)
%55 = load i32, i32* %10
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %126
57: ; preds = %52
%58 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %58, i32** %9
%59 = load i32*, i32** %9
%60 = icmp ne i32* %59, null
br i1 %60, label %61, label %123
61: ; preds = %57
%62 = load i32*, i32** %9
%63 = load i32, i32* %6
%64 = load i32, i32* %7
%65 = load i32, i32* %8
%66 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %63, i32 %64, i32 %65)
%67 = load i32*, i32** %9
%68 = call i32 @fclose(i32* %67)
%69 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%70 = call i32 @strcpy(i8* %69, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%71 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%72 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%73 = call i32 @strcat(i8* %71, i8* %72)
%74 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%75 = call i32 @strcat(i8* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%76 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%77 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%78 = call i32 @strcat(i8* %76, i8* %77)
%79 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%80 = call i32 @strcat(i8* %79, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%81 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%82 = call i32* @fopen(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %82, i32** %9
%83 = load i32*, i32** %9
%84 = load i32, i32* %6
%85 = load i32, i32* %7
%86 = load i8*, i8** %5
%87 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %84, i32 %85, i8* %86)
%88 = load i32*, i32** %9
%89 = call i32 @fclose(i32* %88)
%90 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%91 = call i32 @strcpy(i8* %90, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%92 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%93 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%94 = call i32 @strcat(i8* %92, i8* %93)
%95 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%96 = call i32 @strcat(i8* %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%97 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%98 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%99 = call i32 @strcat(i8* %97, i8* %98)
%100 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%101 = call i32 @strcat(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%102 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%103 = call i32* @fopen(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %103, i32** %9
%104 = load i32*, i32** %9
%105 = call i32 @fclose(i32* %104)
%106 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%107 = call i32 @strcpy(i8* %106, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%108 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%109 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%110 = call i32 @strcat(i8* %108, i8* %109)
%111 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%112 = call i32 @strcat(i8* %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%113 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%114 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%115 = call i32 @strcat(i8* %113, i8* %114)
%116 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%117 = call i32 @strcat(i8* %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%118 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%119 = call i32* @fopen(i8* %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %119, i32** %9
%120 = load i32*, i32** %9
%121 = call i32 @fclose(i32* %120)
%122 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
br label %125
123: ; preds = %57
%124 = call i32 (...) @erro()
br label %125
125: ; preds = %123, %61
br label %128
126: ; preds = %52
%127 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
br label %128
128: ; preds = %126, %125
br label %131
129: ; preds = %4
%130 = call i32 (...) @erro()
br label %131
131: ; preds = %129, %128
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"usuarios.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [12 x i8] c"\0A%d;%d;%d;0\00"
@.str.4 = [7 x i8] c"dados_\00"
@.str.5 = [2 x i8] c"_\00"
@.str.6 = [5 x i8] c".txt\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [26 x i8] c"%d;%d;%s;200,00;0,00;0,00\00"
@.str.9 = [15 x i8] c"mov_ccorrente_\00"
@.str.10 = [14 x i8] c"mov_poupanca_\00"
@str = [20 x i8] c"Conta ja existente!\00"
@str.13 = [26 x i8] c"Conta criada com sucesso!\00"
define void @criar_conta(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [10 x i8]
%6 = alloca [10 x i8]
%7 = alloca [200 x i8]
%8 = alloca [50 x i8]
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%12 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @itoa(i32 %2, i8* %10, i32 10)
%15 = call i32 @itoa(i32 %1, i8* %9, i32 10)
%16 = icmp eq i32* %13, null
br i1 %16, label %68, label %17
17: ; preds = %4, %30
%18 = call i32 @feof(i32* %13)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %17
%21 = call i32 @fgets(i8* %11, i32 200, i32* %13)
%22 = call i32 @captura(i8* %11, i32 1)
%23 = call i64 @strcmp(i32 %22, i8* %9)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = call i32 @captura(i8* %11, i32 2)
%27 = call i64 @strcmp(i32 %26, i8* %10)
%28 = icmp eq i64 %27, 0
%29 = zext i1 %28 to i32
br label %30
30: ; preds = %25, %20
%31 = phi i32 [ 0, %20 ], [ %29, %25 ]
%32 = icmp eq i32 %31, 0
br i1 %32, label %17, label %65
33: ; preds = %17
%34 = call i32 @fclose(i32* %13)
%35 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i32* %35, null
br i1 %36, label %63, label %37
37: ; preds = %33
%38 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %1, i32 %2, i32 %3)
%39 = call i32 @fclose(i32* %35)
%40 = call i32 @strcpy(i8* %12, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 @strcat(i8* %12, i8* %9)
%42 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%43 = call i32 @strcat(i8* %12, i8* %10)
%44 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%45 = call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%46 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %1, i32 %2, i8* %0)
%47 = call i32 @fclose(i32* %45)
%48 = call i32 @strcpy(i8* %12, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%49 = call i32 @strcat(i8* %12, i8* %9)
%50 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 @strcat(i8* %12, i8* %10)
%52 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%53 = call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%54 = call i32 @fclose(i32* %53)
%55 = call i32 @strcpy(i8* %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%56 = call i32 @strcat(i8* %12, i8* %9)
%57 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%58 = call i32 @strcat(i8* %12, i8* %10)
%59 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%60 = call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%61 = call i32 @fclose(i32* %60)
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.13, i64 0, i64 0))
br label %70
63: ; preds = %33
%64 = call i32 (...) @erro()
br label %70
65: ; preds = %30
%66 = call i32 @fclose(i32* %13)
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
br label %70
68: ; preds = %4
%69 = call i32 (...) @erro()
br label %70
70: ; preds = %65, %63, %37, %68
ret void
}