Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isprime(i1 : int) : int
- incoming_reg(i1, rdi)
- .L:
- i4 = i1 == 1
- i5 = i4
- if itrue(i5) then goto .L0
- .L:
- i7 = i1 < 1
- i8 = i7
- if itrue(i8) then goto .L1
- .L:
- i9 = i1
- .L2:
- i11 = i9 - 1
- i9 = i11
- i13 = i9 == 1
- i14 = i13
- if itrue(i14) then goto .L0
- .L:
- i15 = i1 % i9
- i16 = i15
- i18 = i16 == 0
- i19 = i18
- if itrue(i19) then goto .L1
- .L:
- goto .L2
- ends_in_dead
- .L:
- .L1:
- return_int(0)
- ends_in_dead
- .L:
- .L0:
- return_int(1)
- ends_in_dead
- .L:
- .L:
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement