data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv
1: b"%Error: data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv:10: syntax error, unexpected initial\ninitial begin\n^~~~~~~\n%Error: data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv:78: syntax error, unexpected always\nalways @(posedge clk) begin\n^~~~~~\n%Error: data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv:82: syntax error, unexpected if\n    if (test_running) begin\n    ^~\n%Error: data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv:93: syntax error, unexpected IDENTIFIER\n                full_filename = test_file;\n                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/504248338/verilog/dv/riscv_regress/riscv_runtests.sv:110: syntax error, unexpected force\n         force u_top.u_riscv_top.u_intf.u_dcache.cfg_force_flush = 1'b1;\n         ^~~~~\n%Error: Exiting due to 5 error(s)\n"
function logic [255:0] get_ref_filename (logic [255:0] testname);
        logic [255:0] res;
        int i, j;
        logic [79:0] pattern;
        begin
            pattern = 80'h636f6d706c69616e6365;
        
            for(int i = 0; i <= 176; i++) begin
                if(testname[i+:80] == pattern) begin
                    testname[(i-8)+:88] = 0;
                    break;
                end
            end
        
            for(i = 32; i <= 248; i += 8) begin
                if(testname[i+:8] == 0) break;
            end
            i -= 8;
            for(j = 255; i > 24; i -= 8) begin
                res[j-:8] = testname[i+:8];
                j -= 8;
            end
            for(; j >=0;j -= 8) begin
                res[j-:8] = 0;
            end
        
            return res;
        end
        endfunction
function logic [255:0] get_ref_filename (logic [255:0] testname);

        logic [255:0] res;
        int i, j;
        logic [79:0] pattern;
        begin
            pattern = 80'h636f6d706c69616e6365;
        
            for(int i = 0; i <= 176; i++) begin
                if(testname[i+:80] == pattern) begin
                    testname[(i-8)+:88] = 0;
                    break;
                end
            end
        
            for(i = 32; i <= 248; i += 8) begin
                if(testname[i+:8] == 0) break;
            end
            i -= 8;
            for(j = 255; i > 24; i -= 8) begin
                res[j-:8] = testname[i+:8];
                j -= 8;
            end
            for(; j >=0;j -= 8) begin
                res[j-:8] = 0;
            end
        
            return res;
        end
        endfunction