#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ address;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fdopen(int, char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
char *malloc(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ stdout;
scalar_t__ strncmp(char *, char *, int);
int main(int argc, char *argv[]) {
  int sockfd;
  FILE *fd;
  int len;
  struct sockaddr_in address;
  int result;
  int jpglength;
  int port;
  char garbage1[80] = "";
  char garbage2[30] = "";
  char *ip_addr = malloc(sizeof(char) * 16);
  if (argc != 3) {
    printf("Usage: %s ipaddr port\n", argv[0]);
    exit(1);
  }
  sscanf(argv[1], "%s16", ip_addr);
  sscanf(argv[2], "%d", &port);
  sockfd = socket(AF_INET, SOCK_STREAM, 0);
  address.sin_family = AF_INET;
  address.sin_addr.s_addr = inet_addr(ip_addr);
  address.sin_port = htons(port);
  len = sizeof(address);
  result = connect(sockfd, (struct sockaddr *)&address, len);
  if (result == -1) {
    perror("Cannot connect to Motion");
    exit(1);
  }
  fd = fdopen(sockfd, "r");
  if (fd == NULL) {
    perror("Cannot connect to Motion");
    exit(1);
  }
  while (strncmp(garbage1, "Content-Length:", 15) != 0) {
    fgets(garbage1, 70, fd);
  }
  sscanf(garbage1, "%s%d", garbage2, &jpglength);
  fgets(garbage1, 70, fd);
  char *chbuffer = malloc(jpglength);
  fread(chbuffer, 1, jpglength, fd);
  fwrite(chbuffer, 1, jpglength, stdout);
  fflush(stdout);
  fclose(fd);
  close(sockfd);
  free(chbuffer);
  free(ip_addr);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1090 <memset@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1090 <memset@plt>
mov    $0x10,%edi
call   10d0 <malloc@plt>
mov    %rax,-0xb8(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     12a7 <main+0x77>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xd68(%rip),%rdi
call   1080 <printf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0xb8(%rbp),%rdx
lea    0xd5a(%rip),%rsi
mov    $0x0,%al
call   10f0 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd76(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   10f0 <sscanf@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
mov    0x2cea(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1150 <socket@plt>
mov    %eax,-0x14(%rbp)
mov    0x2ce7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0xb8(%rbp),%rdi
call   10c0 <inet_addr@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x3c(%rbp),%edi
call   1070 <htons@plt>
mov    %eax,-0x30(%rbp)
movl   $0xc,-0x24(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1130 <connect@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0xffffffff,-0x34(%rbp)
jne    1359 <main+0x129>
lea    0xcd2(%rip),%rdi
call   1110 <perror@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x14(%rbp),%edi
lea    0xcd2(%rip),%rsi
call   1100 <fdopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    138d <main+0x15d>
lea    0xc9e(%rip),%rdi
call   1110 <perror@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
jmp    1392 <main+0x162>
lea    -0x90(%rbp),%rdi
lea    0xc97(%rip),%rsi
mov    $0xf,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     13ce <main+0x19e>
lea    -0x90(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x46,%esi
call   10b0 <fgets@plt>
jmp    1392 <main+0x162>
lea    -0x90(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xc64(%rip),%rsi
lea    -0x38(%rbp),%rcx
mov    $0x0,%al
call   10f0 <sscanf@plt>
lea    -0x90(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x46,%esi
call   10b0 <fgets@plt>
mov    -0x38(%rbp),%edi
call   10d0 <malloc@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fread@plt>
mov    -0xc0(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    0x2b95(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
call   1140 <fwrite@plt>
mov    0x2b82(%rip),%rax
mov    (%rax),%edi
call   10e0 <fflush@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x14(%rbp),%edi
call   10a0 <close@plt>
mov    -0xc0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1120 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movups %xmm0,0x2e(%rsp)
movaps %xmm0,0x20(%rsp)
mov    $0x10,%edi
call   10c0 <malloc@plt>
cmp    $0x3,%ebx
jne    131d <main+0xfd>
mov    %rax,%r12
mov    0x8(%rbp),%rdi
lea    0xd97(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x10(%rbp),%rdi
lea    0xdb4(%rip),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x2d40(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d27(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1140 <socket@plt>
mov    %eax,%r14d
mov    (%rbx),%eax
mov    %eax,0x18(%rsp)
mov    %r12,%rdi
call   10b0 <inet_addr@plt>
mov    %eax,0x14(%rsp)
mov    0xc(%rsp),%edi
call   1070 <htons@plt>
mov    %eax,0x10(%rsp)
lea    0x10(%rsp),%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   1120 <connect@plt>
cmp    $0xffffffff,%eax
je     1307 <main+0xe7>
lea    0xd3b(%rip),%rsi
mov    %r14d,%edi
call   10f0 <fdopen@plt>
test   %rax,%rax
jne    1337 <main+0x117>
lea    0xd0e(%rip),%rdi
call   1100 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    0x0(%rbp),%rsi
lea    0xcd8(%rip),%rdi
call   1080 <printf@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    %rax,%r13
lea    0xcf6(%rip),%rsi
lea    0x40(%rsp),%rdi
mov    $0xf,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1395 <main+0x175>
lea    0x40(%rsp),%rbx
lea    0xcd6(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x46,%esi
mov    %r13,%rdx
call   10a0 <fgets@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1370 <main+0x150>
lea    0xcab(%rip),%rsi
lea    0x40(%rsp),%rbx
lea    0x20(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
mov    %r13,%rdx
call   10a0 <fgets@plt>
mov    0x8(%rsp),%ebx
mov    %ebx,%edi
call   10c0 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    $0x1,%esi
mov    %ebx,%edx
mov    %r13,%rcx
call   1050 <fread@plt>
mov    0x8(%rsp),%edx
mov    0x2be0(%rip),%rbx
mov    (%rbx),%ecx
mov    %r15,%rdi
mov    $0x1,%esi
call   1130 <fwrite@plt>
mov    (%rbx),%edi
call   10d0 <fflush@plt>
mov    %r13,%rdi
call   1060 <fclose@plt>
mov    %r14d,%edi
call   1090 <close@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [23 x i8] c"Usage: %s ipaddr port\0A\00"
@.str.1 = [5 x i8] c"%s16\00"
@.str.2 = [3 x i8] c"%d\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [25 x i8] c"Cannot connect to Motion\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [16 x i8] c"Content-Length:\00"
@.str.6 = [5 x i8] c"%s%d\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32
%9 = alloca %struct.sockaddr_in
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [80 x i8]
%14 = alloca [30 x i8]
%15 = alloca i8*
%16 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = bitcast [80 x i8]* %13 to i8*
%18 = bitcast [30 x i8]* %14 to i8*
%19 = call i8* @malloc(i32 16)
store i8* %19, i8** %15
%20 = load i32, i32* %4
%21 = icmp ne i32 %20, 3
br i1 %21, label %22, label %28
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = call i32 @exit(i32 1)
unreachable
28: ; preds = %2
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = load i8*, i8** %15
%33 = call i32 (i8*, i8*, ...) @sscanf(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %32)
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 (i8*, i8*, ...) @sscanf(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %12)
%38 = load i32, i32* @AF_INET
%39 = load i32, i32* @SOCK_STREAM
%40 = call i32 @socket(i32 %38, i32 %39, i32 0)
store i32 %40, i32* %6
%41 = load i32, i32* @AF_INET
%42 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i32 %41, i32* %42
%43 = load i8*, i8** %15
%44 = call i32 @inet_addr(i8* %43)
%45 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
%46 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %45, i32 0, i32 0
store i32 %44, i32* %46
%47 = load i32, i32* %12
%48 = call i32 @htons(i32 %47)
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
store i32 %48, i32* %49
store i32 12, i32* %8
%50 = load i32, i32* %6
%51 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%52 = load i32, i32* %8
%53 = call i32 @connect(i32 %50, %struct.sockaddr* %51, i32 %52)
store i32 %53, i32* %10
%54 = load i32, i32* %10
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %59
56: ; preds = %28
%57 = call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 @exit(i32 1)
unreachable
59: ; preds = %28
%60 = load i32, i32* %6
%61 = call i32* @fdopen(i32 %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %61, i32** %7
%62 = load i32*, i32** %7
%63 = icmp eq i32* %62, null
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %59
br label %68
68: ; preds = %72, %67
%69 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%70 = call i64 @strncmp(i8* %69, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 15)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %68
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%74 = load i32*, i32** %7
%75 = call i32 @fgets(i8* %73, i32 70, i32* %74)
br label %68
76: ; preds = %68
%77 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%78 = getelementptr inbounds [30 x i8], [30 x i8]* %14, i64 0, i64 0
%79 = call i32 (i8*, i8*, ...) @sscanf(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %78, i32* %11)
%80 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%81 = load i32*, i32** %7
%82 = call i32 @fgets(i8* %80, i32 70, i32* %81)
%83 = load i32, i32* %11
%84 = call i8* @malloc(i32 %83)
store i8* %84, i8** %16
%85 = load i8*, i8** %16
%86 = load i32, i32* %11
%87 = load i32*, i32** %7
%88 = call i32 @fread(i8* %85, i32 1, i32 %86, i32* %87)
%89 = load i8*, i8** %16
%90 = load i32, i32* %11
%91 = load i32, i32* @stdout
%92 = call i32 @fwrite(i8* %89, i32 1, i32 %90, i32 %91)
%93 = load i32, i32* @stdout
%94 = call i32 @fflush(i32 %93)
%95 = load i32*, i32** %7
%96 = call i32 @fclose(i32* %95)
%97 = load i32, i32* %6
%98 = call i32 @close(i32 %97)
%99 = load i8*, i8** %16
%100 = call i32 @free(i8* %99)
%101 = load i8*, i8** %15
%102 = call i32 @free(i8* %101)
%103 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [23 x i8] c"Usage: %s ipaddr port\0A\00"
@.str.1 = [5 x i8] c"%s16\00"
@.str.2 = [3 x i8] c"%d\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [25 x i8] c"Cannot connect to Motion\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [16 x i8] c"Content-Length:\00"
@.str.6 = [5 x i8] c"%s%d\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca i32
%5 = alloca i32
%6 = alloca [80 x i8]
%7 = alloca [30 x i8]
%8 = bitcast %struct.sockaddr_in* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%13 = tail call dereferenceable_or_null(16) i8* @malloc(i32 16)
%14 = icmp eq i32 %0, 3
br i1 %14, label %19, label %15
15: ; preds = %2
%16 = load i8*, i8** %1
%17 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %2
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = tail call i32 (i8*, i8*, ...) @sscanf(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = call i32 (i8*, i8*, ...) @sscanf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%26 = load i32, i32* @AF_INET
%27 = load i32, i32* @SOCK_STREAM
%28 = call i32 @socket(i32 %26, i32 %27, i32 0)
%29 = load i32, i32* @AF_INET
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %29, i32* %30
%31 = call i32 @inet_addr(i8* %13)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
store i32 %31, i32* %32
%33 = load i32, i32* %5
%34 = call i32 @htons(i32 %33)
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %34, i32* %35
%36 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%37 = call i32 @connect(i32 %28, %struct.sockaddr* %36, i32 12)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %19
%40 = call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %19
%43 = call i32* @fdopen(i32 %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp eq i32* %43, null
br i1 %44, label %48, label %45
45: ; preds = %42
%46 = call i64 @strncmp(i8* %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 15)
%47 = icmp eq i64 %46, 0
br i1 %47, label %55, label %51
48: ; preds = %42
%49 = call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %45, %51
%52 = call i32 @fgets(i8* %11, i32 70, i32* %43)
%53 = call i64 @strncmp(i8* %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 15)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %51
55: ; preds = %51, %45
%56 = call i32 (i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %12, i32* %4)
%57 = call i32 @fgets(i8* %11, i32 70, i32* %43)
%58 = load i32, i32* %4
%59 = call i8* @malloc(i32 %58)
%60 = call i32 @fread(i8* %59, i32 1, i32 %58, i32* %43)
%61 = load i32, i32* %4
%62 = load i32, i32* @stdout
%63 = call i32 @fwrite(i8* %59, i32 1, i32 %61, i32 %62)
%64 = load i32, i32* @stdout
%65 = call i32 @fflush(i32 %64)
%66 = call i32 @fclose(i32* %43)
%67 = call i32 @close(i32 %28)
%68 = call i32 @free(i8* %59)
%69 = call i32 @free(i8* %13)
%70 = call i32 @exit(i32 0)
unreachable
}