#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 atof(char *);
int atoi(char *);
int /*<<< orphan*/ get_atom_sequence(int, char *);
int /*<<< orphan*/ include_member(int, int, int);
int init_for(int);
int integer_relation(char *, int, int);
int next_for(int);
void rnumber_field(int from_set, int to_set, char *operator, char * value) {
  int o, t;
  int ivalue, rnumber;
  char sequence[8];
  ivalue = atof(value);
  for (o = init_for(from_set); o != 0; o = next_for(from_set)) {
    get_atom_sequence(o, sequence);
    rnumber = atoi(sequence);
    t = integer_relation(operator, rnumber, ivalue);
    if (t)
      include_member(to_set, 6, o);
  }
}


x86 assembly (clang, -O0):
<rnumber_field>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <atof@plt>
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <init_for@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1200 <rnumber_field+0x90>
mov    -0x1c(%rbp),%edi
lea    -0x30(%rbp),%rsi
call   1060 <get_atom_sequence@plt>
lea    -0x30(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
call   1080 <integer_relation@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     11eb <rnumber_field+0x7b>
mov    -0x8(%rbp),%edi
mov    -0x1c(%rbp),%edx
mov    $0x6,%esi
call   1050 <include_member@plt>
jmp    11f0 <rnumber_field+0x80>
mov    -0x4(%rbp),%edi
call   1070 <next_for@plt>
mov    %eax,-0x1c(%rbp)
jmp    119d <rnumber_field+0x2d>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rnumber_field>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %esi,%r14d
mov    %edi,%r12d
mov    %rcx,%rdi
call   1040 <atof@plt>
mov    %eax,%r13d
mov    %r12d,%edi
call   1030 <init_for@plt>
test   %eax,%eax
je     11f2 <rnumber_field+0x82>
mov    %eax,%ebx
mov    %rsp,%rbp
jmp    11be <rnumber_field+0x4e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12d,%edi
call   1070 <next_for@plt>
mov    %eax,%ebx
test   %eax,%eax
je     11f2 <rnumber_field+0x82>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1060 <get_atom_sequence@plt>
mov    %rbp,%rdi
call   1090 <atoi@plt>
mov    %r15,%rdi
mov    %eax,%esi
mov    %r13d,%edx
call   1080 <integer_relation@plt>
test   %eax,%eax
je     11b0 <rnumber_field+0x40>
mov    %r14d,%edi
mov    $0x6,%esi
mov    %ebx,%edx
call   1050 <include_member@plt>
jmp    11b0 <rnumber_field+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @rnumber_field(i32 %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [8 x i8]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%14 = load i8*, i8** %8
%15 = call i32 @atof(i8* %14)
store i32 %15, i32* %11
%16 = load i32, i32* %5
%17 = call i32 @init_for(i32 %16)
store i32 %17, i32* %9
br label %18
18: ; preds = %38, %4
%19 = load i32, i32* %9
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %41
21: ; preds = %18
%22 = load i32, i32* %9
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %13, i64 0, i64 0
%24 = call i32 @get_atom_sequence(i32 %22, i8* %23)
%25 = getelementptr inbounds [8 x i8], [8 x i8]* %13, i64 0, i64 0
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %12
%27 = load i8*, i8** %7
%28 = load i32, i32* %12
%29 = load i32, i32* %11
%30 = call i32 @integer_relation(i8* %27, i32 %28, i32 %29)
store i32 %30, i32* %10
%31 = load i32, i32* %10
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %21
%34 = load i32, i32* %6
%35 = load i32, i32* %9
%36 = call i32 @include_member(i32 %34, i32 6, i32 %35)
br label %37
37: ; preds = %33, %21
br label %38
38: ; preds = %37
%39 = load i32, i32* %5
%40 = call i32 @next_for(i32 %39)
store i32 %40, i32* %9
br label %18
41: ; preds = %18
ret void
}

LLVM IR (-O2):
define void @rnumber_field(i32 %0, i32 %1, i8* %2, i8* nocapture %3) {
%5 = alloca [8 x i8]
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%7 = tail call i32 @atof(i8* %3)
%8 = tail call i32 @init_for(i32 %0)
%9 = icmp eq i32 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %4, %18
%11 = phi i32 [ %19, %18 ], [ %8, %4 ]
%12 = call i32 @get_atom_sequence(i32 %11, i8* %6)
%13 = call i32 @atoi(i8* %6)
%14 = call i32 @integer_relation(i8* %2, i32 %13, i32 %7)
%15 = icmp eq i32 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %10
%17 = call i32 @include_member(i32 %1, i32 6, i32 %11)
br label %18
18: ; preds = %10, %16
%19 = call i32 @next_for(i32 %0)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %10
21: ; preds = %18, %4
ret void
}