Rizin
unix-like reverse engineering framework and cli tools
value.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 RizinOrg <info@rizin.re>
2 // SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
3 // SPDX-FileCopyrightText: 2021 heersin <teablearcher@gmail.com>
4 // SPDX-License-Identifier: LGPL-3.0-only
5 
6 #ifndef RZ_IL_VALUE_H
7 #define RZ_IL_VALUE_H
8 
10 #include <rz_il/definitions/sort.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef union {
19 } RzValUnion;
20 
24 typedef struct rz_il_val_t {
28 
37 
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // RZ_IL_VALUE_H
ut16 val
Definition: armass64_const.h:6
#define RZ_API
#define RZ_NULLABLE
Definition: rz_types.h:65
#define RZ_OWN
Definition: rz_types.h:62
#define RZ_NONNULL
Definition: rz_types.h:64
#define b(i)
Definition: sha256.c:42
#define a(i)
Definition: sha256.c:41
Type and Sort identifiers for values in the IL.
RzILTypePure
Definition: sort.h:23
structure for bitvector
Definition: rz_bitvector.h:19
RzValUnion data
data pointer
Definition: value.h:26
RzILTypePure type
type of value
Definition: value.h:25
RzBitVector * bv
Definition: value.h:17
RzILBool * b
Definition: value.h:18
RZ_API char * rz_il_value_stringify(RZ_NONNULL const RzILVal *val)
Definition: il_export.c:739
RZ_API RzILSortPure rz_il_value_get_sort(RZ_NONNULL RzILVal *val)
Definition: value.c:127
RZ_API RZ_OWN RzILVal * rz_il_value_new_zero_of(RzILSortPure sort)
Definition: value.c:56
RZ_API RZ_OWN RzILVal * rz_il_value_dup(RZ_NONNULL const RzILVal *val)
Definition: value.c:85
RZ_API RZ_OWN RzBitVector * rz_il_value_to_bv(RZ_NONNULL const RzILVal *val)
Definition: value.c:141
struct rz_il_val_t RzILVal
RZ_API RZ_OWN RzILVal * rz_il_value_new_bitv(RZ_NONNULL RzBitVector *bv)
Definition: value.c:28
RZ_API bool rz_il_value_eq(RZ_NONNULL const RzILVal *a, RZ_NONNULL const RzILVal *b)
Definition: value.c:157
RZ_API void rz_il_value_free(RZ_NULLABLE RzILVal *val)
Definition: value.c:107
RZ_API RZ_OWN RzILVal * rz_il_value_new_bool(RZ_NONNULL RzILBool *b)
Definition: value.c:43