Advertisement
Guest User

Untitled

a guest
Jun 10th, 2022
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function isprime(i1 : int) : int
  2. incoming_reg(i1, rdi)
  3. .L:
  4. i4 = i1 == 1
  5. i5 = i4
  6. if itrue(i5) then goto .L0
  7. .L:
  8. i7 = i1 < 1
  9. i8 = i7
  10. if itrue(i8) then goto .L1
  11. .L:
  12. i9 = i1
  13. .L2:
  14. i11 = i9 - 1
  15. i9 = i11
  16. i13 = i9 == 1
  17. i14 = i13
  18. if itrue(i14) then goto .L0
  19. .L:
  20. i15 = i1 % i9
  21. i16 = i15
  22. i18 = i16 == 0
  23. i19 = i18
  24. if itrue(i19) then goto .L1
  25. .L:
  26. goto .L2
  27. ends_in_dead
  28. .L:
  29. .L1:
  30. return_int(0)
  31. ends_in_dead
  32. .L:
  33. .L0:
  34. return_int(1)
  35. ends_in_dead
  36. .L:
  37. .L:
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement