data/full_repos/permissive/143278/ivltests/unary_minus.v
data/verilator_xmls/944c6d07-3745-422d-a412-a7eb68f782d5.xml
module main;

   reg [7:0] x, y;

   initial begin
      x = -4;
      if (x !== 8'hfc) begin
	 $display("FAILED -- x = -4 --> %b", x);
	 $finish;
      end

      x = 4;
      if (x !== 8'h04) begin
	 $display("FAILED");
	 $finish;
      end

      y = -x;
      if (y !== 8'hfc) begin
	 $display("FAILED -- y = -%b --> %b", x, y);
	 $finish;
      end

      $display("PASSED");
   end


endmodule
module main;


   reg [7:0] x, y;

   initial begin
      x = -4;
      if (x !== 8'hfc) begin
	 $display("FAILED -- x = -4 --> %b", x);
	 $finish;
      end

      x = 4;
      if (x !== 8'h04) begin
	 $display("FAILED");
	 $finish;
      end

      y = -x;
      if (y !== 8'hfc) begin
	 $display("FAILED -- y = -%b --> %b", x, y);
	 $finish;
      end

      $display("PASSED");
   end


endmodule