@@ -3988,7 +3988,7 @@ icrt_export([{V,{{export,_},_,_}}|Vs0], [{V,{{export,_}=S0,_,As}}|Vt],
39883988 % % V was an exported variable and has been used in an expression in at least
39893989 % % one clause. Its state needs to be merged from all clauses to silence any
39903990 % % exported var warning already emitted.
3991- {VVs ,Vs } = lists :partition (fun ({K ,_ }) -> K =:= V end , Vs0 ),
3991+ {VVs ,Vs } = lists :splitwith (fun ({K ,_ }) -> K =:= V end , Vs0 ),
39923992 S = foldl (fun ({_ ,{S1 ,_ ,_ }}, AccS ) -> merge_state (AccS , S1 ) end , S0 , VVs ),
39933993 icrt_export (Vs , Vt , In , I , [{V ,{S ,used ,As }}|Acc ]);
39943994icrt_export ([{V ,_ }|Vs0 ], [{V ,{_ ,_ ,As }}|Vt ], In , I , Acc ) ->
@@ -4003,7 +4003,7 @@ icrt_export([{V1,_}|_]=Vs, [{V2,_}|Vt], In, I, Acc) when V1 > V2 ->
40034003 icrt_export (Vs , Vt , In , I , Acc );
40044004icrt_export ([{V ,_ }|_ ]= Vs0 , Vt , In , I , Acc ) ->
40054005 % % V is a new variable.
4006- {VVs ,Vs } = lists :partition (fun ({K ,_ }) -> K =:= V end , Vs0 ),
4006+ {VVs ,Vs } = lists :splitwith (fun ({K ,_ }) -> K =:= V end , Vs0 ),
40074007 F = fun ({_ ,{S ,U ,As }}, {AccI ,AccS0 ,AccAs0 }) ->
40084008 AccS = case {S ,AccS0 } of
40094009 {{unsafe ,_ },{unsafe ,_ }} ->
0 commit comments