Skip to content

Instantly share code, notes, and snippets.

@garyttierney
Created December 4, 2016 15:16
Show Gist options
  • Select an option

  • Save garyttierney/5ca0649c6f9773989a007bff9b2f1d3c to your computer and use it in GitHub Desktop.

Select an option

Save garyttierney/5ca0649c6f9773989a007bff9b2f1d3c to your computer and use it in GitHub Desktop.
type a, b;
type_attribute type_attrib_a, type_atrrib_b;
# equivalent cil
(type a)
(type b)
(typeattribute type_attrib_a)
(typeattribute type_attrib_b)
--
type_attrib_a += a;
type_attrib_b += b;
# equivalent CIL
(typeattributeset type_attrib_a a)
(typeattributeset type_attrib_b b)
--
type_attribute type_attrib_not_a, type_attrib_not_b;
type_attrib_not_a -= a;
type_attrib_not_b -= b;
# equivalent CIL
(typeattribute type_attrib_not_a)
(typeattribute type_attrib_not_b)
(typeattributeset type_attrib_not_a (not a))
(typeattributeset type_attrib_not_b (not b))
--
type_attribute type_attrib_a_or_b = type_attrib_a | type_attrib_b;
# equivalent CIL
(typeattribute type_attrib_a_or_b)
(typeattributeset type_attrib_a_or_b (or type_attrib_a type_attrib_b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment