[ { "psig_desc": [ "Psig_attribute", { "attr_name": { "loc2": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1160 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1173 }, "loc_ghost": false }, "txt2": "ocaml.warning" }, "attr_payload": [ "PStr", [ { "pstr_desc": [ "Pstr_eval", { "pexp_desc": [ "Pexp_constant", [ "Pconst_string", "+a-4-9-30-40-41-42", { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1175 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1193 }, "loc_ghost": false }, null ] ], "pexp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1174 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1194 }, "loc_ghost": false }, "pexp_loc_stack": [], "pexp_attributes": [] }, [] ], "pstr_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1174 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1194 }, "loc_ghost": false } } ] ], "attr_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1156 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1195 }, "loc_ghost": false } } ], "psig_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1156 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 17, "pos_bol": 1156, "pos_cnum": 1195 }, "loc_ghost": false } }, { "psig_desc": [ "Psig_value", { "pval_name": { "loc2": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 25, "pos_bol": 1420, "pos_cnum": 1424 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 25, "pos_bol": 1420, "pos_cnum": 1427 }, "loc_ghost": false }, "txt2": "run" }, "pval_type": { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "never_inline" ], { "ptyp_desc": [ "Ptyp_constr", "bool", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 26, "pos_bol": 1428, "pos_cnum": 1446 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 26, "pos_bol": 1428, "pos_cnum": 1450 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "backend" ], { "ptyp_desc": [ "Ptyp_package", [ "Backend_intfS", [] ] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 27, "pos_bol": 1451, "pos_cnum": 1464 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 27, "pos_bol": 1451, "pos_cnum": 1487 }, "loc_ghost": false }, "ptyp_loc_stack": [ { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 27, "pos_bol": 1451, "pos_cnum": 1472 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 27, "pos_bol": 1451, "pos_cnum": 1486 }, "loc_ghost": false } ], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "prefixname" ], { "ptyp_desc": [ "Ptyp_constr", "string", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 28, "pos_bol": 1488, "pos_cnum": 1504 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 28, "pos_bol": 1488, "pos_cnum": 1510 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "round" ], { "ptyp_desc": [ "Ptyp_constr", "int", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 29, "pos_bol": 1511, "pos_cnum": 1522 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 29, "pos_bol": 1511, "pos_cnum": 1525 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "ppf_dump" ], { "ptyp_desc": [ "Ptyp_constr", "Formatformatter", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 30, "pos_bol": 1526, "pos_cnum": 1540 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 30, "pos_bol": 1526, "pos_cnum": 1556 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Nolabel" ], { "ptyp_desc": [ "Ptyp_constr", "Flambdaprogram", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 31, "pos_bol": 1557, "pos_cnum": 1562 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 31, "pos_bol": 1557, "pos_cnum": 1577 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_constr", "Flambdaprogram", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1583 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 31, "pos_bol": 1557, "pos_cnum": 1562 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 30, "pos_bol": 1526, "pos_cnum": 1531 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 29, "pos_bol": 1511, "pos_cnum": 1516 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 28, "pos_bol": 1488, "pos_cnum": 1493 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 27, "pos_bol": 1451, "pos_cnum": 1456 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 26, "pos_bol": 1428, "pos_cnum": 1433 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, "pval_prim": [], "pval_attributes": [ { "attr_name": { "loc2": { "loc_start": { "pos_fname": "_none_", "pos_lnum": 0, "pos_bol": 0, "pos_cnum": -1 }, "loc_end": { "pos_fname": "_none_", "pos_lnum": 0, "pos_bol": 0, "pos_cnum": -1 }, "loc_ghost": true }, "txt2": "ocaml.doc" }, "attr_payload": [ "PStr", [ { "pstr_desc": [ "Pstr_eval", { "pexp_desc": [ "Pexp_constant", [ "Pconst_string", " Simplification of Flambda programs combined with function inlining:\n for the most part a beta-reduction pass.\n\n Readers interested in the inlining strategy should read the\n [Inlining_decision] module first.\n", { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 19, "pos_bol": 1197, "pos_cnum": 1197 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 24, "pos_bol": 1417, "pos_cnum": 1419 }, "loc_ghost": false }, null ] ], "pexp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 19, "pos_bol": 1197, "pos_cnum": 1197 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 24, "pos_bol": 1417, "pos_cnum": 1419 }, "loc_ghost": false }, "pexp_loc_stack": [], "pexp_attributes": [] }, [] ], "pstr_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 19, "pos_bol": 1197, "pos_cnum": 1197 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 24, "pos_bol": 1417, "pos_cnum": 1419 }, "loc_ghost": false } } ] ], "attr_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 19, "pos_bol": 1197, "pos_cnum": 1197 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 24, "pos_bol": 1417, "pos_cnum": 1419 }, "loc_ghost": false } } ], "pval_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 25, "pos_bol": 1420, "pos_cnum": 1420 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false } } ], "psig_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 25, "pos_bol": 1420, "pos_cnum": 1420 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 32, "pos_bol": 1578, "pos_cnum": 1598 }, "loc_ghost": false } }, { "psig_desc": [ "Psig_value", { "pval_name": { "loc2": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 34, "pos_bol": 1600, "pos_cnum": 1604 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 34, "pos_bol": 1600, "pos_cnum": 1622 }, "loc_ghost": false }, "txt2": "duplicate_function" }, "pval_type": { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "env" ], { "ptyp_desc": [ "Ptyp_constr", "Inline_and_simplify_auxEnvt", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 35, "pos_bol": 1623, "pos_cnum": 1632 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 35, "pos_bol": 1623, "pos_cnum": 1661 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "set_of_closures" ], { "ptyp_desc": [ "Ptyp_constr", "Flambdaset_of_closures", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 36, "pos_bol": 1662, "pos_cnum": 1683 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 36, "pos_bol": 1662, "pos_cnum": 1706 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "fun_var" ], { "ptyp_desc": [ "Ptyp_constr", "Variablet", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 37, "pos_bol": 1707, "pos_cnum": 1720 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 37, "pos_bol": 1707, "pos_cnum": 1730 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_arrow", [ "Labelled", "new_fun_var" ], { "ptyp_desc": [ "Ptyp_constr", "Variablet", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 38, "pos_bol": 1731, "pos_cnum": 1748 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 38, "pos_bol": 1731, "pos_cnum": 1758 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_tuple", [ { "ptyp_desc": [ "Ptyp_constr", "Flambdafunction_declaration", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 39, "pos_bol": 1759, "pos_cnum": 1764 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 39, "pos_bol": 1759, "pos_cnum": 1792 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, { "ptyp_desc": [ "Ptyp_constr", "VariableMapt", [ { "ptyp_desc": [ "Ptyp_constr", "Flambdaspecialised_to", [] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1799 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1821 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1799 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ] ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 39, "pos_bol": 1759, "pos_cnum": 1764 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 38, "pos_bol": 1731, "pos_cnum": 1736 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 37, "pos_bol": 1707, "pos_cnum": 1712 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 36, "pos_bol": 1662, "pos_cnum": 1667 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] } ], "ptyp_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 35, "pos_bol": 1623, "pos_cnum": 1628 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false }, "ptyp_loc_stack": [], "ptyp_attributes": [] }, "pval_prim": [], "pval_attributes": [], "pval_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 34, "pos_bol": 1600, "pos_cnum": 1600 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false } } ], "psig_loc": { "loc_start": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 34, "pos_bol": 1600, "pos_cnum": 1600 }, "loc_end": { "pos_fname": "./middle_end/flambda/inline_and_simplify.mli", "pos_lnum": 40, "pos_bol": 1793, "pos_cnum": 1836 }, "loc_ghost": false } } ]