This is used to help filling the 1040NR table.
Input the numbers on W-2 and 1042-S and run the file, check the tax table using the line_41 value to obtain line_42. Run the file for a second time with the modified line_42 and there is the results to fill in 1040NR.