#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 */
long chk_extend_path_h(long, long, int);
long chk_extend_path_v(long, long, int);
scalar_t__ chk_lighted_path();
scalar_t__ chk_room(long, long);
int /*<<< orphan*/ finish_path(long, long, int, int);
int /*<<< orphan*/ line_path(long, long, long, long, char);
int /*<<< orphan*/ on_light_area(long, long, int /*<<< orphan*/);
int randm(int);
void make_path(long area_x, long area_y) {
  long bgn_x, bgn_y, end_x, end_y;
  long bend_x, bend_y;
  long mx, my;
  mx = area_x * 20;
  my = area_y * 20;
  bgn_y = chk_extend_path_h(area_x, area_y, -1);
  end_y = chk_extend_path_h(area_x, area_y, +1);
  bend_x = 1 + randm(20 - 3 + 1 - 2);
  line_path(mx + 0, my + bgn_y, mx + bend_x, my + bgn_y, 'H');
  line_path(mx + bend_x, my + bgn_y, mx + bend_x, my + end_y, 'H');
  line_path(mx + bend_x, my + end_y, mx + 20 - 3, my + end_y, 'H');
  if (chk_room(area_x - 1, area_y)) {
    finish_path(mx + 0, my + bgn_y, -1, 0);
  }
  if (chk_room(area_x + 1, area_y)) {
    finish_path(mx + 20 - 3, my + end_y, +1, 0);
  }
  bgn_x = chk_extend_path_v(area_x, area_y, -1);
  end_x = chk_extend_path_v(area_x, area_y, +1);
  bend_y = 1 + randm(20 - 3 + 1 - 2);
  line_path(mx + bgn_x, my + 0, mx + bgn_x, my + bend_y, 'V');
  line_path(mx + bgn_x, my + bend_y, mx + end_x, my + bend_y, 'V');
  line_path(mx + end_x, my + bend_y, mx + end_x, my + 20 - 3, 'V');
  if (chk_room(area_x, area_y - 1)) {
    finish_path(mx + bgn_x, my + 0, 0, -1);
  }
  if (chk_room(area_x, area_y + 1)) {
    finish_path(mx + end_x, my + 20 - 3, 0, +1);
  }
  if (chk_lighted_path()) {
    on_light_area(area_x * 20, area_y * 20, 0);
  }
}


x86 assembly (clang, -O0):
<make_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
imul   $0x14,-0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
imul   $0x14,-0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0xffffffff,%edx
call   1090 <chk_extend_path_h@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
call   1090 <chk_extend_path_h@plt>
mov    %rax,-0x30(%rbp)
mov    $0x10,%edi
call   1040 <randm@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x38(%rbp)
mov    -0x48(%rbp),%rdi
add    $0x0,%rdi
mov    -0x50(%rbp),%rsi
add    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rdx
add    -0x38(%rbp),%rdx
mov    -0x50(%rbp),%rcx
add    -0x20(%rbp),%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
mov    -0x48(%rbp),%rdi
add    -0x38(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rdx
add    -0x38(%rbp),%rdx
mov    -0x50(%rbp),%rcx
add    -0x30(%rbp),%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
mov    -0x48(%rbp),%rdi
add    -0x38(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    -0x30(%rbp),%rsi
mov    -0x48(%rbp),%rdx
add    $0x14,%rdx
sub    $0x3,%rdx
mov    -0x50(%rbp),%rcx
add    -0x30(%rbp),%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
mov    -0x8(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x10(%rbp),%rsi
call   1050 <chk_room@plt>
cmp    $0x0,%rax
je     129d <make_path+0x11d>
mov    -0x48(%rbp),%rdi
add    $0x0,%rdi
mov    -0x50(%rbp),%rsi
add    -0x20(%rbp),%rsi
mov    $0xffffffff,%edx
xor    %ecx,%ecx
call   1070 <finish_path@plt>
mov    -0x8(%rbp),%rdi
add    $0x1,%rdi
mov    -0x10(%rbp),%rsi
call   1050 <chk_room@plt>
cmp    $0x0,%rax
je     12d8 <make_path+0x158>
mov    -0x48(%rbp),%rdi
add    $0x14,%rdi
sub    $0x3,%rdi
mov    -0x50(%rbp),%rsi
add    -0x30(%rbp),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1070 <finish_path@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0xffffffff,%edx
call   10a0 <chk_extend_path_v@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
call   10a0 <chk_extend_path_v@plt>
mov    %rax,-0x28(%rbp)
mov    $0x10,%edi
call   1040 <randm@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
add    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    $0x0,%rsi
mov    -0x48(%rbp),%rdx
add    -0x18(%rbp),%rdx
mov    -0x50(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
mov    -0x48(%rbp),%rdi
add    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
add    -0x28(%rbp),%rdx
mov    -0x50(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
mov    -0x48(%rbp),%rdi
add    -0x28(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
add    -0x28(%rbp),%rdx
mov    -0x50(%rbp),%rcx
add    $0x14,%rcx
sub    $0x3,%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
sub    $0x1,%rsi
call   1050 <chk_room@plt>
cmp    $0x0,%rax
je     13d3 <make_path+0x253>
mov    -0x48(%rbp),%rdi
add    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    $0x0,%rsi
xor    %edx,%edx
mov    $0xffffffff,%ecx
call   1070 <finish_path@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x1,%rsi
call   1050 <chk_room@plt>
cmp    $0x0,%rax
je     140e <make_path+0x28e>
mov    -0x48(%rbp),%rdi
add    -0x28(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    $0x14,%rsi
sub    $0x3,%rsi
xor    %edx,%edx
mov    $0x1,%ecx
call   1070 <finish_path@plt>
mov    $0x0,%al
call   1060 <chk_lighted_path@plt>
cmp    $0x0,%rax
je     1430 <make_path+0x2b0>
imul   $0x14,-0x8(%rbp),%rdi
imul   $0x14,-0x10(%rbp),%rsi
xor    %edx,%edx
call   1030 <on_light_area@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_path>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r13
mov    %rdi,%r12
lea    0x0(,%rdi,4),%rax
mov    %rax,(%rsp)
lea    (%rax,%rax,4),%r15
lea    0x0(,%rsi,4),%rax
lea    (%rax,%rax,4),%r14
mov    $0xffffffff,%edx
call   1090 <chk_extend_path_h@plt>
mov    %rax,%rbp
mov    %r12,%rdi
mov    %r13,%rsi
mov    $0x1,%edx
call   1090 <chk_extend_path_h@plt>
mov    %rax,%rbx
mov    $0x10,%edi
call   1040 <randm@plt>
cltq
add    %r14,%rbp
mov    %r15,%rdi
mov    %r15,0x8(%rsp)
add    %rax,%r15
add    $0x1,%r15
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
mov    %r14,0x10(%rsp)
add    %r14,%rbx
mov    0x8(%rsp),%r14
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
mov    (%rsp),%rax
lea    (%rax,%rax,4),%rdx
add    $0x11,%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rdx,(%rsp)
mov    %rbx,%rcx
mov    $0x48,%r8d
call   1080 <line_path@plt>
lea    -0x1(%r12),%rdi
mov    %r13,%r15
mov    %r13,%rsi
call   1050 <chk_room@plt>
test   %rax,%rax
je     1271 <make_path+0xf1>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0xffffffff,%edx
xor    %ecx,%ecx
call   1070 <finish_path@plt>
lea    0x1(%r12),%rdi
mov    %r15,%r13
mov    %r15,%rsi
call   1050 <chk_room@plt>
test   %rax,%rax
je     1299 <make_path+0x119>
mov    (%rsp),%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1070 <finish_path@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    $0xffffffff,%edx
call   10a0 <chk_extend_path_v@plt>
mov    %rax,%r14
mov    %r12,%rdi
mov    %r13,%rsi
mov    $0x1,%edx
call   10a0 <chk_extend_path_v@plt>
mov    %rax,%r15
mov    $0x10,%edi
call   1040 <randm@plt>
cltq
mov    0x8(%rsp),%rbp
add    %rbp,%r14
mov    %r12,(%rsp)
mov    0x10(%rsp),%r12
lea    (%rax,%r12,1),%rbx
add    $0x1,%rbx
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
add    %rbp,%r15
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
lea    0x11(%r12),%rbp
mov    %r15,%rdi
mov    %rbx,%rsi
mov    (%rsp),%rbx
mov    %r15,%rdx
mov    %rbp,%rcx
mov    $0x56,%r8d
call   1080 <line_path@plt>
lea    -0x1(%r13),%rsi
mov    %rbx,%rdi
call   1050 <chk_room@plt>
test   %rax,%rax
je     1358 <make_path+0x1d8>
mov    %r14,%rdi
mov    %r12,%rsi
xor    %edx,%edx
mov    $0xffffffff,%ecx
call   1070 <finish_path@plt>
add    $0x1,%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <chk_room@plt>
test   %rax,%rax
je     137e <make_path+0x1fe>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0x1,%ecx
call   1070 <finish_path@plt>
xor    %eax,%eax
call   1060 <chk_lighted_path@plt>
test   %rax,%rax
mov    0x8(%rsp),%rdi
je     13a7 <make_path+0x227>
mov    %r12,%rsi
xor    %edx,%edx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <on_light_area@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @make_path(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%13 = load i64, i64* %3
%14 = mul nsw i64 %13, 20
store i64 %14, i64* %11
%15 = load i64, i64* %4
%16 = mul nsw i64 %15, 20
store i64 %16, i64* %12
%17 = load i64, i64* %3
%18 = load i64, i64* %4
%19 = call i64 @chk_extend_path_h(i64 %17, i64 %18, i32 -1)
store i64 %19, i64* %6
%20 = load i64, i64* %3
%21 = load i64, i64* %4
%22 = call i64 @chk_extend_path_h(i64 %20, i64 %21, i32 1)
store i64 %22, i64* %8
%23 = call i32 @randm(i32 16)
%24 = add nsw i32 1, %23
%25 = sext i32 %24 to i64
store i64 %25, i64* %9
%26 = load i64, i64* %11
%27 = add nsw i64 %26, 0
%28 = load i64, i64* %12
%29 = load i64, i64* %6
%30 = add nsw i64 %28, %29
%31 = load i64, i64* %11
%32 = load i64, i64* %9
%33 = add nsw i64 %31, %32
%34 = load i64, i64* %12
%35 = load i64, i64* %6
%36 = add nsw i64 %34, %35
%37 = call i32 @line_path(i64 %27, i64 %30, i64 %33, i64 %36, i8 signext 72)
%38 = load i64, i64* %11
%39 = load i64, i64* %9
%40 = add nsw i64 %38, %39
%41 = load i64, i64* %12
%42 = load i64, i64* %6
%43 = add nsw i64 %41, %42
%44 = load i64, i64* %11
%45 = load i64, i64* %9
%46 = add nsw i64 %44, %45
%47 = load i64, i64* %12
%48 = load i64, i64* %8
%49 = add nsw i64 %47, %48
%50 = call i32 @line_path(i64 %40, i64 %43, i64 %46, i64 %49, i8 signext 72)
%51 = load i64, i64* %11
%52 = load i64, i64* %9
%53 = add nsw i64 %51, %52
%54 = load i64, i64* %12
%55 = load i64, i64* %8
%56 = add nsw i64 %54, %55
%57 = load i64, i64* %11
%58 = add nsw i64 %57, 20
%59 = sub nsw i64 %58, 3
%60 = load i64, i64* %12
%61 = load i64, i64* %8
%62 = add nsw i64 %60, %61
%63 = call i32 @line_path(i64 %53, i64 %56, i64 %59, i64 %62, i8 signext 72)
%64 = load i64, i64* %3
%65 = sub nsw i64 %64, 1
%66 = load i64, i64* %4
%67 = call i64 @chk_room(i64 %65, i64 %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %2
%70 = load i64, i64* %11
%71 = add nsw i64 %70, 0
%72 = load i64, i64* %12
%73 = load i64, i64* %6
%74 = add nsw i64 %72, %73
%75 = call i32 @finish_path(i64 %71, i64 %74, i32 -1, i32 0)
br label %76
76: ; preds = %69, %2
%77 = load i64, i64* %3
%78 = add nsw i64 %77, 1
%79 = load i64, i64* %4
%80 = call i64 @chk_room(i64 %78, i64 %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %90
82: ; preds = %76
%83 = load i64, i64* %11
%84 = add nsw i64 %83, 20
%85 = sub nsw i64 %84, 3
%86 = load i64, i64* %12
%87 = load i64, i64* %8
%88 = add nsw i64 %86, %87
%89 = call i32 @finish_path(i64 %85, i64 %88, i32 1, i32 0)
br label %90
90: ; preds = %82, %76
%91 = load i64, i64* %3
%92 = load i64, i64* %4
%93 = call i64 @chk_extend_path_v(i64 %91, i64 %92, i32 -1)
store i64 %93, i64* %5
%94 = load i64, i64* %3
%95 = load i64, i64* %4
%96 = call i64 @chk_extend_path_v(i64 %94, i64 %95, i32 1)
store i64 %96, i64* %7
%97 = call i32 @randm(i32 16)
%98 = add nsw i32 1, %97
%99 = sext i32 %98 to i64
store i64 %99, i64* %10
%100 = load i64, i64* %11
%101 = load i64, i64* %5
%102 = add nsw i64 %100, %101
%103 = load i64, i64* %12
%104 = add nsw i64 %103, 0
%105 = load i64, i64* %11
%106 = load i64, i64* %5
%107 = add nsw i64 %105, %106
%108 = load i64, i64* %12
%109 = load i64, i64* %10
%110 = add nsw i64 %108, %109
%111 = call i32 @line_path(i64 %102, i64 %104, i64 %107, i64 %110, i8 signext 86)
%112 = load i64, i64* %11
%113 = load i64, i64* %5
%114 = add nsw i64 %112, %113
%115 = load i64, i64* %12
%116 = load i64, i64* %10
%117 = add nsw i64 %115, %116
%118 = load i64, i64* %11
%119 = load i64, i64* %7
%120 = add nsw i64 %118, %119
%121 = load i64, i64* %12
%122 = load i64, i64* %10
%123 = add nsw i64 %121, %122
%124 = call i32 @line_path(i64 %114, i64 %117, i64 %120, i64 %123, i8 signext 86)
%125 = load i64, i64* %11
%126 = load i64, i64* %7
%127 = add nsw i64 %125, %126
%128 = load i64, i64* %12
%129 = load i64, i64* %10
%130 = add nsw i64 %128, %129
%131 = load i64, i64* %11
%132 = load i64, i64* %7
%133 = add nsw i64 %131, %132
%134 = load i64, i64* %12
%135 = add nsw i64 %134, 20
%136 = sub nsw i64 %135, 3
%137 = call i32 @line_path(i64 %127, i64 %130, i64 %133, i64 %136, i8 signext 86)
%138 = load i64, i64* %3
%139 = load i64, i64* %4
%140 = sub nsw i64 %139, 1
%141 = call i64 @chk_room(i64 %138, i64 %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %150
143: ; preds = %90
%144 = load i64, i64* %11
%145 = load i64, i64* %5
%146 = add nsw i64 %144, %145
%147 = load i64, i64* %12
%148 = add nsw i64 %147, 0
%149 = call i32 @finish_path(i64 %146, i64 %148, i32 0, i32 -1)
br label %150
150: ; preds = %143, %90
%151 = load i64, i64* %3
%152 = load i64, i64* %4
%153 = add nsw i64 %152, 1
%154 = call i64 @chk_room(i64 %151, i64 %153)
%155 = icmp ne i64 %154, 0
br i1 %155, label %156, label %164
156: ; preds = %150
%157 = load i64, i64* %11
%158 = load i64, i64* %7
%159 = add nsw i64 %157, %158
%160 = load i64, i64* %12
%161 = add nsw i64 %160, 20
%162 = sub nsw i64 %161, 3
%163 = call i32 @finish_path(i64 %159, i64 %162, i32 0, i32 1)
br label %164
164: ; preds = %156, %150
%165 = call i64 (...) @chk_lighted_path()
%166 = icmp ne i64 %165, 0
br i1 %166, label %167, label %173
167: ; preds = %164
%168 = load i64, i64* %3
%169 = mul nsw i64 %168, 20
%170 = load i64, i64* %4
%171 = mul nsw i64 %170, 20
%172 = call i32 @on_light_area(i64 %169, i64 %171, i32 0)
br label %173
173: ; preds = %167, %164
ret void
}

LLVM IR (-O2):
define void @make_path(i64 %0, i64 %1) {
%3 = mul nsw i64 %0, 20
%4 = mul nsw i64 %1, 20
%5 = tail call i64 @chk_extend_path_h(i64 %0, i64 %1, i32 -1)
%6 = tail call i64 @chk_extend_path_h(i64 %0, i64 %1, i32 1)
%7 = tail call i32 @randm(i32 16)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = add nsw i64 %5, %4
%11 = add nsw i64 %3, %9
%12 = tail call i32 @line_path(i64 %3, i64 %10, i64 %11, i64 %10, i8 signext 72)
%13 = add nsw i64 %6, %4
%14 = tail call i32 @line_path(i64 %11, i64 %10, i64 %11, i64 %13, i8 signext 72)
%15 = add nsw i64 %3, 17
%16 = tail call i32 @line_path(i64 %11, i64 %13, i64 %15, i64 %13, i8 signext 72)
%17 = add nsw i64 %0, -1
%18 = tail call i64 @chk_room(i64 %17, i64 %1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %2
%21 = tail call i32 @finish_path(i64 %3, i64 %10, i32 -1, i32 0)
br label %22
22: ; preds = %20, %2
%23 = add nsw i64 %0, 1
%24 = tail call i64 @chk_room(i64 %23, i64 %1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = tail call i32 @finish_path(i64 %15, i64 %13, i32 1, i32 0)
br label %28
28: ; preds = %26, %22
%29 = tail call i64 @chk_extend_path_v(i64 %0, i64 %1, i32 -1)
%30 = tail call i64 @chk_extend_path_v(i64 %0, i64 %1, i32 1)
%31 = tail call i32 @randm(i32 16)
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = add nsw i64 %29, %3
%35 = add nsw i64 %4, %33
%36 = tail call i32 @line_path(i64 %34, i64 %4, i64 %34, i64 %35, i8 signext 86)
%37 = add nsw i64 %30, %3
%38 = tail call i32 @line_path(i64 %34, i64 %35, i64 %37, i64 %35, i8 signext 86)
%39 = add nsw i64 %4, 17
%40 = tail call i32 @line_path(i64 %37, i64 %35, i64 %37, i64 %39, i8 signext 86)
%41 = add nsw i64 %1, -1
%42 = tail call i64 @chk_room(i64 %0, i64 %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %28
%45 = tail call i32 @finish_path(i64 %34, i64 %4, i32 0, i32 -1)
br label %46
46: ; preds = %44, %28
%47 = add nsw i64 %1, 1
%48 = tail call i64 @chk_room(i64 %0, i64 %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %52, label %50
50: ; preds = %46
%51 = tail call i32 @finish_path(i64 %37, i64 %39, i32 0, i32 1)
br label %52
52: ; preds = %50, %46
%53 = tail call i64 (...) @chk_lighted_path()
%54 = icmp eq i64 %53, 0
br i1 %54, label %57, label %55
55: ; preds = %52
%56 = tail call i32 @on_light_area(i64 %3, i64 %4, i32 0)
br label %57
57: ; preds = %55, %52
ret void
}