data/full_repos/permissive/508266496/sources/modFunction.v
1: b'%Warning-WIDTH: data/full_repos/permissive/508266496/sources/modFunction.v:34: Operator ASSIGN expects 32 bits on the Assign RHS, but Assign RHS\'s VARREF \'Hyrja2\' generates 1 bits.\n                                                                             : ... In instance modFunction\nnum2 = Hyrja2;\n     ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/508266496/sources/modFunction.v:35: Operator ASSIGN expects 32 bits on the Assign RHS, but Assign RHS\'s VARREF \'Hyrja1\' generates 1 bits.\n                                                                             : ... In instance modFunction\nnum1 = Hyrja1;\n     ^\n%Warning-WIDTH: data/full_repos/permissive/508266496/sources/modFunction.v:38: Operator ADD expects 32 bits on the RHS, but RHS\'s VARREF \'Hyrja2\' generates 1 bits.\n                                                                             : ... In instance modFunction\nassign num2 = num2 + Hyrja2;\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/508266496/sources/modFunction.v:40: Operator SUB expects 32 bits on the RHS, but RHS\'s VARREF \'Hyrja2\' generates 1 bits.\n                                                                             : ... In instance modFunction\nassign num2 = num2 - Hyrja2;\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/508266496/sources/modFunction.v:43: Operator ASSIGNW expects 1 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 bits.\n                                                                             : ... In instance modFunction\nassign Dalja = num1 - num2;\n             ^\n%Error: Exiting due to 5 warning(s)\n'
module modFunction(
    input Hyrja1,
    input Hyrja2,
    output Dalja
    );


integer num2, num1;

initial
begin
num2 = Hyrja2;
num1 = Hyrja1;
while(num2 < num1)
begin
assign num2 = num2 + Hyrja2;
end
assign num2 = num2 - Hyrja2;
end

assign Dalja = num1 - num2;

endmodule
module modFunction(
    input Hyrja1,
    input Hyrja2,
    output Dalja
    );



integer num2, num1;

initial
begin
num2 = Hyrja2;
num1 = Hyrja1;
while(num2 < num1)
begin
assign num2 = num2 + Hyrja2;
end
assign num2 = num2 - Hyrja2;
end

assign Dalja = num1 - num2;

endmodule