t161.trans 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Module(body=[FunctionDef(name='doadd',
  2. args=arguments(args=[Name(id='a',
  3. ctx=Param()),
  4. Name(id='b',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Return(value=BinOp(left=Name(id='a',
  10. ctx=Load()),
  11. op=Add(),
  12. right=Name(id='b',
  13. ctx=Load())))],
  14. decorator_list=[]),
  15. FunctionDef(name='dosub',
  16. args=arguments(args=[Name(id='a',
  17. ctx=Param()),
  18. Name(id='b',
  19. ctx=Param())],
  20. vararg=None,
  21. kwarg=None,
  22. defaults=[]),
  23. body=[Return(value=BinOp(left=Name(id='a',
  24. ctx=Load()),
  25. op=Sub(),
  26. right=Name(id='b',
  27. ctx=Load())))],
  28. decorator_list=[]),
  29. Print(dest=None,
  30. values=[Call(func=Name(id='doadd',
  31. ctx=Load()),
  32. args=[Num(n=123),
  33. Num(n=12345678987654321)],
  34. keywords=[],
  35. starargs=None,
  36. kwargs=None)],
  37. nl=True),
  38. Print(dest=None,
  39. values=[Call(func=Name(id='doadd',
  40. ctx=Load()),
  41. args=[Num(n=-123),
  42. Num(n=12345678987654321)],
  43. keywords=[],
  44. starargs=None,
  45. kwargs=None)],
  46. nl=True),
  47. Print(dest=None,
  48. values=[Call(func=Name(id='doadd',
  49. ctx=Load()),
  50. args=[Num(n=-123),
  51. Num(n=-12345678987654321)],
  52. keywords=[],
  53. starargs=None,
  54. kwargs=None)],
  55. nl=True),
  56. Print(dest=None,
  57. values=[Call(func=Name(id='doadd',
  58. ctx=Load()),
  59. args=[Num(n=123),
  60. Num(n=-12345678987654321)],
  61. keywords=[],
  62. starargs=None,
  63. kwargs=None)],
  64. nl=True),
  65. Print(dest=None,
  66. values=[Call(func=Name(id='dosub',
  67. ctx=Load()),
  68. args=[Num(n=123),
  69. Num(n=12345678987654321)],
  70. keywords=[],
  71. starargs=None,
  72. kwargs=None)],
  73. nl=True),
  74. Print(dest=None,
  75. values=[Call(func=Name(id='dosub',
  76. ctx=Load()),
  77. args=[Num(n=12345678987654321),
  78. Num(n=123)],
  79. keywords=[],
  80. starargs=None,
  81. kwargs=None)],
  82. nl=True),
  83. Print(dest=None,
  84. values=[Call(func=Name(id='dosub',
  85. ctx=Load()),
  86. args=[Num(n=-12345678987654321),
  87. Num(n=123)],
  88. keywords=[],
  89. starargs=None,
  90. kwargs=None)],
  91. nl=True),
  92. Print(dest=None,
  93. values=[Call(func=Name(id='dosub',
  94. ctx=Load()),
  95. args=[Num(n=-12345678987654321),
  96. Num(n=-123)],
  97. keywords=[],
  98. starargs=None,
  99. kwargs=None)],
  100. nl=True)])