lark-parser / lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
MIT License
4.89k stars 414 forks source link

NEWLINE #200

Closed justin-seo closed 6 years ago

justin-seo commented 6 years ago

Hi, I am trying to write a parsing script for vsif/vsof to python objects but I am running into a small issue. I am using "" /(.|\n|\r)/ /(NEWLINE)/ "" in my grammar to store text tokens but it seems to have trouble when things are written in new lines. If the whole "" /(.|\n|\r)/ /(NEWLINE)/ "" is written in a single line the grammar parsing correctly but when there are new lines I get: Expecting: {'__SEMICOLON', 'NON_RESERVED_CHARACTER_TOKEN', 'BLANK'}. Is there anything I can change to make this work? Thanks.

erezsh commented 6 years ago

Please upgrade to the latest version of Lark, and post this again with proper formatting

for example
justin-seo commented 6 years ago

Hi, I believe I have the latest version installed. Requirement already satisfied: lark-parser in /data/data800/spbu_essd/utils/pyenv/lib/python3.6/site-packages (0.5.6)

The following is my grammar and when I have newlines in between my the parser does not work properly.

grammar = r""" _entity_list : _entity | _entity_list _entity !_entity : container | attribute ";" | ";" !container : container_type BLANK container_name "{" _entity_list "}" container_type : IDENTIFIER container_name : IDENTIFIER | NON_RESERVED_CHARACTER_TOKEN | STRING !attribute : attribute_name ":" attribute_value attribute_name : IDENTIFIER attribute_value : TEXT | STRING | _data _data : NON_RESERVED_CHARACTER_TOKEN | _data BLANK NON_RESERVED_CHARACTER_TOKEN IDENTIFIER : /[_a-zA-Z][0-9_a-zA-Z]*/ STRING : /'[^'\n]*'/ | /"[^"\n]*"/ TEXT : "<text>" /(.|\\n|\\r)*/ /(NEWLINE)*/ "</text>" | "<text>" /(.|\n)+/ "</text>" BLANK : /[ \n\t\r]+/ NON_RESERVED_CHARACTER_TOKEN : /[^ \n\;:{}'\"]+/ %import common.NEWLINE %import common.WS %ignore WS %ignore " " COMMENT : "//" /(.|\\n|\\r)*/ NEWLINE | "//" /(.|\\n|\\r)*/ %ignore COMMENT """ My input file is: failure F0 { description : <text>Complimentary Scanning was disabled!!! Note that complimentary scanning was disabled earlier, by using the '-disable' switch: vm_scan.pl /tools/cadence/incisiv_15.10.010/vmanager/bin/ovm_sv_lib.flt /tools/cadence/incisiv_15.10.010/vmanager/bin/vm.flt /tools/cadence/incisiv_15.10.010/vmanager/bin/shell.flt -disable -notextvsof -vsofdir ./.vm_scan.sjlxi50.4781.2</text>; failure_id : <text>F0</text>; kind : <text>scan_disable</text>; severity : <text>warning</text>; tool : <text>scan_script</text>; } And my script takes a vsif file, converts it into a python object and then I turn that python object back into a vsif file. But in the parsing stage I keep getting this error: Expecting: {'NON_RESERVED_CHARACTER_TOKEN', '__SEMICOLON', 'BLANK'}. When I added this: "" /(.|\n)+/ "", after | the parser parses without error but it ignores the whole thing entirely. Please help!

erezsh commented 6 years ago

Latest version is 0.6.2 ;)

Use pip install --upgrade lark-parser

Also use ```python ... ``` to quote your code.

justin-seo commented 6 years ago

OH okay thank you! I upgraded it but I am still running into this error: Expecting: {Terminal('NON_RESERVED_CHARACTER_TOKEN'), Terminal('BLANK'), Terminal('SEMICOLON')}

I am suspecting the part in my grammar that specifies the rule of text. TEXT : "<text>" /(.|\\n|\\r)*/ /(NEWLINE)*/ "</text>" | "<text>" /(.|\n)+/ "</text>"

I could provide the whole input file but it may be very long. The following is the input file that I am parsing and it parses but it leaves out "failure F0" In my outputted vsif file.

`extend 2 { cpu_time: 699890; user_time: 668460; system_time: 31430; simulation_time: 0; }

extend 2 { end_time : 1532500992; engine : ncsim; log_file : /data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/cov_work/scope/deneb_nvme_stress_data_cmb_err_test/irun.log<__SEPARATOR__>/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log; parent_run : text>/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vsof:beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/deneb_nvme_stress_data_flr_nsegs_for_meta_mix_with_error@1</text; run_id : 2; run_type : simulation; simulation_time : 356347997000; simulator : ncsim; sv_seed : 1235424586; verification_scope : default;

    filter "ncsim" {
            filter_files : <text>ius.flt ovm_sv_lib.flt</text>;
            filter_id : <text>ncsim</text>;
            log_file : <text>/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/cov_work/scope/deneb_nvme_stress_data_cmb_err_test/irun.log</text>;
    }

    filter "ncsim" {
            filter_files : <text>ius.flt ovm_sv_lib.flt</text>;
            filter_id : <text>ncsim</text>;
            log_file : <text>/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/irun.log</text>;
    }

    failure F0 {
            context : <text> </text>;
            description : <text>Model of umultar1_fifo_count differs from real.</text>;
            failure_id : <text>F0</text>;
            kind : <text>NVME_CHECKER_BECONV</text>;
            module : <text>uvm_test_top.env.nvme_checker_env.nvme_checker.beconv</text>;
            reference : <text>42561@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>error</text>;
            time : 345966;
            tool : <text>UVM</text>;
    }

    failure F1 {
            context : <text> </text>;
            description : <text>Model of umultar1_fifo_count differs from real.</text>;
            failure_id : <text>F1</text>;
            kind : <text>NVME_CHECKER_BECONV</text>;
            module : <text>uvm_test_top.env.nvme_checker_env.nvme_checker.beconv</text>;
            reference : <text>44570@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>error</text>;
            time : 352331;
            tool : <text>UVM</text>;
    }

    failure F2 {
            context : <text> </text>;
            description : <text>Model of umultar1_fifo_count differs from real.</text>;
            failure_id : <text>F2</text>;
            kind : <text>NVME_CHECKER_BECONV</text>;
            module : <text>uvm_test_top.env.nvme_checker_env.nvme_checker.beconv</text>;
            reference : <text>45742@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>error</text>;
            time : 356347;
            tool : <text>UVM</text>;
    }

    failure F3 {
            context : <text> </text>;
            description : <text>Multiple (2) +UVM_VERBOSITY arguments provided on the command line.  'UVM_NONE' will be used.  Provided list: UVM_NONE, UVM_LOW.</text>;
            failure_id : <text>F3</text>;
            kind : <text>MULTVERB</text>;
            module : <text>reporter</text>;
            reference : <text>87@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F4 {
            context : <text> </text>;
            description : <text>Type name 'msix_vector_tbl_c' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F4</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>88@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F5 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_CAP_L' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F5</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>89@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F6 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_CAP_H' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F6</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>90@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F7 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_VS' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F7</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>91@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F8 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_INTMS' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F8</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>92@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F9 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_INTMC' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F9</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>93@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F10 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_CC' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F10</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>94@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F11 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_CSTS' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F11</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>95@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F12 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_NSSR' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F12</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>96@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F13 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_AQA' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F13</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>97@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F14 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_ASQ_L' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F14</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>98@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F15 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_ASQ_H' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F15</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>99@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F16 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_ACQ_L' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F16</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>100@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F17 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_ACQ_H' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F17</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>101@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F18 {
            context : <text> </text>;
            description : <text>Type name 'NVMeCtrlRegBlock' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F18</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>102@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F19 {
            context : <text> </text>;
            description : <text>Type name 'ar_pipeline_config_c' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F19</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>103@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F20 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_SQTDBL' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F20</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>104@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F21 {
            context : <text> </text>;
            description : <text>Type name 'NVME_REG_CQHDBL' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F21</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>105@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F22 {
            context : <text> </text>;
            description : <text>Type name 'deneb_nvme_dual_cpu_beif_sram_access_prpbuftxbig_beif_sequence#(port_id)' already registered with factory. No string-based lookup support for multiple types with the same type name.</text>;
            failure_id : <text>F22</text>;
            kind : <text>TPRGED</text>;
            module : <text>reporter</text>;
            reference : <text>106@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F23 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.datatagusage_portlimit</text>;
            failure_id : <text>F23</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>115@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F24 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.datatagusage_lcmdlimit</text>;
            failure_id : <text>F24</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>116@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F25 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.fwow_dtmrk_fci_data1</text>;
            failure_id : <text>F25</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>117@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F26 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.fwow_dtmrk_fci_data2</text>;
            failure_id : <text>F26</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>118@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F27 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.fwow_dtmrk_fci_data3</text>;
            failure_id : <text>F27</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>119@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F28 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.fwow_dtmrk_fci_data4</text>;
            failure_id : <text>F28</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>120@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F29 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance nvme_checker_regmodel.NVMeBECONV.fwow_dtmrk_fci_cntl</text>;
            failure_id : <text>F29</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>121@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F30 {
            context : <text> </text>;
            description : <text>A callback named "FWRESPFIFO0_FLRABRT" is already registered with object instance nvme_checker_regmodel.NVMeBEIF0.AdminRespFifo.Flr_Abrt</text>;
            failure_id : <text>F30</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>123@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F31 {
            context : <text> </text>;
            description : <text>A callback named "FWRESPFIFO1_FLRABRT" is already registered with object instance nvme_checker_regmodel.NVMeBEIF1.AdminRespFifo.Flr_Abrt</text>;
            failure_id : <text>F31</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>124@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F32 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.datatagusage_portlimit</text>;
            failure_id : <text>F32</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>125@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F33 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.datatagusage_lcmdlimit</text>;
            failure_id : <text>F33</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>126@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F34 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.fwow_dtmrk_fci_data1</text>;
            failure_id : <text>F34</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>127@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F35 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.fwow_dtmrk_fci_data2</text>;
            failure_id : <text>F35</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>128@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F36 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.fwow_dtmrk_fci_data3</text>;
            failure_id : <text>F36</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>129@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F37 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.fwow_dtmrk_fci_data4</text>;
            failure_id : <text>F37</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>130@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F38 {
            context : <text> </text>;
            description : <text>A callback named "uvm_reg_cbs" is already registered with object instance regmodel.NVMeBECONV.fwow_dtmrk_fci_cntl</text>;
            failure_id : <text>F38</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>131@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 0;
            tool : <text>UVM</text>;
    }

    failure F39 {
            context : <text> </text>;
            description : <text>Configured write datatag count=268 is greater than the maximum(76) allowed for cluster_size=MAX_16KB. Adjusting write datatag count=76</text>;
            failure_id : <text>F39</text>;
            kind : <text>FEBE_VIP</text>;
            module : <text>uvm_test_top.env.u_febe.u_febe_model</text>;
            reference : <text>8220@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 97395;
            tool : <text>UVM</text>;
    }

    failure F40 {
            context : <text> </text>;
            description : <text>Configured read datatag count=512 is greater than the maximum(128) allowed for cluster_size=MAX_16KB. Adjusting read datatag count=128</text>;
            failure_id : <text>F40</text>;
            kind : <text>FEBE_VIP</text>;
            module : <text>uvm_test_top.env.u_febe.u_febe_model</text>;
            reference : <text>8221@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 97395;
            tool : <text>UVM</text>;
    }

    failure F41 {
            context : <text> </text>;
            description : <text>Temporary callback added for SGL buffer byte alignment (DENEB-2415)</text>;
            failure_id : <text>F41</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[0].sequencer@@deneb_nvme_basic_io_base_seq.host_init_seq</text>;
            reference : <text>8266@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 151508;
            tool : <text>UVM</text>;
    }

    failure F42 {
            context : <text> </text>;
            description : <text>Temporary disable delaying init CQ for CMB (DENEB-3938)</text>;
            failure_id : <text>F42</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[0].sequencer@@deneb_nvme_basic_io_base_seq.host_init_seq</text>;
            reference : <text>8267@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 151508;
            tool : <text>UVM</text>;
    }

    failure F43 {
            context : <text> </text>;
            description : <text>Temporary callback added for SGL buffer byte alignment (DENEB-2415)</text>;
            failure_id : <text>F43</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[1].sequencer@@deneb_nvme_basic_io_base_seq.host_init_seq</text>;
            reference : <text>8272@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 151604;
            tool : <text>UVM</text>;
    }

    failure F44 {
            context : <text> </text>;
            description : <text>Temporary disable delaying init CQ for CMB (DENEB-3938)</text>;
            failure_id : <text>F44</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[1].sequencer@@deneb_nvme_basic_io_base_seq.host_init_seq</text>;
            reference : <text>8273@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 151604;
            tool : <text>UVM</text>;
    }

    failure F45 {
            context : <text> </text>;
            description : <text>A callback named "febe_model_cb" is already registered with object instance uvm_test_top.env.u_febe.u_febe_model</text>;
            failure_id : <text>F45</text>;
            kind : <text>UVM/CB/NAM/SAM</text>;
            module : <text>reporter</text>;
            reference : <text>9663@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 265585;
            tool : <text>UVM</text>;
    }

    failure F46 {
            context : <text> </text>;
            description : <text>Randomize Read Command due to Empty Write Commands Pool (thread id:1)</text>;
            failure_id : <text>F46</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[1].sequencer@@deneb_nvme_basic_io_base_seq.host_io_seq.host_seq</text>;
            reference : <text>10440@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 288373;
            tool : <text>UVM</text>;
    }

    failure F47 {
            context : <text> </text>;
            description : <text>Randomize Read Command due to Empty Write Commands Pool (thread id:3)</text>;
            failure_id : <text>F47</text>;
            kind : <text>DENEB_HOST</text>;
            module : <text>uvm_test_top.env.avery_agent[1].sequencer@@deneb_nvme_basic_io_base_seq.host_io_seq.host_seq</text>;
            reference : <text>10441@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            time : 288373;
            tool : <text>UVM</text>;
    }

    failure F48 {
            description : <text>maximum number of patterns (50) reached, stopping extraction. please note that further patterns might exist that were not extracted</text>;
            failure_id : <text>F48</text>;
            kind : <text>max_patterns</text>;
            reference : <text>1@/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
            severity : <text>warning</text>;
            tool : <text>scan_script</text>;
    }

    filter "vm_scan" {
            filter_files : <text>/data/data800/spbu_essd/wa/vmanager/jenkins2/scratch_spbu/elnath/DV/daily/elnath_beconv_daily/vm/scripts/custom.flt /tools/cadence/incisiv_15.10.010/vmanager/bin/uvm.flt /tools/cadence/incisiv_15.10.010/vmanager/bin/ius.flt</text>;
            filter_id : <text>vm_scan</text>;
            log_file : <text>/data/scratch_spbu/vm/vmanager/beconv_daily.tb_nvme.rtl_r1559.tb_r25028.fw_r.vmanager.18_07_24_21_45_51_2712/chain_0/nvme_stress_data_sgl_sanity_debug_tests/non_evp/stress_sanity_tests/run_2/local_log.log</text>;
    }

    failure F0 {
            description : <text>Complimentary Scanning was disabled!!! Note that complimentary scanning was disabled earlier, by using the '-disable' switch: vm_scan.pl /tools/cadence/incisiv_15.10.010/vmanager/bin/ovm_sv_lib.flt 
            /tools/cadence/incisiv_15.10.010/vmanager/bin/vm.flt /tools/cadence/incisiv_15.10.010/vmanager/bin/shell.flt -disable -notextvsof -vsofdir ./.vm_scan.sjlxi50.4781.2</text>;
            failure_id : <text>F0</text>;
            kind : <text>scan_disable</text>;
            severity : <text>warning</text>;
            tool : <text>scan_script</text>;
    }

}`

erezsh commented 6 years ago

Sorry, but you will have to find a small example that produces this error.

Also, please provide the full exception.

justin-seo commented 6 years ago

Sorry, I don't think it was a lark problem actually! It turned out that my input file had duplicate functions with the same name so in my reverse operation, the newer function with the same name overrides the older function. I believe it is not a problem from larks end. Thank you for the help!

erezsh commented 6 years ago

Oh, I knew it wasn't a Lark problem :)

Glad it helped.