data/full_repos/permissive/157287159/BambooFox CTF 2021/Flag_checker/magic.v
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/magic.v\n%Error: Exiting due to 4 error(s)\n'
module magic(
  input clk,
  input rst,
  input[7:0] inp,
  input[1:0] val,
  output reg[7:0] res
);
  always @(*) begin
    case (val)
      2'b00: res = (inp >> 3) | (inp << 5);
      2'b01: res = (inp << 2) | (inp >> 6);
      2'b10: res = inp + 8'b110111;
      2'b11: res = inp ^ 8'd55;
    endcase
  end
endmodule
module magic(
  input clk,
  input rst,
  input[7:0] inp,
  input[1:0] val,
  output reg[7:0] res
);

  always @(*) begin
    case (val)
      2'b00: res = (inp >> 3) | (inp << 5);
      2'b01: res = (inp << 2) | (inp >> 6);
      2'b10: res = inp + 8'b110111;
      2'b11: res = inp ^ 8'd55;
    endcase
  end
endmodule