Updated submodular_test to ensure consistent behavior with different toolchains.
Updated submodular_test to ensure consistent behavior with different
toolchains.

PiperOrigin-RevId: 425098811

google/xls,google/xls,google/xls,google/xls,google/xls,google/xls