0

Hi so im completely new to scalacheck. So im building an obfuscator, and I want to check if the obfuscated code which i generate is correct. My function changes a while loop to a switch, so is there some way i can check if the structure of the switch is how i wanted it to be made?

Alan Liang
  • 17
  • 3

1 Answers1

0

For all valid inputs, check if the generated function generates the same output as the obfuscated function. For an arbitrary function, you'll have to write your own generator.

Reactormonk
  • 20,410
  • 12
  • 66
  • 110