#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 /*<<< orphan*/ O_RDONLY;
int creat(char *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
scalar_t__ tup_vardict_init();
scalar_t__ var_replace(int, int, int);
int varsed(int argc, char **argv) {
  int ifd = 0;
  int ofd = 1;
  int x;
  int binmode = 0;
  int input_found = 0;
  for (x = 1; x < argc; x++) {
    if (strcmp(argv[x], "-h") == 0 || strcmp(argv[x], "--help") == 0) {
      fprintf(stderr, "Usage: %s [infile] [outfile]\n", argv[0]);
      fprintf(stderr,
              "This will replace all variable references of the form "
              "@VARIABLE@ in [infile] with the corresponding value in the tup "
              "database, and write the output to [outfile]. If not specified, "
              "or specified as \"-\", then the input and output default to "
              "stdin and stdout, respectively.\n");
      return 1;
    } else if (strcmp(argv[x], "--binary") == 0) {
      binmode = 1;
    } else {
      if (!input_found) {
        if (strcmp(argv[x], "-") != 0) {
          ifd = open(argv[x], O_RDONLY);
          if (ifd < 0) {
            fprintf(stderr, "Error opening input file.\n");
            perror(argv[x]);
            return 1;
          }
        }
        input_found = 1;
      } else {
        if (strcmp(argv[x], "-") != 0) {
          ofd = creat(argv[x], 0666);
          if (ofd < 0) {
            fprintf(stderr, "Error creating output file.\n");
            perror(argv[x]);
            return 1;
          }
        }
      }
    }
  }
  if (tup_vardict_init() < 0)
    return 1;
  if (var_replace(ifd, ofd, binmode) < 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<varsed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1399 <varsed+0x229>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe3f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     11f2 <varsed+0x82>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe20(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1233 <varsed+0xc3>
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe01(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
lea    0xe08(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e1 <varsed+0x271>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xef1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1261 <varsed+0xf1>
movl   $0x1,-0x20(%rbp)
jmp    1381 <varsed+0x211>
cmpl   $0x0,-0x24(%rbp)
jne    12f9 <varsed+0x189>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xec2(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     12ed <varsed+0x17d>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2d48(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12e8 <varsed+0x178>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
lea    0xe7e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e1 <varsed+0x271>
jmp    12ed <varsed+0x17d>
movl   $0x1,-0x24(%rbp)
jmp    137c <varsed+0x20c>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe34(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1377 <varsed+0x207>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x1b6,%esi
call   1090 <creat@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    1372 <varsed+0x202>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
lea    0xe0f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e1 <varsed+0x271>
jmp    1377 <varsed+0x207>
jmp    137c <varsed+0x20c>
jmp    1381 <varsed+0x211>
jmp    1386 <varsed+0x216>
jmp    138b <varsed+0x21b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a2 <varsed+0x32>
mov    $0x0,%al
call   1040 <tup_vardict_init@plt>
cmp    $0x0,%rax
jge    13b6 <varsed+0x246>
movl   $0x1,-0x4(%rbp)
jmp    13e1 <varsed+0x271>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1030 <var_replace@plt>
cmp    $0x0,%rax
jge    13da <varsed+0x26a>
movl   $0x1,-0x4(%rbp)
jmp    13e1 <varsed+0x271>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<varsed>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %r12d,%r12d
mov    $0x1,%ebp
movl   $0x0,0x4(%rsp)
cmp    $0x2,%edi
jl     1297 <varsed+0x127>
mov    %rsi,%rbx
mov    %edi,%r13d
mov    $0x1,%ebp
xor    %r15d,%r15d
mov    $0x1,%r14d
movl   $0x0,0x4(%rsp)
xor    %r12d,%r12d
jmp    11d5 <varsed+0x65>
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x1,0x4(%rsp)
add    $0x1,%r14
cmp    %r14,%r13
je     1297 <varsed+0x127>
mov    (%rbx,%r14,8),%rdi
lea    0xe20(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12bc <varsed+0x14c>
mov    (%rbx,%r14,8),%rdi
lea    0xe0a(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12bc <varsed+0x14c>
mov    (%rbx,%r14,8),%rdi
lea    0xf25(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11c0 <varsed+0x50>
mov    (%rbx,%r14,8),%rdi
lea    0xf19(%rip),%rsi
call   1050 <strcmp@plt>
test   %r15d,%r15d
je     1259 <varsed+0xe9>
mov    $0x1,%r15d
test   %rax,%rax
je     11c8 <varsed+0x58>
mov    (%rbx,%r14,8),%rdi
mov    $0x1b6,%esi
call   1090 <creat@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    11c8 <varsed+0x58>
jmp    12fc <varsed+0x18c>
mov    $0x1,%r15d
test   %rax,%rax
je     11c8 <varsed+0x58>
mov    (%rbx,%r14,8),%rdi
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,%r12d
test   %eax,%eax
jns    11c8 <varsed+0x58>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xead(%rip),%rsi
jmp    130c <varsed+0x19c>
xor    %eax,%eax
call   1040 <tup_vardict_init@plt>
test   %rax,%rax
mov    $0x1,%eax
js     12ed <varsed+0x17d>
mov    %r12d,%edi
mov    %ebp,%esi
mov    0x4(%rsp),%edx
call   1030 <var_replace@plt>
shr    $0x3f,%rax
jmp    12ed <varsed+0x17d>
mov    0x2d15(%rip),%rbp
mov    0x0(%rbp),%edi
mov    (%rbx),%rdx
lea    0xd3a(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xd47(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cd5(%rip),%rax
mov    (%rax),%edi
lea    0xe51(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
call   1080 <perror@plt>
jmp    12e8 <varsed+0x178>

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [7 x i8] c"--help\00"
@stderr = global i32 0
@.str.2 = [30 x i8] c"Usage: %s [infile] [outfile]\0A\00"
@.str.3 = [271 x i8] c"This will replace all variable references of the form @VARIABLE@ in [infile] with the corresponding value in the tup database, and write the output to [outfile]. If not specified, or specified as \22-\22, then the input and output default to stdin and stdout, respectively.\0A\00"
@.str.4 = [9 x i8] c"--binary\00"
@.str.5 = [2 x i8] c"-\00"
@O_RDONLY = global i32 0
@.str.6 = [27 x i8] c"Error opening input file.\0A\00"
@.str.7 = [29 x i8] c"Error creating output file.\0A\00"
define i32 @varsed(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 1, i32* %7
store i32 0, i32* %9
store i32 0, i32* %10
store i32 1, i32* %8
br label %11
11: ; preds = %111, %2
%12 = load i32, i32* %8
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %114
15: ; preds = %11
%16 = load i8**, i8*** %5
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %16, i64 %18
%20 = load i8*, i8** %19
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %31, label %23
23: ; preds = %15
%24 = load i8**, i8*** %5
%25 = load i32, i32* %8
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %24, i64 %26
%28 = load i8*, i8** %27
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %39
31: ; preds = %23, %15
%32 = load i32, i32* @stderr
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 0
%35 = load i8*, i8** %34
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %35)
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([271 x i8], [271 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %126
39: ; preds = %23
%40 = load i8**, i8*** %5
%41 = load i32, i32* %8
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %40, i64 %42
%44 = load i8*, i8** %43
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %39
store i32 1, i32* %9
br label %109
48: ; preds = %39
%49 = load i32, i32* %10
%50 = icmp ne i32 %49, 0
br i1 %50, label %80, label %51
51: ; preds = %48
%52 = load i8**, i8*** %5
%53 = load i32, i32* %8
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %79
59: ; preds = %51
%60 = load i8**, i8*** %5
%61 = load i32, i32* %8
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %60, i64 %62
%64 = load i8*, i8** %63
%65 = load i32, i32* @O_RDONLY
%66 = call i32 @open(i8* %64, i32 %65)
store i32 %66, i32* %6
%67 = load i32, i32* %6
%68 = icmp slt i32 %67, 0
br i1 %68, label %69, label %78
69: ; preds = %59
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%72 = load i8**, i8*** %5
%73 = load i32, i32* %8
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
%76 = load i8*, i8** %75
%77 = call i32 @perror(i8* %76)
store i32 1, i32* %3
br label %126
78: ; preds = %59
br label %79
79: ; preds = %78, %51
store i32 1, i32* %10
br label %108
80: ; preds = %48
%81 = load i8**, i8*** %5
%82 = load i32, i32* %8
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8*, i8** %81, i64 %83
%85 = load i8*, i8** %84
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %107
88: ; preds = %80
%89 = load i8**, i8*** %5
%90 = load i32, i32* %8
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8*, i8** %89, i64 %91
%93 = load i8*, i8** %92
%94 = call i32 @creat(i8* %93, i32 438)
store i32 %94, i32* %7
%95 = load i32, i32* %7
%96 = icmp slt i32 %95, 0
br i1 %96, label %97, label %106
97: ; preds = %88
%98 = load i32, i32* @stderr
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%100 = load i8**, i8*** %5
%101 = load i32, i32* %8
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %100, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 @perror(i8* %104)
store i32 1, i32* %3
br label %126
106: ; preds = %88
br label %107
107: ; preds = %106, %80
br label %108
108: ; preds = %107, %79
br label %109
109: ; preds = %108, %47
br label %110
110: ; preds = %109
br label %111
111: ; preds = %110
%112 = load i32, i32* %8
%113 = add nsw i32 %112, 1
store i32 %113, i32* %8
br label %11
114: ; preds = %11
%115 = call i64 (...) @tup_vardict_init()
%116 = icmp slt i64 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %114
store i32 1, i32* %3
br label %126
118: ; preds = %114
%119 = load i32, i32* %6
%120 = load i32, i32* %7
%121 = load i32, i32* %9
%122 = call i64 @var_replace(i32 %119, i32 %120, i32 %121)
%123 = icmp slt i64 %122, 0
br i1 %123, label %124, label %125
124: ; preds = %118
store i32 1, i32* %3
br label %126
125: ; preds = %118
store i32 0, i32* %3
br label %126
126: ; preds = %125, %124, %117, %97, %69, %31
%127 = load i32, i32* %3
ret i32 %127
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.1 = [7 x i8] c"--help\00"
@stderr = global i32 0
@.str.2 = [30 x i8] c"Usage: %s [infile] [outfile]\0A\00"
@.str.3 = [271 x i8] c"This will replace all variable references of the form @VARIABLE@ in [infile] with the corresponding value in the tup database, and write the output to [outfile]. If not specified, or specified as \22-\22, then the input and output default to stdin and stdout, respectively.\0A\00"
@.str.4 = [9 x i8] c"--binary\00"
@.str.5 = [2 x i8] c"-\00"
@O_RDONLY = global i32 0
@.str.6 = [27 x i8] c"Error opening input file.\0A\00"
@.str.7 = [29 x i8] c"Error creating output file.\0A\00"
define i32 @varsed(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %63
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %56
%7 = phi i64 [ 1, %4 ], [ %61, %56 ]
%8 = phi i32 [ 0, %4 ], [ %60, %56 ]
%9 = phi i32 [ 0, %4 ], [ %59, %56 ]
%10 = phi i32 [ 1, %4 ], [ %58, %56 ]
%11 = phi i32 [ 0, %4 ], [ %57, %56 ]
%12 = getelementptr inbounds i8*, i8** %1, i64 %7
%13 = load i8*, i8** %12
%14 = tail call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %6
%17 = load i8*, i8** %12
%18 = tail call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %16, %6
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %1
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([271 x i8], [271 x i8]* @.str.3, i64 0, i64 0))
br label %73
26: ; preds = %16
%27 = load i8*, i8** %12
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %56, label %30
30: ; preds = %26
%31 = icmp eq i32 %8, 0
%32 = load i8*, i8** %12
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %31, label %35, label %46
35: ; preds = %30
br i1 %34, label %56, label %36
36: ; preds = %35
%37 = load i8*, i8** %12
%38 = load i32, i32* @O_RDONLY
%39 = tail call i32 @open(i8* %37, i32 %38)
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %56
41: ; preds = %36
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%44 = load i8*, i8** %12
%45 = tail call i32 @perror(i8* %44)
br label %73
46: ; preds = %30
br i1 %34, label %56, label %47
47: ; preds = %46
%48 = load i8*, i8** %12
%49 = tail call i32 @creat(i8* %48, i32 438)
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%54 = load i8*, i8** %12
%55 = tail call i32 @perror(i8* %54)
br label %73
56: ; preds = %35, %36, %26, %47, %46
%57 = phi i32 [ %11, %47 ], [ %11, %46 ], [ %11, %26 ], [ %39, %36 ], [ %11, %35 ]
%58 = phi i32 [ %49, %47 ], [ %10, %46 ], [ %10, %26 ], [ %10, %36 ], [ %10, %35 ]
%59 = phi i32 [ %9, %47 ], [ %9, %46 ], [ 1, %26 ], [ %9, %36 ], [ %9, %35 ]
%60 = phi i32 [ 1, %47 ], [ 1, %46 ], [ %8, %26 ], [ 1, %36 ], [ 1, %35 ]
%61 = add nuw nsw i64 %7, 1
%62 = icmp eq i64 %61, %5
br i1 %62, label %63, label %6
63: ; preds = %56, %2
%64 = phi i32 [ 0, %2 ], [ %57, %56 ]
%65 = phi i32 [ 1, %2 ], [ %58, %56 ]
%66 = phi i32 [ 0, %2 ], [ %59, %56 ]
%67 = tail call i64 (...) @tup_vardict_init()
%68 = icmp slt i64 %67, 0
br i1 %68, label %73, label %69
69: ; preds = %63
%70 = tail call i64 @var_replace(i32 %64, i32 %65, i32 %66)
%71 = lshr i64 %70, 63
%72 = trunc i64 %71 to i32
br label %73
73: ; preds = %69, %63, %51, %41, %20
%74 = phi i32 [ 1, %20 ], [ 1, %51 ], [ 1, %41 ], [ 1, %63 ], [ %72, %69 ]
ret i32 %74
}