Information Technology Reference
In-Depth Information
Code fragment 1:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
?COMMENT("Test case create_2 started.",[]),
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SidMux = {mux_id_1, h223_id_1},
{TdmSid, LocalData, _, _} = precond_one_blade_tdm_mux_create(SidMux),
?CHECK(ok, hcfTraceServerSupport, start, [[{brchDspRhI, exported}]]),
SidLc = {mux_id_1, audio_id_1},
CreateData = #brchMuxLcAccess{sid = SidLc,
stream_type = ?BRCH_AUDIO,
local_data = LocalData,
codec = {?AMR,
{?R_122, ?BRCH_DISABLED,
?BRCH_DISABLED, ?BRCH_BIT},
33, 44, 40},
event_module = iptermCb},
?CH(1, brchShI, create, [[CreateData]]),
?CHECK([], hcfTraceServerSupport, get_trace_list, []),
clean_up([SidLc, SidMux, TdmSid]),
?RESULT("DONE", []).
Code fragment 2:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
?COMMENT("Test case create_3 started.",[]),
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SidMux = {mux_id_1, h223_id_1},
{TdmSid, LocalData, _, _} = precond_one_blade_tdm_mux_create(SidMux),
?CHECK(ok, hcfTraceServerSupport, start, [[{brchDspRhI, exported}]]),
SidLc = {mux_id_1, audio_id_1},
CreateData = #brchMuxLcAccess{sid = SidLc,
stream_type = ?BRCH_AUDIO,
local_data = LocalData,
codec = {?G723_1, {?R_53, ?BRCH_DISABLED},
33, 44, 40},
event_module = iptermCb},
[{ok, [{SidLc, _IntCep}], ?BRCH_REPLICATION_NEEDED}] =
?CH(1, brchShI, create, [[CreateData]]),
?CHECK([], hcfTraceServerSupport, get_trace_list, []),
clean_up([SidLc, SidMux, TdmSid]),
?RESULT("DONE", []).
To be able to detect this kind of similarity, we have extended Wrangler with
a ”Similar expression search” . The functionality allows the user to search for
expressions that are similar to the expression selected according to a similarity
score specified by the user.
Furthermore, ”Similar expression search” also automatically generates the
least general common abstraction of those similar expressions found, which is
also known as anti-unifier. With the example above, Wrangler would suggest the
generalised abstraction as:
Search WWH ::




Custom Search