#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 */

/* Variables and functions */
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ function1(char *, char *);
int /*<<< orphan*/ getByte(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanna(char *);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  int w;
  printf("********************************* OCS v 0.2 "
         "**********************************\n");
  printf("****                                                                 "
         "     ****\n");
  printf("****                           coded by OverIP                       "
         "     ****\n");
  printf("****                           overip@gmail.com                      "
         "     ****\n");
  printf("****                           under GPL License                     "
         "     ****\n");
  printf("****                                                                 "
         "     ****\n");
  printf("****             usage: ./ocs xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy        "
         "     ****\n");
  printf("****                                                                 "
         "     ****\n");
  printf("****                   xxx.xxx.xxx.xxx = range start IP              "
         "     ****\n");
  printf("****                    yyy.yyy.yyy.yyy = range end IP               "
         "     ****\n");
  printf("****                                                                 "
         "     ****\n");
  printf("*********************************************************************"
         "*********\n");
  if (argc != 3) {
    printf("use: %s IP IP\n", argv[0]);
    exit(-1);
  }
  for (w = 1; w <= 5; w++)
    if (atoi(getByte(argv[1], w)) > 255 || atoi(getByte(argv[2], w)) > 255) {
      printf("use: ./OCS IP IP\n");
      exit(-1);
    }
  for (w = 1; w <= 5; w++)
    if (atoi(getByte(argv[1], w)) < atoi(getByte(argv[2], w))) {
      function1(argv[1], argv[2]);
      return 0;
    } else if (atoi(getByte(argv[1], w)) > atoi(getByte(argv[2], w))) {
      printf("use: %s IP IP\n", argv[0]);
      return 0;
    }
  printf("Same IPs \n");
  fflush(stdout);
  scanna(argv[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfaf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfe3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x1025(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x1059(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
je     1257 <main+0xe7>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0x108a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jg     12d7 <main+0x167>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
cmp    $0xff,%eax
jg     12ac <main+0x13c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
cmp    $0xff,%eax
jle    12c4 <main+0x154>
lea    0x102c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
jmp    12c9 <main+0x159>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    125e <main+0xee>
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jg     13be <main+0x24e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    %ecx,%eax
jge    1347 <main+0x1d7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1030 <function1@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <main+0x27e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getByte@plt>
mov    %eax,%edi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
cmp    %ecx,%eax
jle    13a6 <main+0x236>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ee <main+0x27e>
jmp    13ab <main+0x23b>
jmp    13b0 <main+0x240>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12de <main+0x16e>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2c0d(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <scanna@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r14d
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
lea    0x109b(%rip),%rbp
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0x107b(%rip),%rdi
call   1030 <puts@plt>
cmp    $0x3,%r14d
jne    15bc <main+0x43c>
mov    0x8(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x10(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0x100,%eax
jge    15a6 <main+0x426>
mov    0x8(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x10(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x8(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x10(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x8(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x10(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x8(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x10(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    $0xff,%eax
jg     15a6 <main+0x426>
mov    0x8(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jge    139a <main+0x21a>
mov    0x8(%rbx),%rdi
mov    0x10(%rbx),%rsi
call   1040 <function1@plt>
jmp    13db <main+0x25b>
mov    0x8(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x1,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jle    13e2 <main+0x262>
mov    (%rbx),%rsi
lea    0xc2c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x8(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jl     138b <main+0x20b>
mov    0x8(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x2,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jg     13ca <main+0x24a>
mov    0x8(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jl     138b <main+0x20b>
mov    0x8(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x3,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jg     13ca <main+0x24a>
mov    0x8(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jl     138b <main+0x20b>
mov    0x8(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x4,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jg     13ca <main+0x24a>
mov    0x8(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jl     138b <main+0x20b>
mov    0x8(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    $0x5,%esi
call   1050 <getByte@plt>
mov    %eax,%edi
call   1090 <atoi@plt>
cmp    %eax,%ebp
jg     13ca <main+0x24a>
lea    0xd51(%rip),%rdi
call   1030 <puts@plt>
mov    0x2a4f(%rip),%rax
mov    (%rax),%edi
call   1080 <fflush@plt>
mov    0x8(%rbx),%rdi
call   1070 <scanna@plt>
jmp    13db <main+0x25b>
lea    0xd33(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    (%rbx),%rsi
lea    0xa3a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [80 x i8] c"********************************* OCS v 0.2 **********************************\0A\00"
@.str.1 = [80 x i8] c"**** ****\0A\00"
@.str.2 = [80 x i8] c"**** coded by OverIP ****\0A\00"
@.str.3 = [80 x i8] c"**** overip@gmail.com ****\0A\00"
@.str.4 = [80 x i8] c"**** under GPL License ****\0A\00"
@.str.5 = [80 x i8] c"**** usage: ./ocs xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy ****\0A\00"
@.str.6 = [80 x i8] c"**** xxx.xxx.xxx.xxx = range start IP ****\0A\00"
@.str.7 = [80 x i8] c"**** yyy.yyy.yyy.yyy = range end IP ****\0A\00"
@.str.8 = [80 x i8] c"******************************************************************************\0A\00"
@.str.9 = [15 x i8] c"use: %s IP IP\0A\00"
@.str.10 = [18 x i8] c"use: ./OCS IP IP\0A\00"
@.str.11 = [11 x i8] c"Same IPs \0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* %4
%20 = icmp ne i32 %19, 3
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %24)
%26 = call i32 @exit(i32 -1)
unreachable
27: ; preds = %2
store i32 1, i32* %6
br label %28
28: ; preds = %51, %27
%29 = load i32, i32* %6
%30 = icmp sle i32 %29, 5
br i1 %30, label %31, label %54
31: ; preds = %28
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 1
%34 = load i8*, i8** %33
%35 = load i32, i32* %6
%36 = call i32 @getByte(i8* %34, i32 %35)
%37 = call i32 @atoi(i32 %36)
%38 = icmp sgt i32 %37, 255
br i1 %38, label %47, label %39
39: ; preds = %31
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = load i32, i32* %6
%44 = call i32 @getByte(i8* %42, i32 %43)
%45 = call i32 @atoi(i32 %44)
%46 = icmp sgt i32 %45, 255
br i1 %46, label %47, label %50
47: ; preds = %39, %31
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%49 = call i32 @exit(i32 -1)
unreachable
50: ; preds = %39
br label %51
51: ; preds = %50
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %28
54: ; preds = %28
store i32 1, i32* %6
br label %55
55: ; preds = %101, %54
%56 = load i32, i32* %6
%57 = icmp sle i32 %56, 5
br i1 %57, label %58, label %104
58: ; preds = %55
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = load i32, i32* %6
%63 = call i32 @getByte(i8* %61, i32 %62)
%64 = call i32 @atoi(i32 %63)
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 2
%67 = load i8*, i8** %66
%68 = load i32, i32* %6
%69 = call i32 @getByte(i8* %67, i32 %68)
%70 = call i32 @atoi(i32 %69)
%71 = icmp slt i32 %64, %70
br i1 %71, label %72, label %80
72: ; preds = %58
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 1
%75 = load i8*, i8** %74
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 2
%78 = load i8*, i8** %77
%79 = call i32 @function1(i8* %75, i8* %78)
store i32 0, i32* %3
br label %112
80: ; preds = %58
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 1
%83 = load i8*, i8** %82
%84 = load i32, i32* %6
%85 = call i32 @getByte(i8* %83, i32 %84)
%86 = call i32 @atoi(i32 %85)
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 2
%89 = load i8*, i8** %88
%90 = load i32, i32* %6
%91 = call i32 @getByte(i8* %89, i32 %90)
%92 = call i32 @atoi(i32 %91)
%93 = icmp sgt i32 %86, %92
br i1 %93, label %94, label %99
94: ; preds = %80
%95 = load i8**, i8*** %5
%96 = getelementptr inbounds i8*, i8** %95, i64 0
%97 = load i8*, i8** %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %97)
store i32 0, i32* %3
br label %112
99: ; preds = %80
br label %100
100: ; preds = %99
br label %101
101: ; preds = %100
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 1
store i32 %103, i32* %6
br label %55
104: ; preds = %55
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%106 = load i32, i32* @stdout
%107 = call i32 @fflush(i32 %106)
%108 = load i8**, i8*** %5
%109 = getelementptr inbounds i8*, i8** %108, i64 1
%110 = load i8*, i8** %109
%111 = call i32 @scanna(i8* %110)
store i32 0, i32* %3
br label %112
112: ; preds = %104, %94, %72
%113 = load i32, i32* %3
ret i32 %113
}

LLVM IR (-O2):
@.str.9 = [15 x i8] c"use: %s IP IP\0A\00"
@stdout = global i32 0
@str = [79 x i8] c"********************************* OCS v 0.2 **********************************\00"
@str.13 = [79 x i8] c"**** coded by OverIP ****\00"
@str.14 = [79 x i8] c"**** overip@gmail.com ****\00"
@str.15 = [79 x i8] c"**** under GPL License ****\00"
@str.17 = [79 x i8] c"**** usage: ./ocs xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy ****\00"
@str.19 = [79 x i8] c"**** xxx.xxx.xxx.xxx = range start IP ****\00"
@str.20 = [79 x i8] c"**** yyy.yyy.yyy.yyy = range end IP ****\00"
@str.21 = [79 x i8] c"**** ****\00"
@str.22 = [79 x i8] c"******************************************************************************\00"
@str.23 = [10 x i8] c"Same IPs \00"
@str.24 = [17 x i8] c"use: ./OCS IP IP\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.22, i64 0, i64 0))
%15 = icmp eq i32 %0, 3
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = load i8*, i8** %17
%20 = tail call i32 @getByte(i8* %19, i32 1)
%21 = tail call i32 @atoi(i32 %20)
%22 = icmp sgt i32 %21, 255
br i1 %22, label %80, label %75
23: ; preds = %2
%24 = load i8*, i8** %1
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %24)
%26 = tail call i32 @exit(i32 -1)
unreachable
27: ; preds = %75
%28 = load i8*, i8** %17
%29 = tail call i32 @getByte(i8* %28, i32 2)
%30 = tail call i32 @atoi(i32 %29)
%31 = icmp sgt i32 %30, 255
br i1 %31, label %80, label %32
32: ; preds = %27
%33 = load i8*, i8** %18
%34 = tail call i32 @getByte(i8* %33, i32 2)
%35 = tail call i32 @atoi(i32 %34)
%36 = icmp sgt i32 %35, 255
br i1 %36, label %80, label %37
37: ; preds = %32
%38 = load i8*, i8** %17
%39 = tail call i32 @getByte(i8* %38, i32 3)
%40 = tail call i32 @atoi(i32 %39)
%41 = icmp sgt i32 %40, 255
br i1 %41, label %80, label %42
42: ; preds = %37
%43 = load i8*, i8** %18
%44 = tail call i32 @getByte(i8* %43, i32 3)
%45 = tail call i32 @atoi(i32 %44)
%46 = icmp sgt i32 %45, 255
br i1 %46, label %80, label %47
47: ; preds = %42
%48 = load i8*, i8** %17
%49 = tail call i32 @getByte(i8* %48, i32 4)
%50 = tail call i32 @atoi(i32 %49)
%51 = icmp sgt i32 %50, 255
br i1 %51, label %80, label %52
52: ; preds = %47
%53 = load i8*, i8** %18
%54 = tail call i32 @getByte(i8* %53, i32 4)
%55 = tail call i32 @atoi(i32 %54)
%56 = icmp sgt i32 %55, 255
br i1 %56, label %80, label %57
57: ; preds = %52
%58 = load i8*, i8** %17
%59 = tail call i32 @getByte(i8* %58, i32 5)
%60 = tail call i32 @atoi(i32 %59)
%61 = icmp sgt i32 %60, 255
br i1 %61, label %80, label %62
62: ; preds = %57
%63 = load i8*, i8** %18
%64 = tail call i32 @getByte(i8* %63, i32 5)
%65 = tail call i32 @atoi(i32 %64)
%66 = icmp sgt i32 %65, 255
br i1 %66, label %80, label %67
67: ; preds = %62
%68 = load i8*, i8** %17
%69 = tail call i32 @getByte(i8* %68, i32 1)
%70 = tail call i32 @atoi(i32 %69)
%71 = load i8*, i8** %18
%72 = tail call i32 @getByte(i8* %71, i32 1)
%73 = tail call i32 @atoi(i32 %72)
%74 = icmp slt i32 %70, %73
br i1 %74, label %153, label %157
75: ; preds = %16
%76 = load i8*, i8** %18
%77 = tail call i32 @getByte(i8* %76, i32 1)
%78 = tail call i32 @atoi(i32 %77)
%79 = icmp sgt i32 %78, 255
br i1 %79, label %80, label %27
80: ; preds = %62, %57, %52, %47, %42, %37, %32, %27, %75, %16
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.24, i64 0, i64 0))
%82 = tail call i32 @exit(i32 -1)
unreachable
83: ; preds = %157
%84 = load i8*, i8** %17
%85 = tail call i32 @getByte(i8* %84, i32 2)
%86 = tail call i32 @atoi(i32 %85)
%87 = load i8*, i8** %18
%88 = tail call i32 @getByte(i8* %87, i32 2)
%89 = tail call i32 @atoi(i32 %88)
%90 = icmp slt i32 %86, %89
br i1 %90, label %153, label %91
91: ; preds = %83
%92 = load i8*, i8** %17
%93 = tail call i32 @getByte(i8* %92, i32 2)
%94 = tail call i32 @atoi(i32 %93)
%95 = load i8*, i8** %18
%96 = tail call i32 @getByte(i8* %95, i32 2)
%97 = tail call i32 @atoi(i32 %96)
%98 = icmp sgt i32 %94, %97
br i1 %98, label %165, label %99
99: ; preds = %91
%100 = load i8*, i8** %17
%101 = tail call i32 @getByte(i8* %100, i32 3)
%102 = tail call i32 @atoi(i32 %101)
%103 = load i8*, i8** %18
%104 = tail call i32 @getByte(i8* %103, i32 3)
%105 = tail call i32 @atoi(i32 %104)
%106 = icmp slt i32 %102, %105
br i1 %106, label %153, label %107
107: ; preds = %99
%108 = load i8*, i8** %17
%109 = tail call i32 @getByte(i8* %108, i32 3)
%110 = tail call i32 @atoi(i32 %109)
%111 = load i8*, i8** %18
%112 = tail call i32 @getByte(i8* %111, i32 3)
%113 = tail call i32 @atoi(i32 %112)
%114 = icmp sgt i32 %110, %113
br i1 %114, label %165, label %115
115: ; preds = %107
%116 = load i8*, i8** %17
%117 = tail call i32 @getByte(i8* %116, i32 4)
%118 = tail call i32 @atoi(i32 %117)
%119 = load i8*, i8** %18
%120 = tail call i32 @getByte(i8* %119, i32 4)
%121 = tail call i32 @atoi(i32 %120)
%122 = icmp slt i32 %118, %121
br i1 %122, label %153, label %123
123: ; preds = %115
%124 = load i8*, i8** %17
%125 = tail call i32 @getByte(i8* %124, i32 4)
%126 = tail call i32 @atoi(i32 %125)
%127 = load i8*, i8** %18
%128 = tail call i32 @getByte(i8* %127, i32 4)
%129 = tail call i32 @atoi(i32 %128)
%130 = icmp sgt i32 %126, %129
br i1 %130, label %165, label %131
131: ; preds = %123
%132 = load i8*, i8** %17
%133 = tail call i32 @getByte(i8* %132, i32 5)
%134 = tail call i32 @atoi(i32 %133)
%135 = load i8*, i8** %18
%136 = tail call i32 @getByte(i8* %135, i32 5)
%137 = tail call i32 @atoi(i32 %136)
%138 = icmp slt i32 %134, %137
br i1 %138, label %153, label %139
139: ; preds = %131
%140 = load i8*, i8** %17
%141 = tail call i32 @getByte(i8* %140, i32 5)
%142 = tail call i32 @atoi(i32 %141)
%143 = load i8*, i8** %18
%144 = tail call i32 @getByte(i8* %143, i32 5)
%145 = tail call i32 @atoi(i32 %144)
%146 = icmp sgt i32 %142, %145
br i1 %146, label %165, label %147
147: ; preds = %139
%148 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.23, i64 0, i64 0))
%149 = load i32, i32* @stdout
%150 = tail call i32 @fflush(i32 %149)
%151 = load i8*, i8** %17
%152 = tail call i32 @scanna(i8* %151)
br label %168
153: ; preds = %131, %115, %99, %83, %67
%154 = load i8*, i8** %17
%155 = load i8*, i8** %18
%156 = tail call i32 @function1(i8* %154, i8* %155)
br label %168
157: ; preds = %67
%158 = load i8*, i8** %17
%159 = tail call i32 @getByte(i8* %158, i32 1)
%160 = tail call i32 @atoi(i32 %159)
%161 = load i8*, i8** %18
%162 = tail call i32 @getByte(i8* %161, i32 1)
%163 = tail call i32 @atoi(i32 %162)
%164 = icmp sgt i32 %160, %163
br i1 %164, label %165, label %83
165: ; preds = %139, %123, %107, %91, %157
%166 = load i8*, i8** %1
%167 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %166)
br label %168
168: ; preds = %147, %165, %153
ret i32 0
}