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

/* Variables and functions */
int LOG_ERR;
int LOG_INFO;
int /*<<< orphan*/ LOG_UPTO(int);
scalar_t__ SQLITE_ROW;
int /*<<< orphan*/ correo(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ setlogmask(int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ sqlite3_bind_int(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ sqlite3_close(int /*<<< orphan*/ *);
int sqlite3_column_int(int /*<<< orphan*/ *, int);
int sqlite3_open(char *, int /*<<< orphan*/ **);
int /*<<< orphan*/ sqlite3_prepare_v2(int /*<<< orphan*/ *, char *, int,
                                      int /*<<< orphan*/ **,
                                      int /*<<< orphan*/ *);
scalar_t__ sqlite3_step(int /*<<< orphan*/ *);
int /*<<< orphan*/ syslog(int, char *, ...);
void validator_service(void) {
  setlogmask(LOG_UPTO(LOG_INFO | LOG_ERR));
  syslog(LOG_INFO, "Starting Validator Service... pid:[%d]", getpid());
  sqlite3 *db;
  sqlite3_stmt *stmt, *stmt1;
  sqlite3_stmt *co;
  char *err_msg = 0;
  int var_temporal;
  int error = 0;
  int var_id;
  int var_customer_id;
  int var_amount;
  int var_saldo;
  int var_status;
  int saldo_temporal;
  int rc = sqlite3_open("purchase_service.db", &db);
  if (rc) {
    syslog(LOG_ERR, "[Validator Service]: Error can not open database...");
    exit(0);
  }
  while (1) {
    sqlite3_prepare_v2(
        db, "select id,customer_id,amount,status from requests where status=0",
        1000, &stmt, NULL);
    if (sqlite3_step(stmt) == SQLITE_ROW) {
      var_id = sqlite3_column_int(stmt, 0);
      var_customer_id = sqlite3_column_int(stmt, 1);
      var_amount = sqlite3_column_int(stmt, 2);
      var_status = sqlite3_column_int(stmt, 3);
      printf("status: %d\n", var_status);
      sqlite3_prepare_v2(db,
                         "update requests                            SET "
                         "status=1                           WHERE id =?1",
                         -1, &stmt, NULL);
      sqlite3_bind_int(stmt, 1, var_id);
      sqlite3_step(stmt);
      sqlite3_prepare_v2(db, "select saldo from cuentas where customer_id=?1",
                         1000, &stmt1, NULL);
      sqlite3_bind_int(stmt1, 1, var_customer_id);
      sqlite3_step(stmt1);
      var_saldo = sqlite3_column_int(stmt1, 0);
      saldo_temporal = var_saldo - var_amount;
      if (saldo_temporal >= 0) {
        sqlite3_prepare_v2(
            db,
            "update cuentas                            SET saldo=?1            "
            "               WHERE customer_id =?2",
            -1, &stmt1, NULL);
        sqlite3_bind_int(stmt1, 1, saldo_temporal);
        sqlite3_bind_int(stmt1, 2, var_customer_id);
        sqlite3_step(stmt1);
        correo(1);
      } else {
        correo(0);
      }
      sleep(10);
    }
  }
  sqlite3_close(db);
  syslog(LOG_INFO, "[Validator Service]: Started...");
}


x86 assembly (clang, -O0):
<validator_service>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
mov    0x2de0(%rip),%rax
or     (%rax),%edi
call   1050 <LOG_UPTO@plt>
mov    %eax,%edi
call   10b0 <setlogmask@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%edx
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   10c0 <syslog@plt>
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xdf5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <sqlite3_open@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
je     1266 <validator_service+0x96>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
lea    0xde3(%rip),%rsi
mov    $0x0,%al
call   10c0 <syslog@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
jmp    126b <validator_service+0x9b>
mov    -0x8(%rbp),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x3e8,%edx
lea    -0x10(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <sqlite3_step@plt>
mov    0x2d47(%rip),%rcx
cmp    (%rcx),%rax
jne    13ec <validator_service+0x21c>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%esi
lea    0xdc3(%rip),%rdi
call   1080 <printf@plt>
mov    -0x8(%rbp),%rdi
lea    0xdbf(%rip),%rsi
mov    $0xffffffff,%edx
lea    -0x10(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    -0x10(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    $0x1,%esi
call   1070 <sqlite3_bind_int@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <sqlite3_step@plt>
mov    -0x8(%rbp),%rdi
lea    0xde6(%rip),%rsi
mov    $0x3e8,%edx
lea    -0x18(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    $0x1,%esi
call   1070 <sqlite3_bind_int@plt>
mov    -0x18(%rbp),%rdi
call   10a0 <sqlite3_step@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
sub    -0x3c(%rbp),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
jl     13db <validator_service+0x20b>
mov    -0x8(%rbp),%rdi
lea    0xdbc(%rip),%rsi
mov    $0xffffffff,%edx
lea    -0x18(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%edx
mov    $0x1,%esi
call   1070 <sqlite3_bind_int@plt>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    $0x2,%esi
call   1070 <sqlite3_bind_int@plt>
mov    -0x18(%rbp),%rdi
call   10a0 <sqlite3_step@plt>
mov    $0x1,%edi
call   1030 <correo@plt>
jmp    13e2 <validator_service+0x212>
xor    %edi,%edi
call   1030 <correo@plt>
mov    $0xa,%edi
call   10f0 <sleep@plt>
jmp    126b <validator_service+0x9b>

x86 assembly (clang, -O2):
<validator_service>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    0x2df3(%rip),%rbx
mov    0x2ddc(%rip),%rbp
mov    0x0(%rbp),%edi
or     (%rbx),%edi
call   1050 <LOG_UPTO@plt>
mov    %eax,%edi
call   10b0 <setlogmask@plt>
mov    (%rbx),%ebx
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xdf3(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   10c0 <syslog@plt>
lea    0xe08(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1060 <sqlite3_open@plt>
test   %eax,%eax
jne    13c4 <validator_service+0x1f4>
lea    0xe37(%rip),%rbp
mov    %rsp,%r14
mov    0x2d9e(%rip),%rbx
jmp    1273 <validator_service+0xa3>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15d,%edi
call   1030 <correo@plt>
mov    $0xa,%edi
call   10f0 <sleep@plt>
lea    0xe06(%rip),%rbp
mov    0x2d70(%rip),%rbx
mov    %rsp,%r14
mov    0x10(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x3e8,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    (%rsp),%rdi
call   10a0 <sqlite3_step@plt>
cmp    (%rbx),%rax
jne    1273 <validator_service+0xa3>
mov    (%rsp),%rdi
xor    %r15d,%r15d
xor    %esi,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,%ebp
mov    (%rsp),%rdi
mov    $0x1,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,%r12d
mov    (%rsp),%rdi
mov    $0x2,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,%r13d
mov    (%rsp),%rdi
mov    $0x3,%esi
call   1090 <sqlite3_column_int@plt>
lea    0xdd0(%rip),%rdi
mov    %eax,%esi
call   1080 <printf@plt>
mov    0x10(%rsp),%rdi
lea    0xdc9(%rip),%rsi
mov    $0xffffffff,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    (%rsp),%rdi
mov    $0x1,%esi
mov    %ebp,%edx
call   1070 <sqlite3_bind_int@plt>
mov    (%rsp),%rdi
call   10a0 <sqlite3_step@plt>
mov    0x10(%rsp),%rdi
lea    0xdf3(%rip),%rsi
mov    $0x3e8,%edx
lea    0x8(%rsp),%rbx
mov    %rbx,%rcx
xor    %r8d,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    %r12d,%edx
call   1070 <sqlite3_bind_int@plt>
mov    0x8(%rsp),%rdi
call   10a0 <sqlite3_step@plt>
mov    0x8(%rsp),%rdi
xor    %esi,%esi
call   1090 <sqlite3_column_int@plt>
mov    %eax,%ebp
sub    %r13d,%ebp
js     1250 <validator_service+0x80>
mov    0x10(%rsp),%rdi
lea    0xdce(%rip),%rsi
mov    $0xffffffff,%edx
mov    %rbx,%rcx
xor    %r8d,%r8d
call   10d0 <sqlite3_prepare_v2@plt>
mov    0x8(%rsp),%rdi
mov    $0x1,%r15d
mov    $0x1,%esi
mov    %ebp,%edx
call   1070 <sqlite3_bind_int@plt>
mov    0x8(%rsp),%rdi
mov    $0x2,%esi
mov    %r12d,%edx
call   1070 <sqlite3_bind_int@plt>
mov    0x8(%rsp),%rdi
call   10a0 <sqlite3_step@plt>
jmp    1250 <validator_service+0x80>
mov    0x0(%rbp),%edi
lea    0xc6d(%rip),%rsi
xor    %eax,%eax
call   10c0 <syslog@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@LOG_INFO = global i32 0
@LOG_ERR = global i32 0
@.str = [39 x i8] c"Starting Validator Service... pid:[%d]\00"
@.str.1 = [20 x i8] c"purchase_service.db\00"
@.str.2 = [52 x i8] c"[Validator Service]: Error can not open database...\00"
@.str.3 = [65 x i8] c"select id,customer_id,amount,status from requests where status=0\00"
@SQLITE_ROW = global i64 0
@.str.4 = [12 x i8] c"status: %d\0A\00"
@.str.5 = [95 x i8] c"update requests SET status=1 WHERE id =?1\00"
@.str.6 = [47 x i8] c"select saldo from cuentas where customer_id=?1\00"
@.str.7 = [103 x i8] c"update cuentas SET saldo=?1 WHERE customer_id =?2\00"
define void @validator_service() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = load i32, i32* @LOG_INFO
%16 = load i32, i32* @LOG_ERR
%17 = or i32 %15, %16
%18 = call i32 @LOG_UPTO(i32 %17)
%19 = call i32 @setlogmask(i32 %18)
%20 = load i32, i32* @LOG_INFO
%21 = call i32 (...) @getpid()
%22 = call i32 (i32, i8*, ...) @syslog(i32 %20, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %21)
store i8* null, i8** %5
store i32 0, i32* %7
%23 = call i32 @sqlite3_open(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32** %1)
store i32 %23, i32* %14
%24 = load i32, i32* %14
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %0
%27 = load i32, i32* @LOG_ERR
%28 = call i32 (i32, i8*, ...) @syslog(i32 %27, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
30: ; preds = %0
br label %31
31: ; preds = %30, %86
%32 = load i32*, i32** %1
%33 = call i32 @sqlite3_prepare_v2(i32* %32, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0), i32 1000, i32** %2, i32* null)
%34 = load i32*, i32** %2
%35 = call i64 @sqlite3_step(i32* %34)
%36 = load i64, i64* @SQLITE_ROW
%37 = icmp eq i64 %35, %36
br i1 %37, label %38, label %86
38: ; preds = %31
%39 = load i32*, i32** %2
%40 = call i32 @sqlite3_column_int(i32* %39, i32 0)
store i32 %40, i32* %8
%41 = load i32*, i32** %2
%42 = call i32 @sqlite3_column_int(i32* %41, i32 1)
store i32 %42, i32* %9
%43 = load i32*, i32** %2
%44 = call i32 @sqlite3_column_int(i32* %43, i32 2)
store i32 %44, i32* %10
%45 = load i32*, i32** %2
%46 = call i32 @sqlite3_column_int(i32* %45, i32 3)
store i32 %46, i32* %12
%47 = load i32, i32* %12
%48 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %47)
%49 = load i32*, i32** %1
%50 = call i32 @sqlite3_prepare_v2(i32* %49, i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.5, i64 0, i64 0), i32 -1, i32** %2, i32* null)
%51 = load i32*, i32** %2
%52 = load i32, i32* %8
%53 = call i32 @sqlite3_bind_int(i32* %51, i32 1, i32 %52)
%54 = load i32*, i32** %2
%55 = call i64 @sqlite3_step(i32* %54)
%56 = load i32*, i32** %1
%57 = call i32 @sqlite3_prepare_v2(i32* %56, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i32 1000, i32** %3, i32* null)
%58 = load i32*, i32** %3
%59 = load i32, i32* %9
%60 = call i32 @sqlite3_bind_int(i32* %58, i32 1, i32 %59)
%61 = load i32*, i32** %3
%62 = call i64 @sqlite3_step(i32* %61)
%63 = load i32*, i32** %3
%64 = call i32 @sqlite3_column_int(i32* %63, i32 0)
store i32 %64, i32* %11
%65 = load i32, i32* %11
%66 = load i32, i32* %10
%67 = sub nsw i32 %65, %66
store i32 %67, i32* %13
%68 = load i32, i32* %13
%69 = icmp sge i32 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %38
%71 = load i32*, i32** %1
%72 = call i32 @sqlite3_prepare_v2(i32* %71, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.7, i64 0, i64 0), i32 -1, i32** %3, i32* null)
%73 = load i32*, i32** %3
%74 = load i32, i32* %13
%75 = call i32 @sqlite3_bind_int(i32* %73, i32 1, i32 %74)
%76 = load i32*, i32** %3
%77 = load i32, i32* %9
%78 = call i32 @sqlite3_bind_int(i32* %76, i32 2, i32 %77)
%79 = load i32*, i32** %3
%80 = call i64 @sqlite3_step(i32* %79)
%81 = call i32 @correo(i32 1)
br label %84
82: ; preds = %38
%83 = call i32 @correo(i32 0)
br label %84
84: ; preds = %82, %70
%85 = call i32 @sleep(i32 10)
br label %86
86: ; preds = %84, %31
br label %31
}

LLVM IR (-O2):
@LOG_INFO = global i32 0
@LOG_ERR = global i32 0
@.str = [39 x i8] c"Starting Validator Service... pid:[%d]\00"
@.str.1 = [20 x i8] c"purchase_service.db\00"
@.str.2 = [52 x i8] c"[Validator Service]: Error can not open database...\00"
@.str.3 = [65 x i8] c"select id,customer_id,amount,status from requests where status=0\00"
@SQLITE_ROW = global i64 0
@.str.4 = [12 x i8] c"status: %d\0A\00"
@.str.5 = [95 x i8] c"update requests SET status=1 WHERE id =?1\00"
@.str.6 = [47 x i8] c"select saldo from cuentas where customer_id=?1\00"
@.str.7 = [103 x i8] c"update cuentas SET saldo=?1 WHERE customer_id =?2\00"
define void @validator_service() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32*
%4 = load i32, i32* @LOG_INFO
%5 = load i32, i32* @LOG_ERR
%6 = or i32 %5, %4
%7 = tail call i32 @LOG_UPTO(i32 %6)
%8 = tail call i32 @setlogmask(i32 %7)
%9 = load i32, i32* @LOG_INFO
%10 = tail call i32 (...) @getpid()
%11 = tail call i32 (i32, i8*, ...) @syslog(i32 %9, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = bitcast i32** %1 to i8*
%13 = bitcast i32** %2 to i8*
%14 = bitcast i32** %3 to i8*
%15 = call i32 @sqlite3_open(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32** %1)
%16 = icmp eq i32 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %0
%18 = load i32, i32* @LOG_ERR
%19 = call i32 (i32, i8*, ...) @syslog(i32 %18, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @exit(i32 0)
unreachable
21: ; preds = %0, %67
%22 = load i32*, i32** %1
%23 = call i32 @sqlite3_prepare_v2(i32* %22, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0), i32 1000, i32** %2, i32* null)
%24 = load i32*, i32** %2
%25 = call i64 @sqlite3_step(i32* %24)
%26 = load i64, i64* @SQLITE_ROW
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %67
28: ; preds = %21
%29 = load i32*, i32** %2
%30 = call i32 @sqlite3_column_int(i32* %29, i32 0)
%31 = load i32*, i32** %2
%32 = call i32 @sqlite3_column_int(i32* %31, i32 1)
%33 = load i32*, i32** %2
%34 = call i32 @sqlite3_column_int(i32* %33, i32 2)
%35 = load i32*, i32** %2
%36 = call i32 @sqlite3_column_int(i32* %35, i32 3)
%37 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %36)
%38 = load i32*, i32** %1
%39 = call i32 @sqlite3_prepare_v2(i32* %38, i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.5, i64 0, i64 0), i32 -1, i32** %2, i32* null)
%40 = load i32*, i32** %2
%41 = call i32 @sqlite3_bind_int(i32* %40, i32 1, i32 %30)
%42 = load i32*, i32** %2
%43 = call i64 @sqlite3_step(i32* %42)
%44 = load i32*, i32** %1
%45 = call i32 @sqlite3_prepare_v2(i32* %44, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i32 1000, i32** %3, i32* null)
%46 = load i32*, i32** %3
%47 = call i32 @sqlite3_bind_int(i32* %46, i32 1, i32 %32)
%48 = load i32*, i32** %3
%49 = call i64 @sqlite3_step(i32* %48)
%50 = load i32*, i32** %3
%51 = call i32 @sqlite3_column_int(i32* %50, i32 0)
%52 = sub nsw i32 %51, %34
%53 = icmp sgt i32 %52, -1
br i1 %53, label %54, label %63
54: ; preds = %28
%55 = load i32*, i32** %1
%56 = call i32 @sqlite3_prepare_v2(i32* %55, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.7, i64 0, i64 0), i32 -1, i32** %3, i32* null)
%57 = load i32*, i32** %3
%58 = call i32 @sqlite3_bind_int(i32* %57, i32 1, i32 %52)
%59 = load i32*, i32** %3
%60 = call i32 @sqlite3_bind_int(i32* %59, i32 2, i32 %32)
%61 = load i32*, i32** %3
%62 = call i64 @sqlite3_step(i32* %61)
br label %63
63: ; preds = %28, %54
%64 = phi i32 [ 1, %54 ], [ 0, %28 ]
%65 = call i32 @correo(i32 %64)
%66 = call i32 @sleep(i32 10)
br label %67
67: ; preds = %63, %21
br label %21
}