t y p e s i m p o r t I n s t r u c t i o n i n l i n e _ m a t c h e r = I n s t r u c t i o n . i n l i n e _ m a t c h ( O R D E R = ( l a m b d a o , o i d : o . t i d = = o i d ) , C A N C E L = ( l a m b d a c , o i d : c . x t i d = = o i d ) , C A N C E L _ R E P L A C E = ( l a m b d a c r , o i d : c r . x r _ t i d = = o i d ) ) d e f f i l t e r _ b y _ o i d _ a l t ( i n s t r u c t i o n s , o i d ) : r e t u r n l i s t ( f i l t e r ( l a m b d a i : i n l i n e _ m a t c h e r ( i ) ( i , o i d ) , i n s t r u c t i o n s ) )