Rizin
unix-like reverse engineering framework and cli tools
sort.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2022 Florian Märkl <info@florianmaerkl.de>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_IL_SORT_H
5 #define RZ_IL_SORT_H
6 
7 #include <rz_types.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
23 typedef enum {
27 
28 typedef struct rz_il_sort_pure_t {
30  union {
31  struct {
33  } bv;
34  } props;
36 
38  if (a.type != b.type) {
39  return false;
40  }
41  if (a.type == RZ_IL_TYPE_PURE_BITVECTOR && a.props.bv.length != b.props.bv.length) {
42  return false;
43  }
44  return true;
45 }
46 
48  RzILSortPure r = {
50  { { 0 } },
51  };
52  return r;
53 }
54 
56  RzILSortPure r = {
58  { { 0 } },
59  };
60  r.props.bv.length = length;
61  return r;
62 }
63 
65 
66 typedef enum {
69  RZ_IL_TYPE_EFFECT_CTRL = (1 << 1)
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif
#define RZ_API
#define r
Definition: crypto_rc6.c:12
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
uint32_t ut32
#define RZ_OWN
Definition: rz_types.h:62
#define b(i)
Definition: sha256.c:42
#define a(i)
Definition: sha256.c:41
static bool rz_il_sort_pure_eq(RzILSortPure a, RzILSortPure b)
Definition: sort.h:37
struct rz_il_sort_pure_t RzILSortPure
RzILTypeEffect
Definition: sort.h:66
@ RZ_IL_TYPE_EFFECT_DATA
mutating mems, vars, etc.
Definition: sort.h:68
@ RZ_IL_TYPE_EFFECT_CTRL
jmp/goto
Definition: sort.h:69
@ RZ_IL_TYPE_EFFECT_NONE
nop
Definition: sort.h:67
static RzILSortPure rz_il_sort_pure_bool()
Definition: sort.h:47
RZ_API RZ_OWN char * rz_il_sort_pure_stringify(RzILSortPure sort)
Definition: il_export.c:952
RzILTypePure
Definition: sort.h:23
@ RZ_IL_TYPE_PURE_BOOL
Definition: sort.h:24
@ RZ_IL_TYPE_PURE_BITVECTOR
Definition: sort.h:25
static RzILSortPure rz_il_sort_pure_bv(ut32 length)
Definition: sort.h:55
struct rz_il_sort_pure_t::@283::@284 bv
union rz_il_sort_pure_t::@283 props
RzILTypePure type
Definition: sort.h:29
ut32 length
Definition: sort.h:32