Commits

Armin Rigo  committed 8f86672

Cancel this change

  • Participants
  • Parent commits 60e786a
  • Branches stringbuilder2-perf

Comments (0)

Files changed (1)

File pypy/module/pypyjit/test_pypy_c/test_string.py

         assert log.result == main(1000)
         loop, = log.loops_by_filename(self.filepath)
         assert loop.match("""
-            i82 = int_gt(i77, 0)
-            guard_true(i82, descr=...)
+            i7 = int_gt(i4, 0)
+            guard_true(i7, descr=...)
             guard_not_invalidated(descr=...)
-            p83 = call(ConstClass(ll_int2dec__Signed), i77, descr=<Callr . i EF=3>)
+            p9 = call(ConstClass(ll_int2dec__Signed), i4, descr=<Callr . i EF=3>)
             guard_no_exception(descr=...)
-            i84 = strlen(p83)
-            i85 = int_is_true(i84)
-            guard_true(i85, descr=...)
-            i86 = strgetitem(p83, 0)
-            i87 = int_eq(i86, 45)
-            guard_false(i87, descr=...)
-            i88 = int_neg(i84)
-            i89 = int_add(24, i84)
-            i90 = uint_le(i89, 56)
-            guard_true(i90, descr=...)
-            p92 = newstr(32)
-            copystrcontent(p83, p92, 0, 0, i84)
-            i93 = uint_lt(i89, 56)
-            guard_true(i93, descr=...)
-            i94 = int_add(i89, 1)
-            strsetitem(p92, i84, 32)
-            i95 = int_add(i94, i84)
-            i96 = uint_le(i95, 56)
-            guard_true(i96, descr=...)
-            i97 = int_sub(i94, 24)
-            copystrcontent(p83, p92, 0, i97, i84)
-            i98 = int_sub(56, i95)
-            i99 = int_sub(32, i98)
-            i100 = int_ne(32, i99)
-            guard_true(i100, descr=...)
-            p101 = call(ConstClass(ll_shrink_array__rpy_stringPtr_Signed), p92, i99, descr=<Callr . ri EF=4 OS=3>)
+            i10 = strlen(p9)
+            i11 = int_is_true(i10)
+            guard_true(i11, descr=...)
+            i13 = strgetitem(p9, 0)
+            i15 = int_eq(i13, 45)
+            guard_false(i15, descr=...)
+            i17 = int_neg(i10)
+            i19 = int_gt(i10, 23)
+            guard_false(i19, descr=...)
+            p21 = newstr(23)
+            copystrcontent(p9, p21, 0, 0, i10)
+            i25 = int_add(1, i10)
+            i26 = int_gt(i25, 23)
+            guard_false(i26, descr=...)
+            strsetitem(p21, i10, 32)
+            i30 = int_add(i10, i25)
+            i31 = int_gt(i30, 23)
+            guard_false(i31, descr=...)
+            copystrcontent(p9, p21, 0, i25, i10)
+            i33 = int_lt(i30, 23)
+            guard_true(i33, descr=...)
+            p35 = call(ConstClass(ll_shrink_array__rpy_stringPtr_Signed), p21, i30, descr=<Callr . ri EF=4 OS=3>)
             guard_no_exception(descr=...)
-            i102 = strlen(p101)
-            i103 = int_add_ovf(i75, i102)
+            i37 = strlen(p35)
+            i38 = int_add_ovf(i5, i37)
             guard_no_overflow(descr=...)
-            i104 = int_sub(i77, 1)
+            i40 = int_sub(i4, 1)
             --TICK--
             jump(..., descr=...)
         """)