+
    ,i
  c                   s    ^ RI Ht ^RIHtHt ^RIHt ^RIHt ^RI	H
t
HtHt ]! RRR7       ! R R	]4      4       t ! R
 R]
4      t ! R R]],          4      tR# )i    )	dataclass)ContextIbendportcon)ContextWrapper)DiffResultDescriptor)
DifferenceDifferenceResultWrapperT)ZfrozenZorderc                   s0   a  ] tR t^t o RtV 3R ltRtV tR# )ModifiedIbendportconz/Difference details for a modified ibendportcon.c                s>   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )   ZruleZadded_contextZremoved_context)r   r   Zformat__classdict__   "@/usr/lib64/python3.14/site-packages/setools/diff/ibendportcon.py__annotate__Z!ModifiedIbendportcon.__annotate__   s,     
           N)__name__
__module____qualname____firstlineno____doc__Z__annotate_func____static_attributes____classdictcell__r      @r   r   r      s      :  r   r   c                   s   a  ] tR t^t o RtV 3R lR lt]],          ! ]4      t]],          ! ]4      t	]]
,          ! ]4      tV 3R lR ltRtV tR# )IbendportconsDifferencez?Determine the difference in ibendportcons between two policies.c                   < V ^8  d   QhRR/# r	   returnNr   r
   r   r   r   $IbendportconsDifference.__annotate__   s     \ \D \r   c                sH   V P                   P                  RV P                   RV P                   24       V P	                  R V P                  P                  4        4       R V P                  P                  4        4       4      w  V n        V n        p\        \        ,          ! 4       V n
        V Fm  w  r#\        VP                  4      \        VP                  4      8w  g   K4  V P                  P                  \        W#P                  VP                  4      4       Ko  	  R# )z>Generate the difference in ibendportcons between the policies.z)Generating ibendportcon differences from z to c              3   8   "   T F  p\        V4      x  K  	  R # 5iNIbendportconWrapperZ.0Zn   & r   	<genexpr>=IbendportconsDifference.diff_ibendportcons.<locals>.<genexpr>$   s     R1QA$Q''1Q   c              3   r   r    r!   r#   r$   r   r%   r&   %   s     S1RA$Q''1Rr'   N)logZinfoZleft_policyZright_policyZ	_set_diffZibendportconsadded_ibendportconsremoved_ibendportconsZlistr   modified_ibendportconsr   contextZappend)selfZmatched_ibendportconsZ	left_ibepZ
right_ibeps   &   r   diff_ibendportconsZ*IbendportconsDifference.diff_ibendportcons   s     	78H8H7IdN_N_M`a	c NNR1A1A1O1O1QRS1B1B1P1P1RSU 	T $"<>S
 '++?&@&B#%:!I i//0N:CUCU4VV++22(4F4F	HYHYZ\	 &;r   c                r   r   r   r
   r   r   r   r   7   s     ( (T (r   c                sH    V P                   P                  R4       V =V =V =R# )z%Reset diff results on policy changes.z"Resetting ibendportcon differencesN)r(   Zdebugr)   r*   r+   r-      &r   _reset_diffZ#IbendportconsDifference._reset_diff7   s%    ;<$&'r   )r)   r+   r*   N)r   r   r   r   r   r.   r   r   r)   r*   r   r+   r1   r   r   r   r   r   r   r      sT     I\ \( /|<=OP0>?QR12FGHZ[
( (r   r   c                   sL   a  ] tR t^?t o RtR	tV 3R lR ltR tR tR t	Rt
V tR# )
r"   z/Wrap ibendportcon statements for diff purposes.c                s$   < V ^8  d   QhRS[ RR/# )r	   oconr   N)r   r
   r   r   r   Z IbendportconWrapper.__annotate__E   s      \ d r   c                sv    Wn         VP                  V n        VP                  V n        \        V4      V n        R # r    )originnameportZhashkey)r-   r2      &&r   __init__ZIbendportconWrapper.__init__E   s(    II	II	:r   c                s    V P                   # r    )r6   r/   r0   r   __hash__ZIbendportconWrapper.__hash__K   s    xxr   c                s4    V P                   VP                   8  # r    )r3   r-   Zotherr7   r   __lt__ZIbendportconWrapper.__lt__N   s    {{U\\))r   c                sv    V P                   VP                   8H  ;'       d    V P                  VP                  8H  # r    r4   r5   r:   r7   r   __eq__ZIbendportconWrapper.__eq__Q   s1    yyEJJ& $ $II#	$r   )r6   r4   r3   r5   Nr<   )r   r   r   r   r   Z	__slots__r8   r9   r;   r=   r   r   r   r   r   r"   r"   ?   s+     9 I *$ $r   r"   N)Zdataclassesr    Z	policyrepr   r   r,   r   Zdescriptorsr   Z
differencer   r   r   r   r   r"   r   r   r   <module>r>      sZ   
 " - # - = = $d#+  $$(j $(N$',/ $r   