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?
Asked
Active
Viewed 47 times
1 Answers
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.
![](../../users/profiles/411944.webp)
Reactormonk
- 20,410
- 12
- 66
- 110