-
Notifications
You must be signed in to change notification settings - Fork 2
/
functor_includes.dl
46 lines (37 loc) · 1.46 KB
/
functor_includes.dl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Functor declarations for use in Datalog code
.functor hex_to_number(symbol):number
.functor number_to_hex(number):symbol
.functor hex_normalized(symbol):symbol
.functor cast_to_number(number):number
.functor cast_to_symbol(symbol):symbol
.functor max2(number, number):number
.functor min2(number, number):number
.functor in_set(symbol,symbol):number
.functor add_set(symbol,symbol):symbol
.functor len_set(symbol):number
.functor add_256(symbol,symbol):symbol
.functor sub_256(symbol,symbol):symbol
.functor mul_256(symbol,symbol):symbol
.functor div_256(symbol,symbol):symbol
.functor mod_256(symbol,symbol):symbol
.functor and_256(symbol,symbol):symbol
.functor or_256(symbol,symbol):symbol
.functor xor_256(symbol,symbol):symbol
.functor gt_256(symbol,symbol):symbol
.functor eq_256(symbol,symbol):symbol
.functor lt_256(symbol,symbol):symbol
.functor exp_256(symbol,symbol):symbol
.functor smod_256(symbol,symbol):symbol
.functor sdiv_256(symbol,symbol):symbol
.functor sgt_256(symbol,symbol):symbol
.functor slt_256(symbol,symbol):symbol
.functor shl_256(symbol,symbol):symbol
.functor shr_256(symbol,symbol):symbol
.functor sar_256(symbol,symbol):symbol
.functor not_256(symbol):symbol
.functor keccak_256(symbol):symbol
.functor hex_keccak_256(symbol):symbol
.functor hex_to_str(symbol):symbol
.type StringList = [x: symbol, y: StringList]
.functor list_concat(a: StringList, b: StringList):StringList stateful
.functor list_append(a: StringList, elem: symbol):StringList stateful