<reponame>smarek/ci_targets
from construct import *
from construct.lib import *

expr_mod = Struct(
	'int_u' / Int32ul,
	'int_s' / Int32sl,
	'mod_pos_const' / Computed(lambda this: (9837 % 13)),
	'mod_neg_const' / Computed(lambda this: (-9837 % 13)),
	'mod_pos_seq' / Computed(lambda this: (this.int_u % 13)),
	'mod_neg_seq' / Computed(lambda this: (this.int_s % 13)),
)

_schema = expr_mod

from construct import *
from construct.lib import *

expr_mod = Struct(
	'int_u' / Int32ul,
	'int_s' / Int32sl,
	'mod_pos_const' / Computed(lambda this: (9837 % 13)),
	'mod_neg_const' / Computed(lambda this: (-9837 % 13)),
	'mod_pos_seq' / Computed(lambda this: (this.int_u % 13)),
	'mod_neg_seq' / Computed(lambda this: (this.int_s % 13)),
)

_schema = expr_mod