#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*/ getid(char);
float p(int, int);
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ printid(float);
void main() {
  int n = 0, o = 0, m = 1;
  float x = 1;
  char a;
  getid(a);
  if (a == '-') {
    x = -1;
    getid(a);
  }
  if ((a <= '9') && (a >= '0'))
    o = 1;
  while ((a <= '9') && (a >= '0')) {
    n = n * 10 + a - '0';
    m = 0;
    getid(a);
  }
  if (o = 1) {
    if (a == ' ') {
      print("целое число: ");
      if (x == -1)
        n *= -1;
      printid(n);
    }
    if ((a == '.') || (a == ',')) {
      getid(a);
      while ((a <= '9') && (a >= '0')) {
        n = n * 10 + a - '0';
        m++;
        getid(a);
      }
      if ((a == ' ') && (m > 0)) {
        print("вещественное число в нормальной записи: ");
        x *= n;
        x /= p(10, m);
        printid(x);
      } else
        print("это не число ");
    }
    if (a == 'e') {
      getid(a);
      if (a == '-') {
        o = -1;
        getid(a);
      }
      while ((a <= '9') && (a >= '0')) {
        m = m * 10 + a - '0';
        getid(a);
      }
      m *= o;
      if (a == ' ') {
        print("вещественное число в экспонециальной записи: ");
        x *= p(n, m);
        printid(x);
      } else
        print("это не число ");
    }
    if ((a != ' ') && (a != 'e') && (a != '.') && (a != ','))
      print("это не число ");
  }
  if (o = 0)
    print("это не число ");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movss  0xe9b(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
movsbl -0x11(%rbp),%eax
cmp    $0x2d,%eax
jne    1196 <main+0x56>
movss  0xe7c(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
movsbl -0x11(%rbp),%eax
cmp    $0x39,%eax
jg     11b7 <main+0x77>
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
jl     11b7 <main+0x77>
movl   $0x1,-0x8(%rbp)
jmp    11bc <main+0x7c>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x39,%ecx
mov    %al,-0x12(%rbp)
jg     11db <main+0x9b>
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
setge  %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
test   $0x1,%al
jne    11eb <main+0xab>
jmp    1210 <main+0xd0>
imul   $0xa,-0x4(%rbp),%eax
movsbl -0x11(%rbp),%ecx
add    %ecx,%eax
sub    $0x30,%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
jmp    11bc <main+0x7c>
movl   $0x1,-0x8(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    1226 <main+0xe6>
jmp    1477 <main+0x337>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jne    126c <main+0x12c>
lea    0xdce(%rip),%rdi
call   1050 <print@plt>
movss  -0x10(%rbp),%xmm0
movss  0xdb8(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1262 <main+0x122>
jp     1262 <main+0x122>
imul   $0xffffffff,-0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
call   1060 <printid@plt>
movsbl -0x11(%rbp),%eax
cmp    $0x2e,%eax
je     1286 <main+0x146>
movsbl -0x11(%rbp),%eax
cmp    $0x2c,%eax
jne    1355 <main+0x215>
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x39,%ecx
mov    %al,-0x13(%rbp)
jg     12ae <main+0x16e>
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
setge  %al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
test   $0x1,%al
jne    12be <main+0x17e>
jmp    12e5 <main+0x1a5>
imul   $0xa,-0x4(%rbp),%eax
movsbl -0x11(%rbp),%ecx
add    %ecx,%eax
sub    $0x30,%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
jmp    128f <main+0x14f>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jne    1344 <main+0x204>
cmpl   $0x0,-0xc(%rbp)
jle    1344 <main+0x204>
lea    0xd1d(%rip),%rdi
call   1050 <print@plt>
cvtsi2ssl -0x4(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0xc(%rbp),%esi
mov    $0xa,%edi
call   1030 <p@plt>
movaps %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
call   1060 <printid@plt>
jmp    1350 <main+0x210>
lea    0xd20(%rip),%rdi
call   1050 <print@plt>
jmp    1355 <main+0x215>
movsbl -0x11(%rbp),%eax
cmp    $0x65,%eax
jne    1432 <main+0x2f2>
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
movsbl -0x11(%rbp),%eax
cmp    $0x2d,%eax
jne    1388 <main+0x248>
movl   $0xffffffff,-0x8(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
jmp    138d <main+0x24d>
movsbl -0x11(%rbp),%ecx
xor    %eax,%eax
cmp    $0x39,%ecx
mov    %al,-0x14(%rbp)
jg     13ac <main+0x26c>
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
setge  %al
mov    %al,-0x14(%rbp)
mov    -0x14(%rbp),%al
test   $0x1,%al
jne    13bc <main+0x27c>
jmp    13da <main+0x29a>
imul   $0xa,-0xc(%rbp),%eax
movsbl -0x11(%rbp),%ecx
add    %ecx,%eax
sub    $0x30,%eax
mov    %eax,-0xc(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <getid@plt>
jmp    138d <main+0x24d>
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jne    1421 <main+0x2e1>
lea    0xc8b(%rip),%rdi
call   1050 <print@plt>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <p@plt>
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
call   1060 <printid@plt>
jmp    142d <main+0x2ed>
lea    0xc43(%rip),%rdi
call   1050 <print@plt>
jmp    1432 <main+0x2f2>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
je     1472 <main+0x332>
movsbl -0x11(%rbp),%eax
cmp    $0x65,%eax
je     1472 <main+0x332>
movsbl -0x11(%rbp),%eax
cmp    $0x2e,%eax
je     1472 <main+0x332>
movsbl -0x11(%rbp),%eax
cmp    $0x2c,%eax
je     1472 <main+0x332>
lea    0xbfe(%rip),%rdi
call   1050 <print@plt>
jmp    1477 <main+0x337>
movl   $0x0,-0x8(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    148d <main+0x34d>
jmp    1499 <main+0x359>
lea    0xbd7(%rip),%rdi
call   1050 <print@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <getid@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1040 <print@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"\D1\86\D0\B5\D0\BB\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE: \00"
@.str.1 = [75 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D0\BD\D0\BE\D1\80\D0\BC\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00"
@.str.2 = [24 x i8] c"\D1\8D\D1\82\D0\BE \D0\BD\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \00"
@.str.3 = [85 x i8] c"\D0\B2\D0\B5\D1\89\D0\B5\D1\81\D1\82\D0\B2\D0\B5\D0\BD\D0\BD\D0\BE\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \D0\B2 \D1\8D\D0\BA\D1\81\D0\BF\D0\BE\D0\BD\D0\B5\D1\86\D0\B8\D0\B0\D0\BB\D1\8C\D0\BD\D0\BE\D0\B9 \D0\B7\D0\B0\D0\BF\D0\B8\D1\81\D0\B8: \00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
store float 1.000000e+00, float* %4
%6 = load i8, i8* %5
%7 = call i32 @getid(i8 signext %6)
%8 = load i8, i8* %5
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 45
br i1 %10, label %11, label %14
11: ; preds = %0
store float -1.000000e+00, float* %4
%12 = load i8, i8* %5
%13 = call i32 @getid(i8 signext %12)
br label %14
14: ; preds = %11, %0
%15 = load i8, i8* %5
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 57
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8, i8* %5
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, i32* %2
br label %23
23: ; preds = %22, %18, %14
br label %24
24: ; preds = %34, %23
%25 = load i8, i8* %5
%26 = sext i8 %25 to i32
%27 = icmp sle i32 %26, 57
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i8, i8* %5
%30 = sext i8 %29 to i32
%31 = icmp sge i32 %30, 48
br label %32
32: ; preds = %28, %24
%33 = phi i1 [ false, %24 ], [ %31, %28 ]
br i1 %33, label %34, label %43
34: ; preds = %32
%35 = load i32, i32* %1
%36 = mul nsw i32 %35, 10
%37 = load i8, i8* %5
%38 = sext i8 %37 to i32
%39 = add nsw i32 %36, %38
%40 = sub nsw i32 %39, 48
store i32 %40, i32* %1
store i32 0, i32* %3
%41 = load i8, i8* %5
%42 = call i32 @getid(i8 signext %41)
br label %24
43: ; preds = %32
store i32 1, i32* %2
br i1 true, label %44, label %184
44: ; preds = %43
%45 = load i8, i8* %5
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 32
br i1 %47, label %48, label %59
48: ; preds = %44
%49 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%50 = load float, float* %4
%51 = fcmp oeq float %50, -1.000000e+00
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, i32* %1
%54 = mul nsw i32 %53, -1
store i32 %54, i32* %1
br label %55
55: ; preds = %52, %48
%56 = load i32, i32* %1
%57 = sitofp i32 %56 to float
%58 = call i32 @printid(float %57)
br label %59
59: ; preds = %55, %44
%60 = load i8, i8* %5
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 46
br i1 %62, label %67, label %63
63: ; preds = %59
%64 = load i8, i8* %5
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 44
br i1 %66, label %67, label %113
67: ; preds = %63, %59
%68 = load i8, i8* %5
%69 = call i32 @getid(i8 signext %68)
br label %70
70: ; preds = %80, %67
%71 = load i8, i8* %5
%72 = sext i8 %71 to i32
%73 = icmp sle i32 %72, 57
br i1 %73, label %74, label %78
74: ; preds = %70
%75 = load i8, i8* %5
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 48
br label %78
78: ; preds = %74, %70
%79 = phi i1 [ false, %70 ], [ %77, %74 ]
br i1 %79, label %80, label %91
80: ; preds = %78
%81 = load i32, i32* %1
%82 = mul nsw i32 %81, 10
%83 = load i8, i8* %5
%84 = sext i8 %83 to i32
%85 = add nsw i32 %82, %84
%86 = sub nsw i32 %85, 48
store i32 %86, i32* %1
%87 = load i32, i32* %3
%88 = add nsw i32 %87, 1
store i32 %88, i32* %3
%89 = load i8, i8* %5
%90 = call i32 @getid(i8 signext %89)
br label %70
91: ; preds = %78
%92 = load i8, i8* %5
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 32
br i1 %94, label %95, label %110
95: ; preds = %91
%96 = load i32, i32* %3
%97 = icmp sgt i32 %96, 0
br i1 %97, label %98, label %110
98: ; preds = %95
%99 = call i32 @print(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
%100 = load i32, i32* %1
%101 = sitofp i32 %100 to float
%102 = load float, float* %4
%103 = fmul float %102, %101
store float %103, float* %4
%104 = load i32, i32* %3
%105 = call float @p(i32 10, i32 %104)
%106 = load float, float* %4
%107 = fdiv float %106, %105
store float %107, float* %4
%108 = load float, float* %4
%109 = call i32 @printid(float %108)
br label %112
110: ; preds = %95, %91
%111 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %112
112: ; preds = %110, %98
br label %113
113: ; preds = %112, %63
%114 = load i8, i8* %5
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 101
br i1 %116, label %117, label %165
117: ; preds = %113
%118 = load i8, i8* %5
%119 = call i32 @getid(i8 signext %118)
%120 = load i8, i8* %5
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 45
br i1 %122, label %123, label %126
123: ; preds = %117
store i32 -1, i32* %2
%124 = load i8, i8* %5
%125 = call i32 @getid(i8 signext %124)
br label %126
126: ; preds = %123, %117
br label %127
127: ; preds = %137, %126
%128 = load i8, i8* %5
%129 = sext i8 %128 to i32
%130 = icmp sle i32 %129, 57
br i1 %130, label %131, label %135
131: ; preds = %127
%132 = load i8, i8* %5
%133 = sext i8 %132 to i32
%134 = icmp sge i32 %133, 48
br label %135
135: ; preds = %131, %127
%136 = phi i1 [ false, %127 ], [ %134, %131 ]
br i1 %136, label %137, label %146
137: ; preds = %135
%138 = load i32, i32* %3
%139 = mul nsw i32 %138, 10
%140 = load i8, i8* %5
%141 = sext i8 %140 to i32
%142 = add nsw i32 %139, %141
%143 = sub nsw i32 %142, 48
store i32 %143, i32* %3
%144 = load i8, i8* %5
%145 = call i32 @getid(i8 signext %144)
br label %127
146: ; preds = %135
%147 = load i32, i32* %2
%148 = load i32, i32* %3
%149 = mul nsw i32 %148, %147
store i32 %149, i32* %3
%150 = load i8, i8* %5
%151 = sext i8 %150 to i32
%152 = icmp eq i32 %151, 32
br i1 %152, label %153, label %162
153: ; preds = %146
%154 = call i32 @print(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.3, i64 0, i64 0))
%155 = load i32, i32* %1
%156 = load i32, i32* %3
%157 = call float @p(i32 %155, i32 %156)
%158 = load float, float* %4
%159 = fmul float %158, %157
store float %159, float* %4
%160 = load float, float* %4
%161 = call i32 @printid(float %160)
br label %164
162: ; preds = %146
%163 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %164
164: ; preds = %162, %153
br label %165
165: ; preds = %164, %113
%166 = load i8, i8* %5
%167 = sext i8 %166 to i32
%168 = icmp ne i32 %167, 32
br i1 %168, label %169, label %183
169: ; preds = %165
%170 = load i8, i8* %5
%171 = sext i8 %170 to i32
%172 = icmp ne i32 %171, 101
br i1 %172, label %173, label %183
173: ; preds = %169
%174 = load i8, i8* %5
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 46
br i1 %176, label %177, label %183
177: ; preds = %173
%178 = load i8, i8* %5
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 44
br i1 %180, label %181, label %183
181: ; preds = %177
%182 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %183
183: ; preds = %181, %177, %173, %169, %165
br label %184
184: ; preds = %183, %43
store i32 0, i32* %2
br i1 false, label %185, label %187
185: ; preds = %184
%186 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %187
187: ; preds = %185, %184
ret void
}

LLVM IR (-O2):
@.str.2 = [24 x i8] c"\D1\8D\D1\82\D0\BE \D0\BD\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE \00"
define void @main() {
%1 = tail call i32 @getid(i8 signext undef)
%2 = tail call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret void
}