t430.trans 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. Module(body=[Print(dest=None,
  2. values=[Str(s='\nINTEGERS')],
  3. nl=True),
  4. Print(dest=None,
  5. values=[Compare(left=BinOp(left=Num(n=5),
  6. op=BitOr(),
  7. right=Num(n=10)),
  8. ops=[Eq()],
  9. comparators=[Num(n=15)])],
  10. nl=True),
  11. Print(dest=None,
  12. values=[Compare(left=BinOp(left=Num(n=6),
  13. op=BitXor(),
  14. right=Num(n=5)),
  15. ops=[Eq()],
  16. comparators=[Num(n=3)])],
  17. nl=True),
  18. Print(dest=None,
  19. values=[Compare(left=BinOp(left=Num(n=15),
  20. op=BitAnd(),
  21. right=Num(n=1)),
  22. ops=[Eq()],
  23. comparators=[Num(n=1)])],
  24. nl=True),
  25. Print(dest=None,
  26. values=[Compare(left=BinOp(left=Num(n=6),
  27. op=LShift(),
  28. right=Num(n=2)),
  29. ops=[Eq()],
  30. comparators=[Num(n=24)])],
  31. nl=True),
  32. Print(dest=None,
  33. values=[Compare(left=BinOp(left=Num(n=6),
  34. op=RShift(),
  35. right=Num(n=2)),
  36. ops=[Eq()],
  37. comparators=[Num(n=1)])],
  38. nl=True),
  39. Print(dest=None,
  40. values=[Compare(left=UnaryOp(op=Invert(),
  41. operand=Num(n=3)),
  42. ops=[Eq()],
  43. comparators=[Num(n=-4)])],
  44. nl=True),
  45. Print(dest=None,
  46. values=[Compare(left=BinOp(left=Num(n=325),
  47. op=BitOr(),
  48. right=Num(n=512)),
  49. ops=[Eq()],
  50. comparators=[Num(n=837)])],
  51. nl=True),
  52. Print(dest=None,
  53. values=[Compare(left=BinOp(left=Num(n=640),
  54. op=BitXor(),
  55. right=Num(n=540)),
  56. ops=[Eq()],
  57. comparators=[Num(n=156)])],
  58. nl=True),
  59. Print(dest=None,
  60. values=[Compare(left=BinOp(left=Num(n=4064),
  61. op=BitAnd(),
  62. right=Num(n=3840)),
  63. ops=[Eq()],
  64. comparators=[Num(n=3840)])],
  65. nl=True),
  66. Print(dest=None,
  67. values=[Compare(left=BinOp(left=Num(n=1523),
  68. op=LShift(),
  69. right=Num(n=2)),
  70. ops=[Eq()],
  71. comparators=[Num(n=6092)])],
  72. nl=True),
  73. Print(dest=None,
  74. values=[Compare(left=BinOp(left=Num(n=1523),
  75. op=RShift(),
  76. right=Num(n=2)),
  77. ops=[Eq()],
  78. comparators=[Num(n=380)])],
  79. nl=True),
  80. Print(dest=None,
  81. values=[Compare(left=UnaryOp(op=Invert(),
  82. operand=Num(n=668)),
  83. ops=[Eq()],
  84. comparators=[Num(n=-669)])],
  85. nl=True),
  86. Print(dest=None,
  87. values=[Compare(left=BinOp(left=Num(n=4080),
  88. op=BitOr(),
  89. right=Num(n=0)),
  90. ops=[Eq()],
  91. comparators=[Num(n=4080)])],
  92. nl=True),
  93. Print(dest=None,
  94. values=[Compare(left=BinOp(left=Num(n=4336),
  95. op=BitXor(),
  96. right=Num(n=496)),
  97. ops=[Eq()],
  98. comparators=[Num(n=4352)])],
  99. nl=True),
  100. Print(dest=None,
  101. values=[Compare(left=BinOp(left=Num(n=4080),
  102. op=BitAnd(),
  103. right=Num(n=61455)),
  104. ops=[Eq()],
  105. comparators=[Num(n=0)])],
  106. nl=True),
  107. Print(dest=None,
  108. values=[Compare(left=BinOp(left=Num(n=23041),
  109. op=LShift(),
  110. right=Num(n=2)),
  111. ops=[Eq()],
  112. comparators=[Num(n=92164)])],
  113. nl=True),
  114. Print(dest=None,
  115. values=[Compare(left=BinOp(left=Num(n=23041),
  116. op=RShift(),
  117. right=Num(n=2)),
  118. ops=[Eq()],
  119. comparators=[Num(n=5760)])],
  120. nl=True),
  121. Print(dest=None,
  122. values=[Compare(left=UnaryOp(op=Invert(),
  123. operand=Num(n=18992)),
  124. ops=[Eq()],
  125. comparators=[Num(n=-18993)])],
  126. nl=True),
  127. Print(dest=None,
  128. values=[Compare(left=BinOp(left=Num(n=124),
  129. op=BitOr(),
  130. right=Num(n=37)),
  131. ops=[Eq()],
  132. comparators=[Num(n=125)])],
  133. nl=True),
  134. Print(dest=None,
  135. values=[Compare(left=BinOp(left=Num(n=3847),
  136. op=BitXor(),
  137. right=Num(n=4958)),
  138. ops=[Eq()],
  139. comparators=[Num(n=7257)])],
  140. nl=True),
  141. Print(dest=None,
  142. values=[Compare(left=BinOp(left=Num(n=745),
  143. op=BitAnd(),
  144. right=Num(n=348)),
  145. ops=[Eq()],
  146. comparators=[Num(n=72)])],
  147. nl=True),
  148. Print(dest=None,
  149. values=[Compare(left=BinOp(left=Num(n=1834),
  150. op=LShift(),
  151. right=Num(n=2)),
  152. ops=[Eq()],
  153. comparators=[Num(n=7336)])],
  154. nl=True),
  155. Print(dest=None,
  156. values=[Compare(left=BinOp(left=Num(n=1834),
  157. op=RShift(),
  158. right=Num(n=2)),
  159. ops=[Eq()],
  160. comparators=[Num(n=458)])],
  161. nl=True),
  162. Print(dest=None,
  163. values=[Compare(left=UnaryOp(op=Invert(),
  164. operand=Num(n=2398)),
  165. ops=[Eq()],
  166. comparators=[Num(n=-2399)])],
  167. nl=True),
  168. Print(dest=None,
  169. values=[Str(s='\nLONG INTEGERS')],
  170. nl=True),
  171. Expr(value=Str(s="\nprint 0b0101L | 0b1010L == 0b1111L\nprint 0b0110L ^ 0b0101L == 0b0011L\nprint 0b1111L & 0b0001L == 0b0001L\nprint 0b0110L << 2L == 0b11000L\nprint 0b0110L >> 2L == 0b0001L\n#print ~0b0011L == -0b0100L #skulpt doesn't accept the ~ operator with longs\n")),
  172. Print(dest=None,
  173. values=[Compare(left=BinOp(left=Num(n=325),
  174. op=BitOr(),
  175. right=Num(n=512)),
  176. ops=[Eq()],
  177. comparators=[Num(n=837)])],
  178. nl=True),
  179. Print(dest=None,
  180. values=[Compare(left=BinOp(left=Num(n=640),
  181. op=BitXor(),
  182. right=Num(n=540)),
  183. ops=[Eq()],
  184. comparators=[Num(n=156)])],
  185. nl=True),
  186. Print(dest=None,
  187. values=[Compare(left=BinOp(left=Num(n=4064),
  188. op=BitAnd(),
  189. right=Num(n=3840)),
  190. ops=[Eq()],
  191. comparators=[Num(n=3840)])],
  192. nl=True),
  193. Print(dest=None,
  194. values=[Compare(left=BinOp(left=Num(n=1523),
  195. op=LShift(),
  196. right=Num(n=2)),
  197. ops=[Eq()],
  198. comparators=[Num(n=6092)])],
  199. nl=True),
  200. Print(dest=None,
  201. values=[Compare(left=BinOp(left=Num(n=1523),
  202. op=RShift(),
  203. right=Num(n=2)),
  204. ops=[Eq()],
  205. comparators=[Num(n=380)])],
  206. nl=True),
  207. Print(dest=None,
  208. values=[Compare(left=BinOp(left=Num(n=4080),
  209. op=BitOr(),
  210. right=Num(n=0)),
  211. ops=[Eq()],
  212. comparators=[Num(n=4080)])],
  213. nl=True),
  214. Print(dest=None,
  215. values=[Compare(left=BinOp(left=Num(n=4336),
  216. op=BitXor(),
  217. right=Num(n=496)),
  218. ops=[Eq()],
  219. comparators=[Num(n=4352)])],
  220. nl=True),
  221. Print(dest=None,
  222. values=[Compare(left=BinOp(left=Num(n=4080),
  223. op=BitAnd(),
  224. right=Num(n=61455)),
  225. ops=[Eq()],
  226. comparators=[Num(n=0)])],
  227. nl=True),
  228. Print(dest=None,
  229. values=[Compare(left=BinOp(left=Num(n=23041),
  230. op=LShift(),
  231. right=Num(n=2)),
  232. ops=[Eq()],
  233. comparators=[Num(n=92164)])],
  234. nl=True),
  235. Print(dest=None,
  236. values=[Compare(left=BinOp(left=Num(n=23041),
  237. op=RShift(),
  238. right=Num(n=2)),
  239. ops=[Eq()],
  240. comparators=[Num(n=5760)])],
  241. nl=True),
  242. Print(dest=None,
  243. values=[Compare(left=BinOp(left=Num(n=124),
  244. op=BitOr(),
  245. right=Num(n=37)),
  246. ops=[Eq()],
  247. comparators=[Num(n=125)])],
  248. nl=True),
  249. Print(dest=None,
  250. values=[Compare(left=BinOp(left=Num(n=3847),
  251. op=BitXor(),
  252. right=Num(n=4958)),
  253. ops=[Eq()],
  254. comparators=[Num(n=7257)])],
  255. nl=True),
  256. Print(dest=None,
  257. values=[Compare(left=BinOp(left=Num(n=745),
  258. op=BitAnd(),
  259. right=Num(n=348)),
  260. ops=[Eq()],
  261. comparators=[Num(n=72)])],
  262. nl=True),
  263. Print(dest=None,
  264. values=[Compare(left=BinOp(left=Num(n=1834),
  265. op=LShift(),
  266. right=Num(n=2)),
  267. ops=[Eq()],
  268. comparators=[Num(n=7336)])],
  269. nl=True),
  270. Print(dest=None,
  271. values=[Compare(left=BinOp(left=Num(n=1834),
  272. op=RShift(),
  273. right=Num(n=2)),
  274. ops=[Eq()],
  275. comparators=[Num(n=458)])],
  276. nl=True),
  277. Print(dest=None,
  278. values=[Compare(left=BinOp(left=Call(func=Name(id='int',
  279. ctx=Load()),
  280. args=[BinOp(left=Str(s='123456789'),
  281. op=Mult(),
  282. right=Num(n=10))],
  283. keywords=[],
  284. starargs=None,
  285. kwargs=None),
  286. op=BitAnd(),
  287. right=Call(func=Name(id='int',
  288. ctx=Load()),
  289. args=[BinOp(left=Str(s='987654321'),
  290. op=Mult(),
  291. right=Num(n=10))],
  292. keywords=[],
  293. starargs=None,
  294. kwargs=None)),
  295. ops=[Eq()],
  296. comparators=[Num(n=95579309557357885362290225874030292317027763371981185445626785720401260273886076820525585)])],
  297. nl=True),
  298. Print(dest=None,
  299. values=[Call(func=Name(id='type',
  300. ctx=Load()),
  301. args=[BinOp(left=Call(func=Name(id='int',
  302. ctx=Load()),
  303. args=[BinOp(left=Str(s='123456789'),
  304. op=Mult(),
  305. right=Num(n=10))],
  306. keywords=[],
  307. starargs=None,
  308. kwargs=None),
  309. op=BitAnd(),
  310. right=Call(func=Name(id='int',
  311. ctx=Load()),
  312. args=[BinOp(left=Str(s='987654321'),
  313. op=Mult(),
  314. right=Num(n=10))],
  315. keywords=[],
  316. starargs=None,
  317. kwargs=None))],
  318. keywords=[],
  319. starargs=None,
  320. kwargs=None)],
  321. nl=True)])