OCaml Forge
SCM

Detail: [#676] detect reuse of datastructure

Feature Requests: Browse | Download .csv | Monitor

[#676] detect reuse of datastructure

Date:
2010-06-25 14:20
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Operating System:
None
Product:
None
Component:
None
 
Summary:
detect reuse of datastructure

Detailed description
When we output datastructure, we don't detect that there are common patterns in it.

e.g
{
build_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
install_type =
("internal", Some (VInt (0, VInt (1, VInt (0, VEnd)))));
install_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
uninstall_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
clean_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
distclean_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
}

We should detect this and output:

let a0 =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
}
in
{
build_custom = a0;
install_type =
("internal", Some (VInt (0, VInt (1, VInt (0, VEnd)))));
install_custom = a0;
uninstall_custom = a0;
clean_custom = a0;
distclean_custom = a0;
}



Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2010-09-01 15:56gildor-admin