#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 socklen_t;
typedef int /*<<< orphan*/ serv_addr;
typedef int /*<<< orphan*/ cli_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
double atof(char *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ error(char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ listen(int, int);
int /*<<< orphan*/ printf(char *, double);
int read(int, char *, int);
double shubert(double, double);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int write(int, char *, int);
int main() {
  double x1, x2, y, min = 0;
  int sockfd, newsockfd, portno;
  socklen_t clilen;
  char buffer[256];
  struct sockaddr_in serv_addr, cli_addr;
  int n;
  for (x1 = -2; x1 < 0; x1 += 0.5) {
    for (x2 = -2; x2 <= 2; x2 += 0.5) {
      y = shubert(x1, x2);
      if (y < min)
        min = y;
    }
  }
  sockfd = socket(AF_INET, SOCK_STREAM, 0);
  if (sockfd < 0)
    error("ERROR opening socket");
  bzero((char *)&serv_addr, sizeof(serv_addr));
  portno = 8080;
  serv_addr.sin_family = AF_INET;
  serv_addr.sin_addr.s_addr = INADDR_ANY;
  serv_addr.sin_port = htons(portno);
  if (bind(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0)
    error("ERROR on binding");
  listen(sockfd, 5);
  clilen = sizeof(cli_addr);
  newsockfd = accept(sockfd, (struct sockaddr *)&cli_addr, &clilen);
  if (newsockfd < 0)
    error("ERROR on accept");
  bzero(buffer, 256);
  n = read(newsockfd, buffer, 255);
  if (atof(buffer) < min)
    min = atof(buffer);
  if (n < 0)
    error("ERROR reading from socket");
  printf("min = %.2f ", min);
  n = write(newsockfd, "I got your message", 18);
  if (n < 0)
    error("ERROR writing to socket");
  close(newsockfd);
  close(sockfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x170,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe0e(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    128f <main+0xbf>
movsd  0xdf3(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xdee(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     1273 <main+0xa3>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   10e0 <shubert@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1257 <main+0x87>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    125c <main+0x8c>
movsd  0xdac(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1212 <main+0x42>
jmp    1278 <main+0xa8>
movsd  0xd90(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11f7 <main+0x27>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
mov    0x2d31(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    12c1 <main+0xf1>
lea    0xd5c(%rip),%rdi
call   10b0 <error@plt>
lea    -0x150(%rbp),%rdi
mov    $0xc,%esi
call   10c0 <bzero@plt>
movl   $0x1f90,-0x34(%rbp)
mov    0x2d08(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x148(%rbp)
mov    0x2cf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14c(%rbp)
mov    -0x34(%rbp),%edi
call   1050 <htons@plt>
mov    %eax,-0x150(%rbp)
mov    -0x2c(%rbp),%edi
lea    -0x150(%rbp),%rsi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0x0,%rax
jge    132f <main+0x15f>
lea    0xd03(%rip),%rdi
call   10b0 <error@plt>
mov    -0x2c(%rbp),%edi
mov    $0x5,%esi
call   1090 <listen@plt>
movl   $0xc,-0x38(%rbp)
mov    -0x2c(%rbp),%edi
lea    -0x160(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   10d0 <accept@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jge    136f <main+0x19f>
lea    0xcd4(%rip),%rdi
call   10b0 <error@plt>
lea    -0x140(%rbp),%rdi
mov    $0x100,%esi
call   10c0 <bzero@plt>
mov    -0x30(%rbp),%edi
lea    -0x140(%rbp),%rsi
mov    $0xff,%edx
call   1080 <read@plt>
mov    %eax,-0x164(%rbp)
lea    -0x140(%rbp),%rdi
call   1030 <atof@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    13c9 <main+0x1f9>
lea    -0x140(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x164(%rbp)
jge    13e2 <main+0x212>
lea    0xc71(%rip),%rdi
call   10b0 <error@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xc7a(%rip),%rdi
call   1060 <printf@plt>
mov    -0x30(%rbp),%edi
lea    0xc77(%rip),%rsi
mov    $0x12,%edx
call   1040 <write@plt>
mov    %eax,-0x164(%rbp)
cmpl   $0x0,-0x164(%rbp)
jge    1426 <main+0x256>
lea    0xc66(%rip),%rdi
call   10b0 <error@plt>
mov    -0x30(%rbp),%edi
call   1070 <close@plt>
mov    -0x2c(%rbp),%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x170,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x148,%rsp
movsd  0xe1b(%rip),%xmm0
xorpd  %xmm1,%xmm1
nopl   0x0(%rax)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xdf6(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xddf(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xdc8(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xdb1(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
xorps  %xmm1,%xmm1
movsd  0x10(%rsp),%xmm0
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xd80(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xd69(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xd52(%rip),%xmm1
call   10e0 <shubert@plt>
minsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xd3b(%rip),%xmm1
call   10e0 <shubert@plt>
movapd %xmm0,%xmm1
minsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm0
addsd  0xd06(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
ucomisd 0x10(%rsp),%xmm0
movsd  0x10(%rsp),%xmm0
ja     11f0 <main+0x20>
movsd  %xmm1,0x8(%rsp)
mov    0x2ca5(%rip),%rbx
mov    (%rbx),%edi
mov    0x2c84(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,%r14d
test   %eax,%eax
jns    1368 <main+0x198>
lea    0xce5(%rip),%rdi
call   10b0 <error@plt>
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    $0xc,%esi
call   10c0 <bzero@plt>
mov    (%rbx),%eax
mov    %eax,0x28(%rsp)
mov    0x2c59(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    $0x1f90,%edi
call   1050 <htons@plt>
mov    %eax,0x20(%rsp)
mov    %r14d,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   10a0 <bind@plt>
test   %rax,%rax
jns    13bc <main+0x1ec>
lea    0xca6(%rip),%rdi
call   10b0 <error@plt>
mov    %r14d,%edi
mov    $0x5,%esi
call   1090 <listen@plt>
movl   $0xc,0x1c(%rsp)
lea    0x30(%rsp),%rsi
lea    0x1c(%rsp),%rdx
mov    %r14d,%edi
call   10d0 <accept@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    13f5 <main+0x225>
lea    0xc7e(%rip),%rdi
call   10b0 <error@plt>
lea    0x40(%rsp),%r15
mov    %r15,%rdi
mov    $0x100,%esi
call   10c0 <bzero@plt>
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0xff,%edx
call   1080 <read@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1030 <atof@plt>
minsd  0x8(%rsp),%xmm0
test   %ebx,%ebx
jns    1442 <main+0x272>
lea    0xc4d(%rip),%rdi
movsd  %xmm0,0x10(%rsp)
call   10b0 <error@plt>
movsd  0x10(%rsp),%xmm0
lea    0xc4f(%rip),%rdi
call   1060 <printf@plt>
lea    0xc4f(%rip),%rsi
mov    %ebp,%edi
mov    $0x12,%edx
call   1040 <write@plt>
test   %eax,%eax
jns    1471 <main+0x2a1>
lea    0xc4b(%rip),%rdi
call   10b0 <error@plt>
mov    %ebp,%edi
call   1070 <close@plt>
mov    %r14d,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x148,%rsp
pop    %rbx
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_STREAM = global i32 0
@.str = [21 x i8] c"ERROR opening socket\00"
@INADDR_ANY = global i32 0
@.str.1 = [17 x i8] c"ERROR on binding\00"
@.str.2 = [16 x i8] c"ERROR on accept\00"
@.str.3 = [26 x i8] c"ERROR reading from socket\00"
@.str.4 = [12 x i8] c"min = %.2f \00"
@.str.5 = [19 x i8] c"I got your message\00"
@.str.6 = [24 x i8] c"ERROR writing to socket\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [256 x i8]
%11 = alloca %struct.sockaddr_in
%12 = alloca %struct.sockaddr_in
%13 = alloca i32
store i32 0, i32* %1
store double 0.000000e+00, double* %5
store double -2.000000e+00, double* %2
br label %14
14: ; preds = %35, %0
%15 = load double, double* %2
%16 = fcmp olt double %15, 0.000000e+00
br i1 %16, label %17, label %38
17: ; preds = %14
store double -2.000000e+00, double* %3
br label %18
18: ; preds = %31, %17
%19 = load double, double* %3
%20 = fcmp ole double %19, 2.000000e+00
br i1 %20, label %21, label %34
21: ; preds = %18
%22 = load double, double* %2
%23 = load double, double* %3
%24 = call double @shubert(double %22, double %23)
store double %24, double* %4
%25 = load double, double* %4
%26 = load double, double* %5
%27 = fcmp olt double %25, %26
br i1 %27, label %28, label %30
28: ; preds = %21
%29 = load double, double* %4
store double %29, double* %5
br label %30
30: ; preds = %28, %21
br label %31
31: ; preds = %30
%32 = load double, double* %3
%33 = fadd double %32, 5.000000e-01
store double %33, double* %3
br label %18
34: ; preds = %18
br label %35
35: ; preds = %34
%36 = load double, double* %2
%37 = fadd double %36, 5.000000e-01
store double %37, double* %2
br label %14
38: ; preds = %14
%39 = load i32, i32* @AF_INET
%40 = load i32, i32* @SOCK_STREAM
%41 = call i32 @socket(i32 %39, i32 %40, i32 0)
store i32 %41, i32* %6
%42 = load i32, i32* %6
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %38
%45 = call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %46
46: ; preds = %44, %38
%47 = bitcast %struct.sockaddr_in* %11 to i8*
%48 = call i32 @bzero(i8* %47, i32 12)
store i32 8080, i32* %8
%49 = load i32, i32* @AF_INET
%50 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %49, i32* %50
%51 = load i32, i32* @INADDR_ANY
%52 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
%53 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %52, i32 0, i32 0
store i32 %51, i32* %53
%54 = load i32, i32* %8
%55 = call i32 @htons(i32 %54)
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
store i32 %55, i32* %56
%57 = load i32, i32* %6
%58 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%59 = call i64 @bind(i32 %57, %struct.sockaddr* %58, i32 12)
%60 = icmp slt i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %46
%62 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %63
63: ; preds = %61, %46
%64 = load i32, i32* %6
%65 = call i32 @listen(i32 %64, i32 5)
store i32 12, i32* %9
%66 = load i32, i32* %6
%67 = bitcast %struct.sockaddr_in* %12 to %struct.sockaddr*
%68 = call i32 @accept(i32 %66, %struct.sockaddr* %67, i32* %9)
store i32 %68, i32* %7
%69 = load i32, i32* %7
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %63
%72 = call i32 @error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %73
73: ; preds = %71, %63
%74 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%75 = call i32 @bzero(i8* %74, i32 256)
%76 = load i32, i32* %7
%77 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%78 = call i32 @read(i32 %76, i8* %77, i32 255)
store i32 %78, i32* %13
%79 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%80 = call double @atof(i8* %79)
%81 = load double, double* %5
%82 = fcmp olt double %80, %81
br i1 %82, label %83, label %86
83: ; preds = %73
%84 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%85 = call double @atof(i8* %84)
store double %85, double* %5
br label %86
86: ; preds = %83, %73
%87 = load i32, i32* %13
%88 = icmp slt i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %91
91: ; preds = %89, %86
%92 = load double, double* %5
%93 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double %92)
%94 = load i32, i32* %7
%95 = call i32 @write(i32 %94, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 18)
store i32 %95, i32* %13
%96 = load i32, i32* %13
%97 = icmp slt i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %91
%99 = call i32 @error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %100
100: ; preds = %98, %91
%101 = load i32, i32* %7
%102 = call i32 @close(i32 %101)
%103 = load i32, i32* %6
%104 = call i32 @close(i32 %103)
ret i32 0
}

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_STREAM = global i32 0
@.str = [21 x i8] c"ERROR opening socket\00"
@INADDR_ANY = global i32 0
@.str.1 = [17 x i8] c"ERROR on binding\00"
@.str.2 = [16 x i8] c"ERROR on accept\00"
@.str.3 = [26 x i8] c"ERROR reading from socket\00"
@.str.4 = [12 x i8] c"min = %.2f \00"
@.str.5 = [19 x i8] c"I got your message\00"
@.str.6 = [24 x i8] c"ERROR writing to socket\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [256 x i8]
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = bitcast i32* %1 to i8*
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%7 = bitcast %struct.sockaddr_in* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
br label %9
9: ; preds = %0, %9
%10 = phi double [ -2.000000e+00, %0 ], [ %39, %9 ]
%11 = phi double [ 0.000000e+00, %0 ], [ %38, %9 ]
%12 = tail call double @shubert(double %10, double -2.000000e+00)
%13 = fcmp olt double %12, %11
%14 = select i1 %13, double %12, double %11
%15 = tail call double @shubert(double %10, double -1.500000e+00)
%16 = fcmp olt double %15, %14
%17 = select i1 %16, double %15, double %14
%18 = tail call double @shubert(double %10, double -1.000000e+00)
%19 = fcmp olt double %18, %17
%20 = select i1 %19, double %18, double %17
%21 = tail call double @shubert(double %10, double -5.000000e-01)
%22 = fcmp olt double %21, %20
%23 = select i1 %22, double %21, double %20
%24 = tail call double @shubert(double %10, double 0.000000e+00)
%25 = fcmp olt double %24, %23
%26 = select i1 %25, double %24, double %23
%27 = tail call double @shubert(double %10, double 5.000000e-01)
%28 = fcmp olt double %27, %26
%29 = select i1 %28, double %27, double %26
%30 = tail call double @shubert(double %10, double 1.000000e+00)
%31 = fcmp olt double %30, %29
%32 = select i1 %31, double %30, double %29
%33 = tail call double @shubert(double %10, double 1.500000e+00)
%34 = fcmp olt double %33, %32
%35 = select i1 %34, double %33, double %32
%36 = tail call double @shubert(double %10, double 2.000000e+00)
%37 = fcmp olt double %36, %35
%38 = select i1 %37, double %36, double %35
%39 = fadd double %10, 5.000000e-01
%40 = fcmp olt double %39, 0.000000e+00
br i1 %40, label %9, label %41
41: ; preds = %9
%42 = load i32, i32* @AF_INET
%43 = load i32, i32* @SOCK_STREAM
%44 = tail call i32 @socket(i32 %42, i32 %43, i32 0)
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = tail call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %48
48: ; preds = %46, %41
%49 = call i32 @bzero(i8* %7, i32 12)
%50 = load i32, i32* @AF_INET
%51 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %50, i32* %51
%52 = load i32, i32* @INADDR_ANY
%53 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
store i32 %52, i32* %53
%54 = tail call i32 @htons(i32 8080)
%55 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %54, i32* %55
%56 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%57 = call i64 @bind(i32 %44, %struct.sockaddr* %56, i32 12)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %48
%60 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %61
61: ; preds = %59, %48
%62 = call i32 @listen(i32 %44, i32 5)
store i32 12, i32* %1
%63 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%64 = call i32 @accept(i32 %44, %struct.sockaddr* %63, i32* %1)
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %61
%67 = call i32 @error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %68
68: ; preds = %66, %61
%69 = call i32 @bzero(i8* %6, i32 256)
%70 = call i32 @read(i32 %64, i8* %6, i32 255)
%71 = call double @atof(i8* %6)
%72 = fcmp olt double %71, %38
%73 = select i1 %72, double %71, double %38
%74 = icmp slt i32 %70, 0
br i1 %74, label %75, label %77
75: ; preds = %68
%76 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %77
77: ; preds = %75, %68
%78 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double %73)
%79 = call i32 @write(i32 %64, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 18)
%80 = icmp slt i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %77
%82 = call i32 @error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %83
83: ; preds = %81, %77
%84 = call i32 @close(i32 %64)
%85 = call i32 @close(i32 %44)
ret i32 0
}