#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 */
struct sockaddr_in {
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int atoi(char *);
int /*<<< orphan*/ close(int);
scalar_t__ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_aton(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *,
             int /*<<< orphan*/ *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int strlen(char *);
int main(int argc, char *argv[]) {
  int BUF_SIZE = 1024;
  char *ip_addr;
  int port;
  int sockfd;
  struct sockaddr_in server_addr;
  int recv_size, read_size, sent_size;
  char buffer[BUF_SIZE + 1];
  if (argc != 3) {
    fprintf(stderr, "usage: udp_client ip port\n");
    exit(1);
  }
  ip_addr = argv[1];
  port = atoi(argv[2]);
  if (port <= 0) {
    fprintf(stderr, "error: invalid port\n");
    exit(1);
  }
  if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
    perror("socket");
    exit(1);
  }
  server_addr.sin_family = AF_INET;
  server_addr.sin_port = htons(port);
  inet_aton(ip_addr, &server_addr.sin_addr);
  while (1) {
    printf("Data to send (Ctrl+D quits): ");
    if (fgets(buffer, BUF_SIZE, stdin) == NULL) {
      close(sockfd);
      perror("fgets");
      exit(1);
    }
    read_size = strlen(buffer);
    if ((sent_size = sendto(sockfd, buffer, read_size, 0,
                            (struct sockaddr *)&server_addr,
                            sizeof(struct sockaddr))) == -1) {
      close(sockfd);
      perror("sendto");
      exit(1);
    }
    if ((recv_size = recvfrom(sockfd, buffer, BUF_SIZE, 0, NULL, NULL)) == 0) {
      close(sockfd);
      if (errno != 0) {
        perror("recv");
        exit(1);
      }
      break;
    }
    buffer[recv_size] = '\0';
    printf("Answer: %s", buffer);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x400,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     123f <main+0x6f>
mov    0x2da1(%rip),%rax
mov    (%rax),%edi
lea    0xdd0(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     1284 <main+0xb4>
mov    0x2d5c(%rip),%rax
mov    (%rax),%edi
lea    0xda6(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x2d5d(%rip),%rax
mov    (%rax),%edi
mov    0x2d44(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x28(%rbp)
cmp    $0xffffffff,%eax
jne    12bf <main+0xef>
lea    0xd80(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x2d22(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x24(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10a0 <inet_aton@plt>
jmp    12e8 <main+0x118>
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    0x2cdc(%rip),%rax
mov    (%rax),%edx
call   1080 <fgets@plt>
cmp    $0x0,%rax
jne    1333 <main+0x163>
mov    -0x28(%rbp),%edi
call   1070 <close@plt>
lea    0xd31(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x60(%rbp),%rsi
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x40(%rbp),%edx
lea    -0x38(%rbp),%r8
xor    %ecx,%ecx
mov    $0x4,%r9d
call   1060 <sendto@plt>
mov    %eax,-0x44(%rbp)
cmp    $0xffffffff,%eax
jne    1384 <main+0x1b4>
mov    -0x28(%rbp),%edi
call   1070 <close@plt>
lea    0xce6(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x60(%rbp),%rsi
mov    -0x28(%rbp),%edi
mov    -0x14(%rbp),%edx
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   10b0 <recvfrom@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0x0,%eax
jne    13dd <main+0x20d>
mov    -0x28(%rbp),%edi
call   1070 <close@plt>
mov    0x2c08(%rip),%rax
cmpq   $0x0,(%rax)
je     13d8 <main+0x208>
lea    0xc99(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
jmp    13fc <main+0x22c>
mov    -0x60(%rbp),%rsi
movslq -0x3c(%rbp),%rax
movb   $0x0,(%rsi,%rax,1)
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12e3 <main+0x113>
mov    -0x50(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
cmp    $0x3,%edi
jne    1371 <main+0x1a1>
mov    %rsp,%rbp
mov    0x8(%rsi),%r14
mov    0x10(%rsi),%rdi
call   10d0 <atoi@plt>
test   %eax,%eax
jle    1383 <main+0x1b3>
mov    %eax,%ebx
mov    %rbp,0x18(%rsp)
mov    0x2dd8(%rip),%r15
mov    (%r15),%edi
mov    0x2dbe(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
je     13a2 <main+0x1d2>
mov    %eax,%ebp
mov    (%r15),%eax
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
call   1040 <htons@plt>
mov    %eax,0xc(%rsp)
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <inet_aton@plt>
lea    0xde3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d7e(%rip),%r13
mov    0x0(%r13),%edx
lea    0x20(%rsp),%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     1317 <main+0x147>
lea    0x20(%rsp),%rbx
lea    0x8(%rsp),%r14
lea    0xdd8(%rip),%r15
lea    0xda1(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
mov    %r14,%r8
mov    $0x4,%r9d
call   1060 <sendto@plt>
cmp    $0xffffffff,%eax
je     1354 <main+0x184>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   10b0 <recvfrom@plt>
test   %eax,%eax
je     1327 <main+0x157>
cltq
movb   $0x0,0x20(%rsp,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%edx
mov    %rbx,%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
test   %rax,%rax
jne    12a0 <main+0xd0>
mov    %ebp,%edi
call   1070 <close@plt>
lea    0xd30(%rip),%rdi
jmp    1362 <main+0x192>
mov    %ebp,%edi
call   1070 <close@plt>
mov    0x2c8b(%rip),%rax
cmpq   $0x0,(%rax)
jne    13ab <main+0x1db>
mov    0x18(%rsp),%rsp
xor    %eax,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %ebp,%edi
call   1070 <close@plt>
lea    0xcf9(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x2c50(%rip),%rax
mov    (%rax),%edi
lea    0xc7f(%rip),%rsi
jmp    1393 <main+0x1c3>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0xc88(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xc87(%rip),%rdi
jmp    1362 <main+0x192>
lea    0xcb0(%rip),%rdi
jmp    1362 <main+0x192>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [27 x i8] c"usage: udp_client ip port\0A\00"
@.str.1 = [21 x i8] c"error: invalid port\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [30 x i8] c"Data to send (Ctrl+D quits): \00"
@stdin = global i32 0
@.str.4 = [6 x i8] c"fgets\00"
@.str.5 = [7 x i8] c"sendto\00"
@errno = global i64 0
@.str.6 = [5 x i8] c"recv\00"
@.str.7 = [11 x i8] c"Answer: %s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1024, i32* %6
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %14
%20 = alloca i8, i64 %18
store i64 %18, i64* %15
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 3
br i1 %22, label %23, label %27
23: ; preds = %2
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
store i8* %30, i8** %7
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i32 @atoi(i8* %33)
store i32 %34, i32* %8
%35 = load i32, i32* %8
%36 = icmp sle i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %27
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @exit(i32 1)
unreachable
41: ; preds = %27
%42 = load i32, i32* @AF_INET
%43 = load i32, i32* @SOCK_DGRAM
%44 = call i32 @socket(i32 %42, i32 %43, i32 0)
store i32 %44, i32* %9
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %49
46: ; preds = %41
%47 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %41
%50 = load i32, i32* @AF_INET
%51 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 2
store i32 %50, i32* %51
%52 = load i32, i32* %8
%53 = call i32 @htons(i32 %52)
%54 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
store i32 %53, i32* %54
%55 = load i8*, i8** %7
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%57 = call i32 @inet_aton(i8* %55, i32* %56)
br label %58
58: ; preds = %96, %49
br label %59
59: ; preds = %58
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%61 = load i32, i32* %6
%62 = load i32, i32* @stdin
%63 = call i32* @fgets(i8* %20, i32 %61, i32 %62)
%64 = icmp eq i32* %63, null
br i1 %64, label %65, label %70
65: ; preds = %59
%66 = load i32, i32* %9
%67 = call i32 @close(i32 %66)
%68 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %59
%71 = call i32 @strlen(i8* %20)
store i32 %71, i32* %12
%72 = load i32, i32* %9
%73 = load i32, i32* %12
%74 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%75 = call i32 @sendto(i32 %72, i8* %20, i32 %73, i32 0, %struct.sockaddr* %74, i32 4)
store i32 %75, i32* %13
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %82
77: ; preds = %70
%78 = load i32, i32* %9
%79 = call i32 @close(i32 %78)
%80 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%81 = call i32 @exit(i32 1)
unreachable
82: ; preds = %70
%83 = load i32, i32* %9
%84 = load i32, i32* %6
%85 = call i32 @recvfrom(i32 %83, i8* %20, i32 %84, i32 0, i32* null, i32* null)
store i32 %85, i32* %11
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %82
%88 = load i32, i32* %9
%89 = call i32 @close(i32 %88)
%90 = load i64, i64* @errno
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %87
%93 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%94 = call i32 @exit(i32 1)
unreachable
95: ; preds = %87
br label %101
96: ; preds = %82
%97 = load i32, i32* %11
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, i8* %20, i64 %98
store i8 0, i8* %99
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %20)
br label %58
101: ; preds = %95
%102 = load i8*, i8** %14
%103 = load i32, i32* %3
ret i32 %103
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [27 x i8] c"usage: udp_client ip port\0A\00"
@.str.1 = [21 x i8] c"error: invalid port\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [30 x i8] c"Data to send (Ctrl+D quits): \00"
@stdin = global i32 0
@.str.4 = [6 x i8] c"fgets\00"
@.str.5 = [7 x i8] c"sendto\00"
@errno = global i64 0
@.str.6 = [5 x i8] c"recv\00"
@.str.7 = [11 x i8] c"Answer: %s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = bitcast %struct.sockaddr_in* %3 to i8*
%5 = tail call i8* @llvm.stacksave()
%6 = alloca [1025 x i8]
%7 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%8 = icmp eq i32 %0, 3
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @exit(i32 1)
unreachable
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32 @atoi(i8* %17)
%19 = icmp slt i32 %18, 1
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %13
%25 = load i32, i32* @AF_INET
%26 = load i32, i32* @SOCK_DGRAM
%27 = tail call i32 @socket(i32 %25, i32 %26, i32 0)
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%31 = tail call i32 @exit(i32 1)
unreachable
32: ; preds = %24
%33 = load i32, i32* @AF_INET
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %33, i32* %34
%35 = tail call i32 @htons(i32 %18)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %35, i32* %36
%37 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
%38 = call i32 @inet_aton(i8* %15, i32* %37)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%40 = load i32, i32* @stdin
%41 = call i32* @fgets(i8* %7, i32 1024, i32 %40)
%42 = icmp eq i32* %41, null
br i1 %42, label %45, label %43
43: ; preds = %32
%44 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
br label %49
45: ; preds = %67, %32
%46 = call i32 @close(i32 %27)
%47 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %43, %67
%50 = call i32 @strlen(i8* %7)
%51 = call i32 @sendto(i32 %27, i8* %7, i32 %50, i32 0, %struct.sockaddr* %44, i32 4)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %57
53: ; preds = %49
%54 = call i32 @close(i32 %27)
%55 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%56 = call i32 @exit(i32 1)
unreachable
57: ; preds = %49
%58 = call i32 @recvfrom(i32 %27, i8* %7, i32 1024, i32 0, i32* null, i32* null)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %57
%61 = call i32 @close(i32 %27)
%62 = load i64, i64* @errno
%63 = icmp eq i64 %62, 0
br i1 %63, label %75, label %64
64: ; preds = %60
%65 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %57
%68 = sext i32 %58 to i64
%69 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 %68
store i8 0, i8* %69
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %7)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%72 = load i32, i32* @stdin
%73 = call i32* @fgets(i8* %7, i32 1024, i32 %72)
%74 = icmp eq i32* %73, null
br i1 %74, label %45, label %49
75: ; preds = %60
ret i32 0
}