#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 /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, ...);
main() {
  int a, b, c, d, x;
  scanf("Введите отрезок ab %d%d", &a, &b);
  scanf("Введите отрезок cd %D%d", &c, &d);
  scanf("Введите точку А %d", &x);
  if (x > a && x < b)
    printf("Точка принадлежит отрезку ab");
  else if (x > c && x < d)
    printf("Точка принадлежит отрезку cd");
  else
    printf("Точка находится вне отрезков");
  if ((x > a && x < b) && (x > c && x < d))
    printf("Точка принадлежит двум отрезкам");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeea(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1196 <main+0x76>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1196 <main+0x76>
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
jmp    11d0 <main+0xb0>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11bf <main+0x9f>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11bf <main+0x9f>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
jmp    11cb <main+0xab>
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
jmp    11d0 <main+0xb0>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    120c <main+0xec>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    120c <main+0xec>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    120c <main+0xec>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    120c <main+0xec>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xee3(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xef1(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    0x14(%rsp),%eax
jle    1180 <main+0x60>
cmp    0x10(%rsp),%eax
jge    1180 <main+0x60>
lea    0xeee(%rip),%rdi
jmp    119e <main+0x7e>
cmp    0x8(%rsp),%eax
lea    0xf15(%rip),%rdi
lea    0xf42(%rip),%rcx
cmovge %rcx,%rdi
cmp    0xc(%rsp),%eax
cmovle %rcx,%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    0x14(%rsp),%eax
jle    11cb <main+0xab>
cmp    0x10(%rsp),%eax
jge    11cb <main+0xab>
cmp    0xc(%rsp),%eax
jle    11cb <main+0xab>
cmp    0x8(%rsp),%eax
jge    11cb <main+0xab>
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BE\D0\BA ab %d%d\00"
@.str.1 = [38 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BE\D0\BA cd %D%d\00"
@.str.2 = [32 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D0\BE\D1\87\D0\BA\D1\83 \D0\90 %d\00"
@.str.3 = [52 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D1\83 ab\00"
@.str.4 = [52 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D1\83 cd\00"
@.str.5 = [54 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BD\D0\B0\D1\85\D0\BE\D0\B4\D0\B8\D1\82\D1\81\D1\8F \D0\B2\D0\BD\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D0\BE\D0\B2\00"
@.str.6 = [60 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\B4\D0\B2\D1\83\D0\BC \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D0\B0\D0\BC\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%8 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32* %4, i32* %5)
%9 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%10 = load i32, i32* %6
%11 = load i32, i32* %2
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %19
13: ; preds = %0
%14 = load i32, i32* %6
%15 = load i32, i32* %3
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
br label %32
19: ; preds = %13, %0
%20 = load i32, i32* %6
%21 = load i32, i32* %4
%22 = icmp sgt i32 %20, %21
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load i32, i32* %6
%25 = load i32, i32* %5
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
br label %31
29: ; preds = %23, %19
%30 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
br label %31
31: ; preds = %29, %27
br label %32
32: ; preds = %31, %17
%33 = load i32, i32* %6
%34 = load i32, i32* %2
%35 = icmp sgt i32 %33, %34
br i1 %35, label %36, label %50
36: ; preds = %32
%37 = load i32, i32* %6
%38 = load i32, i32* %3
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %50
40: ; preds = %36
%41 = load i32, i32* %6
%42 = load i32, i32* %4
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %50
44: ; preds = %40
%45 = load i32, i32* %6
%46 = load i32, i32* %5
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
br label %50
50: ; preds = %48, %44, %40, %36, %32
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BE\D0\BA ab %d%d\00"
@.str.1 = [38 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BE\D0\BA cd %D%d\00"
@.str.2 = [32 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D0\BE\D1\87\D0\BA\D1\83 \D0\90 %d\00"
@.str.3 = [52 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D1\83 ab\00"
@.str.4 = [52 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D1\83 cd\00"
@.str.5 = [54 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BD\D0\B0\D1\85\D0\BE\D0\B4\D0\B8\D1\82\D1\81\D1\8F \D0\B2\D0\BD\D0\B5 \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D0\BE\D0\B2\00"
@.str.6 = [60 x i8] c"\D0\A2\D0\BE\D1\87\D0\BA\D0\B0 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B8\D1\82 \D0\B4\D0\B2\D1\83\D0\BC \D0\BE\D1\82\D1\80\D0\B5\D0\B7\D0\BA\D0\B0\D0\BC\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%12 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%13 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%14 = load i32, i32* %5
%15 = load i32, i32* %1
%16 = icmp sgt i32 %14, %15
%17 = load i32, i32* %2
%18 = icmp slt i32 %14, %17
%19 = select i1 %16, i1 %18, i1 false
br i1 %19, label %27, label %20
20: ; preds = %0
%21 = load i32, i32* %3
%22 = icmp sgt i32 %14, %21
%23 = load i32, i32* %4
%24 = icmp slt i32 %14, %23
%25 = select i1 %22, i1 %24, i1 false
%26 = select i1 %25, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0)
br label %27
27: ; preds = %20, %0
%28 = phi i8* [ getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), %0 ], [ %26, %20 ]
%29 = call i32 @printf(i8* dereferenceable(1) %28)
%30 = load i32, i32* %5
%31 = load i32, i32* %1
%32 = icmp sgt i32 %30, %31
%33 = load i32, i32* %2
%34 = icmp slt i32 %30, %33
%35 = select i1 %32, i1 %34, i1 false
%36 = load i32, i32* %3
%37 = icmp sgt i32 %30, %36
%38 = select i1 %35, i1 %37, i1 false
%39 = load i32, i32* %4
%40 = icmp slt i32 %30, %39
%41 = select i1 %38, i1 %40, i1 false
br i1 %41, label %42, label %44
42: ; preds = %27
%43 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
br label %44
44: ; preds = %42, %27
ret i32 0
}