code_junkie

Specman macro to do set subtraction with int_range_list objects

Nov 11th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. var domain: list of int = {0..10, 24..30};
  2. var complementing_set: list of int = {2..3, 27..30};
  3. var complement: list of int = domain.all(it in complementing set);
Add Comment
Please, Sign In to add comment