#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 */
scalar_t__ EOF;
int /*<<< orphan*/ assert(int);
int block_correct(int /*<<< orphan*/ *, unsigned char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ generate_block(unsigned char *, int, int);
int /*<<< orphan*/ tape_attach(char *);
int /*<<< orphan*/ tape_detach();
int /*<<< orphan*/ tape_load_p(unsigned char *, int);
int /*<<< orphan*/ tape_save_p(unsigned char *, int);
char *tmpnam(int /*<<< orphan*/ *);
void test_tape_save_p_truncate() {
  char *filename = tmpnam(NULL);
  FILE *fp;
  unsigned char mem[65536];
  int i;
  tape_attach(filename);
  for (i = 0; i < 3; i++) {
    generate_block(mem + (100 * i), 25 + i, 'A' + i);
    generate_block(mem + (100 * i) + 50, 30 + i, 6 + i);
    tape_save_p(mem + (100 * i), 25 + i);
    tape_save_p(mem + (100 * i) + 50, 30 + i);
  }
  tape_detach();
  tape_attach(filename);
  for (i = 0; i < 10; i++) {
    mem[9986 + i] = mem[100 + i];
  }
  tape_load_p(mem, 1000);
  tape_load_p(mem, 1150);
  generate_block(mem + 2000, 28, 'N');
  generate_block(mem + 2050, 40, 20);
  tape_save_p(mem + 2000, 28);
  tape_save_p(mem + 2050, 20);
  tape_detach();
  fp = fopen(filename, "rb");
  assert(fp != NULL);
  assert(block_correct(fp, mem, 25));
  assert(block_correct(fp, mem + 50, 30));
  assert(block_correct(fp, mem + 2000, 28));
  assert(block_correct(fp, mem + 2050, 20));
  assert(fgetc(fp) == EOF);
  fclose(fp);
}


x86 assembly (clang, -O0):
<test_tape_save_p_truncate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10020,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <tmpnam@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   10b0 <tape_attach@plt>
movl   $0x0,-0x10014(%rbp)
cmpl   $0x3,-0x10014(%rbp)
jge    129a <test_tape_save_p_truncate+0xea>
lea    -0x10010(%rbp),%rdi
imul   $0x64,-0x10014(%rbp),%eax
cltq
add    %rax,%rdi
mov    -0x10014(%rbp),%esi
add    $0x19,%esi
mov    -0x10014(%rbp),%edx
add    $0x41,%edx
call   1040 <generate_block@plt>
lea    -0x10010(%rbp),%rdi
imul   $0x64,-0x10014(%rbp),%eax
cltq
add    %rax,%rdi
add    $0x32,%rdi
mov    -0x10014(%rbp),%esi
add    $0x1e,%esi
mov    -0x10014(%rbp),%edx
add    $0x6,%edx
call   1040 <generate_block@plt>
lea    -0x10010(%rbp),%rdi
imul   $0x64,-0x10014(%rbp),%eax
cltq
add    %rax,%rdi
mov    -0x10014(%rbp),%esi
add    $0x19,%esi
call   1080 <tape_save_p@plt>
lea    -0x10010(%rbp),%rdi
imul   $0x64,-0x10014(%rbp),%eax
cltq
add    %rax,%rdi
add    $0x32,%rdi
mov    -0x10014(%rbp),%esi
add    $0x1e,%esi
call   1080 <tape_save_p@plt>
mov    -0x10014(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10014(%rbp)
jmp    11db <test_tape_save_p_truncate+0x2b>
mov    $0x0,%al
call   1060 <tape_detach@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <tape_attach@plt>
movl   $0x0,-0x10014(%rbp)
cmpl   $0xa,-0x10014(%rbp)
jge    12fb <test_tape_save_p_truncate+0x14b>
mov    -0x10014(%rbp),%eax
add    $0x64,%eax
cltq
mov    -0x10010(%rbp,%rax,1),%cl
mov    -0x10014(%rbp),%eax
add    $0x2702,%eax
cltq
mov    %cl,-0x10010(%rbp,%rax,1)
mov    -0x10014(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10014(%rbp)
jmp    12b4 <test_tape_save_p_truncate+0x104>
lea    -0x10010(%rbp),%rdi
mov    $0x3e8,%esi
call   1030 <tape_load_p@plt>
lea    -0x10010(%rbp),%rdi
mov    $0x47e,%esi
call   1030 <tape_load_p@plt>
lea    -0x10010(%rbp),%rdi
add    $0x7d0,%rdi
mov    $0x1c,%esi
mov    $0x4e,%edx
call   1040 <generate_block@plt>
lea    -0x10010(%rbp),%rdi
add    $0x802,%rdi
mov    $0x28,%esi
mov    $0x14,%edx
call   1040 <generate_block@plt>
lea    -0x10010(%rbp),%rdi
add    $0x7d0,%rdi
mov    $0x1c,%esi
call   1080 <tape_save_p@plt>
lea    -0x10010(%rbp),%rdi
add    $0x802,%rdi
mov    $0x14,%esi
call   1080 <tape_save_p@plt>
mov    $0x0,%al
call   1060 <tape_detach@plt>
mov    -0x8(%rbp),%rdi
lea    0xc67(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
mov    $0x19,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
add    $0x32,%rsi
mov    $0x1e,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
add    $0x7d0,%rsi
mov    $0x1c,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
add    $0x802,%rsi
mov    $0x14,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fgetc@plt>
mov    0x2ba2(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x10020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_tape_save_p_truncate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10008,%rsp
xor    %edi,%edi
call   10d0 <tmpnam@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   10b0 <tape_attach@plt>
mov    %rsp,%r15
mov    %r15,%rdi
mov    $0x19,%esi
mov    $0x41,%edx
call   1040 <generate_block@plt>
lea    0x32(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x6,%edx
call   1040 <generate_block@plt>
mov    %r15,%rdi
mov    $0x19,%esi
call   1080 <tape_save_p@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
call   1080 <tape_save_p@plt>
lea    0x64(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1a,%esi
mov    $0x42,%edx
call   1040 <generate_block@plt>
lea    0x96(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x1f,%esi
mov    $0x7,%edx
call   1040 <generate_block@plt>
mov    %rbx,%rdi
mov    $0x1a,%esi
call   1080 <tape_save_p@plt>
mov    %rbp,%rdi
mov    $0x1f,%esi
call   1080 <tape_save_p@plt>
lea    0xc8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1b,%esi
mov    $0x43,%edx
call   1040 <generate_block@plt>
lea    0xfa(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x20,%esi
mov    $0x8,%edx
call   1040 <generate_block@plt>
mov    %rbx,%rdi
mov    $0x1b,%esi
call   1080 <tape_save_p@plt>
mov    %rbp,%rdi
mov    $0x20,%esi
call   1080 <tape_save_p@plt>
xor    %eax,%eax
call   1060 <tape_detach@plt>
mov    %r14,%rdi
call   10b0 <tape_attach@plt>
mov    0x64(%rsp),%al
mov    %al,0x2702(%rsp)
mov    0x65(%rsp),%rax
mov    %rax,0x2703(%rsp)
mov    0x6d(%rsp),%al
mov    %al,0x270b(%rsp)
mov    %r15,%rdi
mov    $0x3e8,%esi
call   1030 <tape_load_p@plt>
mov    %r15,%rdi
mov    $0x47e,%esi
call   1030 <tape_load_p@plt>
lea    0x7d0(%rsp),%r13
mov    %r13,%rdi
mov    $0x1c,%esi
mov    $0x4e,%edx
call   1040 <generate_block@plt>
lea    0x802(%rsp),%r12
mov    %r12,%rdi
mov    $0x28,%esi
mov    $0x14,%edx
call   1040 <generate_block@plt>
mov    %r13,%rdi
mov    $0x1c,%esi
call   1080 <tape_save_p@plt>
mov    %r12,%rdi
mov    $0x14,%esi
call   1080 <tape_save_p@plt>
xor    %eax,%eax
call   1060 <tape_detach@plt>
lea    0xca6(%rip),%rsi
mov    %r14,%rdi
call   10c0 <fopen@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x19,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    %rbx,%rdi
lea    0x32(%rsp),%rsi
mov    $0x1e,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0x1c,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x14,%edx
call   10a0 <block_correct@plt>
mov    %eax,%edi
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1070 <fgetc@plt>
mov    0x2c08(%rip),%rcx
xor    %edi,%edi
cmp    (%rcx),%rax
sete   %dil
call   1090 <assert@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
add    $0x10008,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@EOF = global i64 0
define void @test_tape_save_p_truncate() {
%1 = alloca i8*
%2 = alloca i32*
%3 = alloca [65536 x i8]
%4 = alloca i32
%5 = call i8* @tmpnam(i32* null)
store i8* %5, i8** %1
%6 = load i8*, i8** %1
%7 = call i32 @tape_attach(i8* %6)
store i32 0, i32* %4
br label %8
8: ; preds = %50, %0
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %53
11: ; preds = %8
%12 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%13 = load i32, i32* %4
%14 = mul nsw i32 100, %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %12, i64 %15
%17 = load i32, i32* %4
%18 = add nsw i32 25, %17
%19 = load i32, i32* %4
%20 = add nsw i32 65, %19
%21 = call i32 @generate_block(i8* %16, i32 %18, i32 %20)
%22 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%23 = load i32, i32* %4
%24 = mul nsw i32 100, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %22, i64 %25
%27 = getelementptr inbounds i8, i8* %26, i64 50
%28 = load i32, i32* %4
%29 = add nsw i32 30, %28
%30 = load i32, i32* %4
%31 = add nsw i32 6, %30
%32 = call i32 @generate_block(i8* %27, i32 %29, i32 %31)
%33 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%34 = load i32, i32* %4
%35 = mul nsw i32 100, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %33, i64 %36
%38 = load i32, i32* %4
%39 = add nsw i32 25, %38
%40 = call i32 @tape_save_p(i8* %37, i32 %39)
%41 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%42 = load i32, i32* %4
%43 = mul nsw i32 100, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %41, i64 %44
%46 = getelementptr inbounds i8, i8* %45, i64 50
%47 = load i32, i32* %4
%48 = add nsw i32 30, %47
%49 = call i32 @tape_save_p(i8* %46, i32 %48)
br label %50
50: ; preds = %11
%51 = load i32, i32* %4
%52 = add nsw i32 %51, 1
store i32 %52, i32* %4
br label %8
53: ; preds = %8
%54 = call i32 (...) @tape_detach()
%55 = load i8*, i8** %1
%56 = call i32 @tape_attach(i8* %55)
store i32 0, i32* %4
br label %57
57: ; preds = %70, %53
%58 = load i32, i32* %4
%59 = icmp slt i32 %58, 10
br i1 %59, label %60, label %73
60: ; preds = %57
%61 = load i32, i32* %4
%62 = add nsw i32 100, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = load i32, i32* %4
%67 = add nsw i32 9986, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %68
store i8 %65, i8* %69
br label %70
70: ; preds = %60
%71 = load i32, i32* %4
%72 = add nsw i32 %71, 1
store i32 %72, i32* %4
br label %57
73: ; preds = %57
%74 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%75 = call i32 @tape_load_p(i8* %74, i32 1000)
%76 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%77 = call i32 @tape_load_p(i8* %76, i32 1150)
%78 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%79 = getelementptr inbounds i8, i8* %78, i64 2000
%80 = call i32 @generate_block(i8* %79, i32 28, i32 78)
%81 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%82 = getelementptr inbounds i8, i8* %81, i64 2050
%83 = call i32 @generate_block(i8* %82, i32 40, i32 20)
%84 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%85 = getelementptr inbounds i8, i8* %84, i64 2000
%86 = call i32 @tape_save_p(i8* %85, i32 28)
%87 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%88 = getelementptr inbounds i8, i8* %87, i64 2050
%89 = call i32 @tape_save_p(i8* %88, i32 20)
%90 = call i32 (...) @tape_detach()
%91 = load i8*, i8** %1
%92 = call i32* @fopen(i8* %91, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %92, i32** %2
%93 = load i32*, i32** %2
%94 = icmp ne i32* %93, null
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i32*, i32** %2
%98 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%99 = call i32 @block_correct(i32* %97, i8* %98, i32 25)
%100 = call i32 @assert(i32 %99)
%101 = load i32*, i32** %2
%102 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%103 = getelementptr inbounds i8, i8* %102, i64 50
%104 = call i32 @block_correct(i32* %101, i8* %103, i32 30)
%105 = call i32 @assert(i32 %104)
%106 = load i32*, i32** %2
%107 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%108 = getelementptr inbounds i8, i8* %107, i64 2000
%109 = call i32 @block_correct(i32* %106, i8* %108, i32 28)
%110 = call i32 @assert(i32 %109)
%111 = load i32*, i32** %2
%112 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%113 = getelementptr inbounds i8, i8* %112, i64 2050
%114 = call i32 @block_correct(i32* %111, i8* %113, i32 20)
%115 = call i32 @assert(i32 %114)
%116 = load i32*, i32** %2
%117 = call i64 @fgetc(i32* %116)
%118 = load i64, i64* @EOF
%119 = icmp eq i64 %117, %118
%120 = zext i1 %119 to i32
%121 = call i32 @assert(i32 %120)
%122 = load i32*, i32** %2
%123 = call i32 @fclose(i32* %122)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@EOF = global i64 0
define void @test_tape_save_p_truncate() {
%1 = alloca [65536 x i8]
%2 = tail call i8* @tmpnam(i32* null)
%3 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 0
%4 = tail call i32 @tape_attach(i8* %2)
%5 = call i32 @generate_block(i8* %3, i32 25, i32 65)
%6 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 50
%7 = call i32 @generate_block(i8* %6, i32 30, i32 6)
%8 = call i32 @tape_save_p(i8* %3, i32 25)
%9 = call i32 @tape_save_p(i8* %6, i32 30)
%10 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 100
%11 = call i32 @generate_block(i8* %10, i32 26, i32 66)
%12 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 150
%13 = call i32 @generate_block(i8* %12, i32 31, i32 7)
%14 = call i32 @tape_save_p(i8* %10, i32 26)
%15 = call i32 @tape_save_p(i8* %12, i32 31)
%16 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 200
%17 = call i32 @generate_block(i8* %16, i32 27, i32 67)
%18 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 250
%19 = call i32 @generate_block(i8* %18, i32 32, i32 8)
%20 = call i32 @tape_save_p(i8* %16, i32 27)
%21 = call i32 @tape_save_p(i8* %18, i32 32)
%22 = call i32 (...) @tape_detach()
%23 = call i32 @tape_attach(i8* %2)
%24 = load i8, i8* %10
%25 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9986
store i8 %24, i8* %25
%26 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 101
%27 = load i8, i8* %26
%28 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9987
store i8 %27, i8* %28
%29 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 102
%30 = load i8, i8* %29
%31 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9988
store i8 %30, i8* %31
%32 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 103
%33 = load i8, i8* %32
%34 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9989
store i8 %33, i8* %34
%35 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 104
%36 = load i8, i8* %35
%37 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9990
store i8 %36, i8* %37
%38 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 105
%39 = load i8, i8* %38
%40 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9991
store i8 %39, i8* %40
%41 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 106
%42 = load i8, i8* %41
%43 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9992
store i8 %42, i8* %43
%44 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 107
%45 = load i8, i8* %44
%46 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9993
store i8 %45, i8* %46
%47 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 108
%48 = load i8, i8* %47
%49 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9994
store i8 %48, i8* %49
%50 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 109
%51 = load i8, i8* %50
%52 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 9995
store i8 %51, i8* %52
%53 = call i32 @tape_load_p(i8* %3, i32 1000)
%54 = call i32 @tape_load_p(i8* %3, i32 1150)
%55 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 2000
%56 = call i32 @generate_block(i8* %55, i32 28, i32 78)
%57 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 2050
%58 = call i32 @generate_block(i8* %57, i32 40, i32 20)
%59 = call i32 @tape_save_p(i8* %55, i32 28)
%60 = call i32 @tape_save_p(i8* %57, i32 20)
%61 = call i32 (...) @tape_detach()
%62 = call i32* @fopen(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%63 = icmp ne i32* %62, null
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = call i32 @block_correct(i32* %62, i8* %3, i32 25)
%67 = call i32 @assert(i32 %66)
%68 = getelementptr inbounds [65536 x i8], [65536 x i8]* %1, i64 0, i64 50
%69 = call i32 @block_correct(i32* %62, i8* %68, i32 30)
%70 = call i32 @assert(i32 %69)
%71 = call i32 @block_correct(i32* %62, i8* %55, i32 28)
%72 = call i32 @assert(i32 %71)
%73 = call i32 @block_correct(i32* %62, i8* %57, i32 20)
%74 = call i32 @assert(i32 %73)
%75 = call i64 @fgetc(i32* %62)
%76 = load i64, i64* @EOF
%77 = icmp eq i64 %75, %76
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = call i32 @fclose(i32* %62)
ret void
}