You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
470 B

5 years ago
  1. template Main() {
  2. signal input in;
  3. signal output out[3];
  4. var c = 1;
  5. if (c == 1) {
  6. out[0] <== in +1; // TRUE
  7. }
  8. if (c == 0) {
  9. out[0] <== in +2;
  10. }
  11. c = c +1;
  12. if (c == 2) {
  13. out[1] <== in + 3; // TRUE
  14. } else {
  15. out[1] <== in + 4;
  16. }
  17. c = c +1;
  18. if (c == 2) {
  19. out[2] <== in + 5;
  20. } else {
  21. out[2] <== in + 6; // TRUE
  22. }
  23. }
  24. component main = Main();