#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;
};
struct hostent {
  int /*<<< orphan*/ h_length;
  int /*<<< orphan*/ h_addr;
};
typedef int /*<<< orphan*/ sin;
typedef int /*<<< orphan*/ enabled;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_BROADCAST;
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_pton(int /*<<< orphan*/, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  int s, port, r, volume, enabled;
  struct sockaddr_in sin;
  struct hostent *hp;
  char buf[100000];
  if (argc != 4) {
    printf("Usage : %s adresse_service port_serveur volume\n", argv[0]);
    exit(1);
  }
  port = atoi(argv[2]);
  if (port == 0) {
    fprintf(stderr, "Mauvais numero de port\n");
    exit(1);
  }
  volume = atoi(argv[3]);
  if (volume == 0 || volume > 100000) {
    fprintf(stderr, "Donnez un volume inferieur a %d octets\n", 100000);
    exit(1);
  }
  for (r = 0; r < 100000; r++)
    buf[r] = 'a';
  memset(&sin, 0, sizeof(sin));
  sin.sin_family = AF_INET;
  hp = gethostbyname(argv[1]);
  if (hp == NULL) {
    fprintf(stderr, "Erreur gethostbyaddr\n");
    exit(2);
  } else {
    memcpy(&sin.sin_addr, hp->h_addr, hp->h_length);
  }
  sin.sin_port = htons(port);
  inet_pton(AF_INET, "10.29.231.255", &sin.sin_addr);
  s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
  if (s == -1) {
    perror("socket");
    exit(2);
  }
  enabled = 1;
  setsockopt(s, SOL_SOCKET, SO_BROADCAST, &enabled, sizeof(enabled));
  r = sendto(s, buf, volume, 0, (struct sockaddr *)&sin,
             sizeof(struct sockaddr_in));
  if (r < 0) {
    perror("Probleme sendto");
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186e0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     1210 <main+0x40>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdff(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jne    124b <main+0x7b>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edi
lea    0xdf6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1272 <main+0xa2>
cmpl   $0x186a0,-0x20(%rbp)
jle    1298 <main+0xc8>
mov    0x2d47(%rip),%rax
mov    (%rax),%edi
lea    0xdc6(%rip),%rsi
mov    $0x186a0,%edx
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x186a0,-0x1c(%rbp)
jge    12c6 <main+0xf6>
movslq -0x1c(%rbp),%rax
movb   $0x61,-0x186e0(%rbp,%rax,1)
61
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    129f <main+0xcf>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1080 <gethostbyname@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    131f <main+0x14f>
mov    0x2cbb(%rip),%rax
mov    (%rax),%edi
lea    0xd62(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
lea    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x38(%rbp),%rax
mov    (%rax),%edx
call   10a0 <memcpy@plt>
mov    -0x18(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x2c(%rbp)
mov    0x2c99(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rdx
lea    0xd32(%rip),%rsi
call   10b0 <inet_pton@plt>
mov    0x2c80(%rip),%rax
mov    (%rax),%edi
mov    0x2c6f(%rip),%rax
mov    (%rax),%esi
mov    0x2c3e(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    139c <main+0x1cc>
lea    0xd07(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2c3b(%rip),%rax
mov    (%rax),%esi
mov    0x2c1a(%rip),%rax
mov    (%rax),%edx
lea    -0x24(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
mov    -0x14(%rbp),%edi
lea    -0x186e0(%rbp),%rsi
mov    -0x20(%rbp),%edx
lea    -0x30(%rbp),%r8
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    13fe <main+0x22e>
lea    0xca2(%rip),%rdi
call   10c0 <perror@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x186c8,%rsp
mov    %rsi,%rbx
cmp    $0x4,%edi
jne    1213 <main+0x43>
mov    0x10(%rbx),%rdi
call   10d0 <atoi@plt>
test   %eax,%eax
jne    122c <main+0x5c>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xe2e(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    (%rbx),%rsi
lea    0xde3(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    %eax,%ebp
mov    0x18(%rbx),%rdi
call   10d0 <atoi@plt>
test   %eax,%eax
je     12a7 <main+0xd7>
mov    %eax,%r14d
cmp    $0x186a0,%eax
jg     12a7 <main+0xd7>
lea    0x20(%rsp),%rdi
mov    $0x186a0,%edx
mov    $0x61,%esi
call   1060 <memset@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2d6f(%rip),%r15
mov    (%r15),%eax
mov    %eax,0x18(%rsp)
mov    0x8(%rbx),%rdi
call   1080 <gethostbyname@plt>
test   %rax,%rax
jne    12cd <main+0xfd>
mov    0x2d33(%rip),%rax
mov    (%rax),%edi
lea    0xdda(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
mov    0x2d12(%rip),%rax
mov    (%rax),%edi
lea    0xd91(%rip),%rsi
mov    $0x186a0,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    (%rax),%edx
mov    0x4(%rax),%esi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <memcpy@plt>
mov    %ebp,%edi
call   1040 <htons@plt>
mov    %eax,0x14(%rsp)
mov    (%r15),%edi
lea    0xd92(%rip),%rsi
mov    %rbx,%rdx
call   10b0 <inet_pton@plt>
mov    (%r15),%edi
mov    0x2cd2(%rip),%rax
mov    (%rax),%esi
mov    0x2ca1(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
jne    1331 <main+0x161>
lea    0xd72(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
mov    %eax,%ebx
movl   $0x1,0xc(%rsp)
mov    0x2ca6(%rip),%rax
mov    (%rax),%esi
mov    0x2c85(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebx,%edi
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
lea    0x20(%rsp),%rsi
lea    0x10(%rsp),%r8
mov    %ebx,%edi
mov    %r14d,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
test   %eax,%eax
jns    138b <main+0x1bb>
lea    0xd15(%rip),%rdi
call   10c0 <perror@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [48 x i8] c"Usage : %s adresse_service port_serveur volume\0A\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"Mauvais numero de port\0A\00"
@.str.2 = [40 x i8] c"Donnez un volume inferieur a %d octets\0A\00"
@AF_INET = global i32 0
@.str.3 = [22 x i8] c"Erreur gethostbyaddr\0A\00"
@.str.4 = [14 x i8] c"10.29.231.255\00"
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.5 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_BROADCAST = global i32 0
@.str.6 = [16 x i8] c"Probleme sendto\00"
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 i32
%10 = alloca i32
%11 = alloca %struct.sockaddr_in
%12 = alloca %struct.hostent*
%13 = alloca [100000 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 4
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = call i32 @exit(i32 1)
unreachable
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %7
%27 = load i32, i32* %7
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %22
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %22
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 3
%36 = load i8*, i8** %35
%37 = call i32 @atoi(i8* %36)
store i32 %37, i32* %9
%38 = load i32, i32* %9
%39 = icmp eq i32 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %33
%41 = load i32, i32* %9
%42 = icmp sgt i32 %41, 100000
br i1 %42, label %43, label %47
43: ; preds = %40, %33
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 100000)
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %40
store i32 0, i32* %8
br label %48
48: ; preds = %55, %47
%49 = load i32, i32* %8
%50 = icmp slt i32 %49, 100000
br i1 %50, label %51, label %58
51: ; preds = %48
%52 = load i32, i32* %8
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100000 x i8], [100000 x i8]* %13, i64 0, i64 %53
store i8 97, i8* %54
br label %55
55: ; preds = %51
%56 = load i32, i32* %8
%57 = add nsw i32 %56, 1
store i32 %57, i32* %8
br label %48
58: ; preds = %48
%59 = call i32 @memset(%struct.sockaddr_in* %11, i32 0, i32 12)
%60 = load i32, i32* @AF_INET
%61 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %60, i32* %61
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 1
%64 = load i8*, i8** %63
%65 = call %struct.hostent* @gethostbyname(i8* %64)
store %struct.hostent* %65, %struct.hostent** %12
%66 = load %struct.hostent*, %struct.hostent** %12
%67 = icmp eq %struct.hostent* %66, null
br i1 %67, label %68, label %72
68: ; preds = %58
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%71 = call i32 @exit(i32 2)
unreachable
72: ; preds = %58
%73 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
%74 = load %struct.hostent*, %struct.hostent** %12
%75 = getelementptr inbounds %struct.hostent, %struct.hostent* %74, i32 0, i32 1
%76 = load i32, i32* %75
%77 = load %struct.hostent*, %struct.hostent** %12
%78 = getelementptr inbounds %struct.hostent, %struct.hostent* %77, i32 0, i32 0
%79 = load i32, i32* %78
%80 = call i32 @memcpy(i32* %73, i32 %76, i32 %79)
br label %81
81: ; preds = %72
%82 = load i32, i32* %7
%83 = call i32 @htons(i32 %82)
%84 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
store i32 %83, i32* %84
%85 = load i32, i32* @AF_INET
%86 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
%87 = call i32 @inet_pton(i32 %85, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32* %86)
%88 = load i32, i32* @AF_INET
%89 = load i32, i32* @SOCK_DGRAM
%90 = load i32, i32* @IPPROTO_UDP
%91 = call i32 @socket(i32 %88, i32 %89, i32 %90)
store i32 %91, i32* %6
%92 = load i32, i32* %6
%93 = icmp eq i32 %92, -1
br i1 %93, label %94, label %97
94: ; preds = %81
%95 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%96 = call i32 @exit(i32 2)
unreachable
97: ; preds = %81
store i32 1, i32* %10
%98 = load i32, i32* %6
%99 = load i32, i32* @SOL_SOCKET
%100 = load i32, i32* @SO_BROADCAST
%101 = call i32 @setsockopt(i32 %98, i32 %99, i32 %100, i32* %10, i32 4)
%102 = load i32, i32* %6
%103 = getelementptr inbounds [100000 x i8], [100000 x i8]* %13, i64 0, i64 0
%104 = load i32, i32* %9
%105 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%106 = call i32 @sendto(i32 %102, i8* %103, i32 %104, i32 0, %struct.sockaddr* %105, i32 12)
store i32 %106, i32* %8
%107 = load i32, i32* %8
%108 = icmp slt i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %97
%110 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %111
111: ; preds = %109, %97
%112 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [48 x i8] c"Usage : %s adresse_service port_serveur volume\0A\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"Mauvais numero de port\0A\00"
@.str.2 = [40 x i8] c"Donnez un volume inferieur a %d octets\0A\00"
@AF_INET = global i32 0
@.str.3 = [22 x i8] c"Erreur gethostbyaddr\0A\00"
@.str.4 = [14 x i8] c"10.29.231.255\00"
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.5 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_BROADCAST = global i32 0
@.str.6 = [16 x i8] c"Probleme sendto\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca [100000 x i8]
%6 = getelementptr inbounds [100000 x i8], [100000 x i8]* %5, i64 0, i64 0
%7 = bitcast i32* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = getelementptr inbounds [100000 x i8], [100000 x i8]* %5, i64 0, i64 0
%10 = icmp eq i32 %0, 4
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32 @atoi(i8* %17)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %15
%25 = getelementptr inbounds i8*, i8** %1, i64 3
%26 = load i8*, i8** %25
%27 = tail call i32 @atoi(i8* %26)
%28 = icmp eq i32 %27, 0
%29 = icmp sgt i32 %27, 100000
%30 = or i1 %28, %29
br i1 %30, label %39, label %31
31: ; preds = %24
%32 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%33 = load i32, i32* @AF_INET
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %33, i32* %34
%35 = getelementptr inbounds i8*, i8** %1, i64 1
%36 = load i8*, i8** %35
%37 = call %struct.hostent* @gethostbyname(i8* %36)
%38 = icmp eq %struct.hostent* %37, null
br i1 %38, label %43, label %47
39: ; preds = %24
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 100000)
%42 = tail call i32 @exit(i32 1)
unreachable
43: ; preds = %31
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%46 = call i32 @exit(i32 2)
unreachable
47: ; preds = %31
%48 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
%49 = getelementptr inbounds %struct.hostent, %struct.hostent* %37, i64 0, i32 1
%50 = load i32, i32* %49
%51 = getelementptr inbounds %struct.hostent, %struct.hostent* %37, i64 0, i32 0
%52 = load i32, i32* %51
%53 = call i32 @memcpy(i32* %48, i32 %50, i32 %52)
%54 = call i32 @htons(i32 %18)
%55 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %54, i32* %55
%56 = load i32, i32* @AF_INET
%57 = call i32 @inet_pton(i32 %56, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32* %48)
%58 = load i32, i32* @AF_INET
%59 = load i32, i32* @SOCK_DGRAM
%60 = load i32, i32* @IPPROTO_UDP
%61 = call i32 @socket(i32 %58, i32 %59, i32 %60)
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %66
63: ; preds = %47
%64 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%65 = call i32 @exit(i32 2)
unreachable
66: ; preds = %47
store i32 1, i32* %3
%67 = load i32, i32* @SOL_SOCKET
%68 = load i32, i32* @SO_BROADCAST
%69 = call i32 @setsockopt(i32 %61, i32 %67, i32 %68, i32* %3, i32 4)
%70 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%71 = call i32 @sendto(i32 %61, i8* %9, i32 %27, i32 0, %struct.sockaddr* %70, i32 12)
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %66
%74 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %75
75: ; preds = %73, %66
%76 = call i32 @exit(i32 0)
unreachable
}