data/full_repos/permissive/157287159/BambooFox CTF 2021/Flag_checker/chall.v
 line:37: before: "assign"
1: b'%Error: Cannot find file containing module: CTF\n        ... Looked in:\n             data/full_repos/permissive/157287159/BambooFox/CTF\n             data/full_repos/permissive/157287159/BambooFox/CTF.v\n             data/full_repos/permissive/157287159/BambooFox/CTF.sv\n             CTF\n             CTF.v\n             CTF.sv\n             obj_dir/CTF\n             obj_dir/CTF.v\n             obj_dir/CTF.sv\n%Error: Cannot find file containing module: 2021/Flag_checker,data/full_repos/permissive/157287159\n%Error: Cannot find file containing module: data/full_repos/permissive/157287159/BambooFox\n%Error: Cannot find file containing module: 2021/Flag_checker/chall.v\n%Error: Exiting due to 4 error(s)\n'
module chall(
  input clk,
  input rst,
  input[7:0] inp,
  output reg[7:0] res
);
  wire[1:0] val0 = inp[1:0];
  wire[1:0] val1 = inp[3:2];
  wire[1:0] val2 = inp[5:4];
  wire[1:0] val3 = inp[7:6];
  wire[7:0] res0, res1, res2, res3;

  magic m0(.clk(clk), .rst(rst), .inp(inp), .val(val0), .res(res0));
  magic m1(.clk(clk), .rst(rst), .inp(res0), .val(val1), .res(res1));
  magic m2(.clk(clk), .rst(rst), .inp(res1), .val(val2), .res(res2));
  magic m3(.clk(clk), .rst(rst), .inp(res2), .val(val3), .res(res3));

  always @(posedge clk) begin
    if (rst) begin
      assign res = inp;
    end else begin
      assign res = res3;
    end
  end
endmodule
module chall(
  input clk,
  input rst,
  input[7:0] inp,
  output reg[7:0] res
);

  wire[1:0] val0 = inp[1:0];
  wire[1:0] val1 = inp[3:2];
  wire[1:0] val2 = inp[5:4];
  wire[1:0] val3 = inp[7:6];
  wire[7:0] res0, res1, res2, res3;

  magic m0(.clk(clk), .rst(rst), .inp(inp), .val(val0), .res(res0));
  magic m1(.clk(clk), .rst(rst), .inp(res0), .val(val1), .res(res1));
  magic m2(.clk(clk), .rst(rst), .inp(res1), .val(val2), .res(res2));
  magic m3(.clk(clk), .rst(rst), .inp(res2), .val(val3), .res(res3));

  always @(posedge clk) begin
    if (rst) begin
      assign res = inp;
    end else begin
      assign res = res3;
    end
  end
endmodule