Guppy should guarantee that compiling the same program twice produces exactly the same Hugr.
This can potentially go wrong if time-of-build or other timestamps are included by guppy in the Hugr. Best is to provide an option to use a timestamp other than gettimeofday.
If we decide to do this then we should write some pytest magic that runs the guppy compiler twice, and verifies that exactly the same Hugr is produced each time.
Guppy should guarantee that compiling the same program twice produces exactly the same Hugr.
This can potentially go wrong if time-of-build or other timestamps are included by guppy in the Hugr. Best is to provide an option to use a timestamp other than
gettimeofday
.If we decide to do this then we should write some pytest magic that runs the guppy compiler twice, and verifies that exactly the same Hugr is produced each time.