Guest User

Untitled

a guest
Sep 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. pushq %rbp
  2. movq %rsp, %rbp
  3. movl %edi, -4(%rbp)
  4. movl -4(%rbp), %eax
  5. addl $1, %eax
  6. leave
  7. ret
  8.  
  9. | rectangles aPoint collisions |
  10. rectangles := OrderedCollection
  11. with: (Rectangle left: 0 right: 10 top: 100 bottom: 200)
  12. with: (Rectangle left: 10 right: 10 top: 110 bottom: 210).
  13. aPoint := Point x: 20 y: 20.
  14. collisions := rectangles select: [:aRect | aRect containsPoint: aPoint].
  15.  
  16.  
  17. let twice f x = f(f(x))
  18. let inc x = x + 1
  19. let x = inc 5
  20. let y = twice inc 5
  21.  
  22.  
  23. - human(socrates).
  24. - mortal(X) :- human(X).
  25. -? mortal(Who).
  26. Who = socrates
Add Comment
Please, Sign In to add comment