#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*/ si_other;
typedef int /*<<< orphan*/ si_me;
typedef int /*<<< orphan*/ resultat;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int ExecuterCommande(char *, char *);
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_UDP;
int LireParametre(char *, char *, char *);
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ atoi(char *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ die(char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int sendto(int, char *, int /*<<< orphan*/, int /*<<< orphan*/,
           struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strlen(char *);
int StartServerUDP(void) {
  struct sockaddr_in si_me, si_other;
  int s, retourCode, slen = sizeof(si_other), recv_len;
  int broadcast = 1;
  char buf[512];
  char resultat[512];
  if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
    die("socket");
  }
  memset((char *)&si_me, 0, sizeof(si_me));
  si_me.sin_family = AF_INET;
  if (LireParametre("switchmanager.config", "Port", resultat) != 200) {
    printf("StartServerUDP - Erreur de recuperation du port de connexion\n");
    return 500;
  }
  si_me.sin_port = htons(atoi(resultat));
  si_me.sin_addr.s_addr = htonl(INADDR_ANY);
  if (bind(s, (struct sockaddr *)&si_me, sizeof(si_me)) == -1) {
    die("bind");
  }
  printf("Server started. Ready to receive data\n");
  while (1) {
    bzero(buf, 512);
    fflush(stdout);
    if ((recv_len = recvfrom(s, buf, 512, 0, (struct sockaddr *)&si_other,
                             &slen)) == -1) {
      die("recvfrom()");
    }
    printf("Received packet from %s:%d\n", inet_ntoa(si_other.sin_addr),
           ntohs(si_other.sin_port));
    retourCode = ExecuterCommande(buf, resultat);
    if (retourCode != 200) {
      printf("StartServerUDP - Commande retourne une erreur : %c\n ",
             retourCode);
    }
    if (sendto(s, resultat, strlen(resultat), 0, (struct sockaddr *)&si_other,
               slen) == -1) {
      die("sendto()");
    }
    memset(resultat, 0, sizeof(resultat));
  }
  return 200;
}


x86 assembly (clang, -O0):
<StartServerUDP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0xc,-0x2c(%rbp)
movl   $0x1,-0x34(%rbp)
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
mov    0x2d76(%rip),%rax
mov    (%rax),%edx
call   1130 <socket@plt>
mov    %eax,-0x24(%rbp)
cmp    $0xffffffff,%eax
jne    1261 <StartServerUDP+0x51>
lea    0xda4(%rip),%rdi
call   10f0 <die@plt>
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d70(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
lea    -0x440(%rbp),%rdx
lea    0xd7c(%rip),%rdi
lea    0xd8a(%rip),%rsi
call   1120 <LireParametre@plt>
cmp    $0xc8,%eax
je     12be <StartServerUDP+0xae>
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1f4,%eax
add    $0x460,%rsp
pop    %rbp
ret
lea    -0x440(%rbp),%rdi
call   1110 <atoi@plt>
mov    %eax,%edi
call   1050 <htons@plt>
mov    %eax,-0x10(%rbp)
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,-0xc(%rbp)
mov    -0x24(%rbp),%edi
lea    -0x10(%rbp),%rsi
mov    $0xc,%edx
call   10e0 <bind@plt>
cmp    $0xffffffff,%eax
jne    130b <StartServerUDP+0xfb>
lea    0xd59(%rip),%rdi
call   10f0 <die@plt>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x240(%rbp),%rdi
mov    $0x200,%esi
call   1100 <bzero@plt>
mov    0x2c97(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    -0x24(%rbp),%edi
lea    -0x240(%rbp),%rsi
lea    -0x20(%rbp),%r8
mov    $0x200,%edx
xor    %ecx,%ecx
lea    -0x2c(%rbp),%r9
call   10b0 <recvfrom@plt>
mov    %eax,-0x30(%rbp)
cmp    $0xffffffff,%eax
jne    136e <StartServerUDP+0x15e>
lea    0xd22(%rip),%rdi
call   10f0 <die@plt>
mov    -0x1c(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,-0x448(%rbp)
mov    -0x20(%rbp),%edi
call   10d0 <ntohs@plt>
mov    -0x448(%rbp),%rsi
mov    %eax,%edx
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x240(%rbp),%rdi
lea    -0x440(%rbp),%rsi
call   10c0 <ExecuterCommande@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0xc8,-0x28(%rbp)
je     13d0 <StartServerUDP+0x1c0>
mov    -0x28(%rbp),%esi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x454(%rbp)
lea    -0x440(%rbp),%rax
mov    %rax,-0x450(%rbp)
lea    -0x440(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x454(%rbp),%edi
mov    -0x450(%rbp),%rsi
mov    %eax,%edx
lea    -0x20(%rbp),%r8
mov    -0x2c(%rbp),%r9d
xor    %ecx,%ecx
call   1090 <sendto@plt>
cmp    $0xffffffff,%eax
jne    1426 <StartServerUDP+0x216>
lea    0xcc6(%rip),%rdi
call   10f0 <die@plt>
lea    -0x440(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1080 <memset@plt>
jmp    1319 <StartServerUDP+0x109>

x86 assembly (clang, -O2):
<StartServerUDP>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
movl   $0xc,0xc(%rsp)
mov    0x2da8(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d8f(%rip),%rax
mov    (%rax),%esi
mov    0x2d66(%rip),%rax
mov    (%rax),%edx
call   1140 <socket@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    126c <StartServerUDP+0x4c>
lea    0xd99(%rip),%rdi
call   1100 <die@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1090 <memset@plt>
mov    (%rbx),%eax
mov    %eax,0x18(%rsp)
lea    0xd7d(%rip),%rdi
lea    0xd8b(%rip),%rsi
lea    0x30(%rsp),%rdx
call   1130 <LireParametre@plt>
cmp    $0xc8,%eax
jne    1401 <StartServerUDP+0x1e1>
lea    0x30(%rsp),%rdi
call   1120 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %eax,0x10(%rsp)
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   1080 <htonl@plt>
mov    %eax,0x14(%rsp)
lea    0x10(%rsp),%rsi
mov    %ebp,%edi
mov    $0xc,%edx
call   10f0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12ef <StartServerUDP+0xcf>
lea    0xd37(%rip),%rdi
call   1100 <die@plt>
lea    0xd95(%rip),%rdi
call   1030 <puts@plt>
lea    0x230(%rsp),%rbx
lea    0x20(%rsp),%r14
lea    0xd22(%rip),%r13
lea    0x30(%rsp),%r12
jmp    1356 <StartServerUDP+0x136>
cs nopw 0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1050 <strlen@plt>
mov    0xc(%rsp),%r9d
mov    %ebp,%edi
mov    %r12,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
mov    %r14,%r8
call   10a0 <sendto@plt>
cmp    $0xffffffff,%eax
je     13f0 <StartServerUDP+0x1d0>
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1090 <memset@plt>
mov    %rbx,%rdi
mov    $0x200,%esi
call   1110 <bzero@plt>
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x200,%edx
xor    %ecx,%ecx
mov    %r14,%r8
lea    0xc(%rsp),%r9
call   10c0 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    139b <StartServerUDP+0x17b>
lea    0xc90(%rip),%rdi
call   1100 <die@plt>
mov    0x24(%rsp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%r15
mov    0x20(%rsp),%edi
call   10e0 <ntohs@plt>
mov    %r13,%rdi
mov    %r15,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10d0 <ExecuterCommande@plt>
cmp    $0xc8,%eax
je     1320 <StartServerUDP+0x100>
lea    0xc71(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1320 <StartServerUDP+0x100>
nopw   0x0(%rax,%rax,1)
lea    0xc8b(%rip),%rdi
call   1100 <die@plt>
jmp    1347 <StartServerUDP+0x127>
lea    0xca9(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1f4,%eax
add    $0x438,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [21 x i8] c"switchmanager.config\00"
@.str.2 = [5 x i8] c"Port\00"
@.str.3 = [62 x i8] c"StartServerUDP - Erreur de recuperation du port de connexion\0A\00"
@INADDR_ANY = global i32 0
@.str.4 = [5 x i8] c"bind\00"
@.str.5 = [39 x i8] c"Server started. Ready to receive data\0A\00"
@stdout = global i32 0
@.str.6 = [11 x i8] c"recvfrom()\00"
@.str.7 = [28 x i8] c"Received packet from %s:%d\0A\00"
@.str.8 = [53 x i8] c"StartServerUDP - Commande retourne une erreur : %c\0A \00"
@.str.9 = [9 x i8] c"sendto()\00"
define i32 @StartServerUDP() {
%1 = alloca %struct.sockaddr_in
%2 = alloca %struct.sockaddr_in
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
store i32 12, i32* %5
store i32 1, i32* %7
%10 = load i32, i32* @AF_INET
%11 = load i32, i32* @SOCK_DGRAM
%12 = load i32, i32* @IPPROTO_UDP
%13 = call i32 @socket(i32 %10, i32 %11, i32 %12)
store i32 %13, i32* %3
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %15, %0
%18 = bitcast %struct.sockaddr_in* %1 to i8*
%19 = call i32 @memset(i8* %18, i32 0, i32 12)
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i32 0, i32 2
store i32 %20, i32* %21
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%23 = call i32 @LireParametre(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = icmp ne i32 %23, 200
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
ret i32 500
27: ; preds = %17
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%29 = call i32 @atoi(i8* %28)
%30 = call i32 @htons(i32 %29)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i32 0, i32 0
store i32 %30, i32* %31
%32 = load i32, i32* @INADDR_ANY
%33 = call i32 @htonl(i32 %32)
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %34, i32 0, i32 0
store i32 %33, i32* %35
%36 = load i32, i32* %3
%37 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%38 = call i32 @bind(i32 %36, %struct.sockaddr* %37, i32 12)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %27
%41 = call i32 @die(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %27
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %42, %84
%45 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%46 = call i32 @bzero(i8* %45, i32 512)
%47 = load i32, i32* @stdout
%48 = call i32 @fflush(i32 %47)
%49 = load i32, i32* %3
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%51 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%52 = call i32 @recvfrom(i32 %49, i8* %50, i32 512, i32 0, %struct.sockaddr* %51, i32* %5)
store i32 %52, i32* %6
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %56
54: ; preds = %44
%55 = call i32 @die(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %56
56: ; preds = %54, %44
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 1
%58 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %57, i32 0, i32 0
%59 = load i32, i32* %58
%60 = call i8* @inet_ntoa(i32 %59)
%61 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 0
%62 = load i32, i32* %61
%63 = call i32 @ntohs(i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* %60, i32 %63)
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%66 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%67 = call i32 @ExecuterCommande(i8* %65, i8* %66)
store i32 %67, i32* %4
%68 = load i32, i32* %4
%69 = icmp ne i32 %68, 200
br i1 %69, label %70, label %73
70: ; preds = %56
%71 = load i32, i32* %4
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %70, %56
%74 = load i32, i32* %3
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%77 = call i32 @strlen(i8* %76)
%78 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%79 = load i32, i32* %5
%80 = call i32 @sendto(i32 %74, i8* %75, i32 %77, i32 0, %struct.sockaddr* %78, i32 %79)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %84
82: ; preds = %73
%83 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %84
84: ; preds = %82, %73
%85 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%86 = call i32 @memset(i8* %85, i32 0, i32 512)
br label %44
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [21 x i8] c"switchmanager.config\00"
@.str.2 = [5 x i8] c"Port\00"
@INADDR_ANY = global i32 0
@.str.4 = [5 x i8] c"bind\00"
@stdout = global i32 0
@.str.6 = [11 x i8] c"recvfrom()\00"
@.str.7 = [28 x i8] c"Received packet from %s:%d\0A\00"
@.str.8 = [53 x i8] c"StartServerUDP - Commande retourne une erreur : %c\0A \00"
@.str.9 = [9 x i8] c"sendto()\00"
@str = [38 x i8] c"Server started. Ready to receive data\00"
@str.10 = [61 x i8] c"StartServerUDP - Erreur de recuperation du port de connexion\00"
define i32 @StartServerUDP() {
%1 = alloca %struct.sockaddr_in
%2 = alloca %struct.sockaddr_in
%3 = alloca i32
%4 = alloca [512 x i8]
%5 = alloca [512 x i8]
%6 = bitcast %struct.sockaddr_in* %1 to i8*
%7 = bitcast %struct.sockaddr_in* %2 to i8*
%8 = bitcast i32* %3 to i8*
store i32 12, i32* %3
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_DGRAM
%13 = load i32, i32* @IPPROTO_UDP
%14 = tail call i32 @socket(i32 %11, i32 %12, i32 %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = tail call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %16, %0
%19 = call i32 @memset(i8* %6, i32 0, i32 12)
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %20, i32* %21
%22 = call i32 @LireParametre(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %10)
%23 = icmp eq i32 %22, 200
br i1 %23, label %26, label %24
24: ; preds = %18
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.10, i64 0, i64 0))
ret i32 500
26: ; preds = %18
%27 = call i32 @atoi(i8* %10)
%28 = call i32 @htons(i32 %27)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0
store i32 %28, i32* %29
%30 = load i32, i32* @INADDR_ANY
%31 = call i32 @htonl(i32 %30)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1, i32 0
store i32 %31, i32* %32
%33 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%34 = call i32 @bind(i32 %14, %struct.sockaddr* %33, i32 12)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %26
%37 = call i32 @die(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %38
38: ; preds = %36, %26
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%40 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 1, i32 0
%42 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 0
br label %43
43: ; preds = %68, %38
%44 = call i32 @bzero(i8* %9, i32 512)
%45 = load i32, i32* @stdout
%46 = call i32 @fflush(i32 %45)
%47 = call i32 @recvfrom(i32 %14, i8* %9, i32 512, i32 0, %struct.sockaddr* %40, i32* %3)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @die(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %51
51: ; preds = %49, %43
%52 = load i32, i32* %41
%53 = call i8* @inet_ntoa(i32 %52)
%54 = load i32, i32* %42
%55 = call i32 @ntohs(i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* %53, i32 %55)
%57 = call i32 @ExecuterCommande(i8* %9, i8* %10)
%58 = icmp eq i32 %57, 200
br i1 %58, label %61, label %59
59: ; preds = %51
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %57)
br label %61
61: ; preds = %59, %51
%62 = call i32 @strlen(i8* %10)
%63 = load i32, i32* %3
%64 = call i32 @sendto(i32 %14, i8* %10, i32 %62, i32 0, %struct.sockaddr* %40, i32 %63)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %68
66: ; preds = %61
%67 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %68
68: ; preds = %66, %61
%69 = call i32 @memset(i8* %10, i32 0, i32 512)
br label %43
}