fix decode && update cmp res

This commit is contained in:
2026-07-17 02:33:19 +03:00
parent 67e7fec3e0
commit b528326bf2
152 changed files with 345 additions and 77 deletions
+1 -13
View File
@@ -370,7 +370,7 @@ static int decode_base62(const char* base62_str, char* bit_pt) {
num4b &= ~mask; // low bits
assert(num2b != mask); // not both bits set
bit_pt = putnbits(6, 61 + num2b >> 4, bit_pt); // 61 + (0|1|2) in high bits
bit_pt = putnbits(6, 61 + (num2b >> 4), bit_pt); // 61 + (0|1|2) in high bits
bit_pt = putnbits(4, num4b, bit_pt);
}
@@ -577,18 +577,6 @@ int rpmsetcmp(const char* str1, const char* str2) {
hash_arr2 = pt2;
}
for (int i = 0; i < cnt1; ++i) {
printf("%d ", hash_arr1[i]);
}
printf("\n");
printf("\n\n\n");
for (int i = 0; i < cnt2; ++i) {
printf("%d ", hash_arr2[i]);
}
printf("\n");
// compare
int ge = 1;
int le = 1;
+1 -1
View File
@@ -1,6 +1,6 @@
set_c /home/krosh/Docs/ARSV/reimplement/newset.c
rpm_root /home/krosh/Docs/ARSV/rpm-build
runs 3
runs 10
case true-libc /usr/bin/true /usr/lib/libc.so.6
case ls-libc /usr/bin/ls /usr/lib/libc.so.6
case bash-libc /usr/bin/bash /usr/lib/libc.so.6
1 set_c /home/krosh/Docs/ARSV/reimplement/newset.c
2 rpm_root /home/krosh/Docs/ARSV/rpm-build
3 runs 3 10
4 case true-libc
5 case ls-libc
6 case bash-libc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -2,5 +2,5 @@ input /usr/bin/bash
kind executable
bpp_mode auto
role object labels bpp set set_new_ns set_add_total_ns set_fini_ns set_free_ns set_api_total_ns
required /usr/lib/libc.so.6 219 22 set:phJHRl3EzNHzMh24nFH1HG34VOiwtYmZDp9loYdzk0Me6ZAoGEcRZ0JmtuArQAYloeFVP3zyunTSKwV7QyS3NAsFZLwLG9tZdg69kIXEFrwPmo4utjk5BGFMraU7L16OPHcsCujvjk4cwZFwW8MgXuJNYZiJZm9eKIeZ5raZ6PVbCxFh90gE3l23ICpQPp3unbKn6uGWKben4WybxAecE9eQT5kbFTmc7PjPIrjiZCKyILUAU72EQSJE0kixTzN4FgGp3OnZGQFB2I5sfudDSZxefsQFMd6KTpRKPhgFThKYIUbAHNvIFUjIBRK6QjVGkZubCDU0SL2nMbzPZeGkTZev3Zld0SnnRsyGrDlBgw2XfrJUn4toAVapu9n2Y7wgbZtMQEWxoxpBZ0aDSwKn916ZusjCQZm46pruOAzEmwUHoKiiW8QQeZ9A065jEH5QsxgiWBuGKRq5ZahkJSCxBS42GZ9o15vfSC5aiD9AsjZKSpvcbsskcQsJAXZyMwdc76wto8RAX2LRa9aZi4kmbtIORg0j2EhefPZ7ZCApoCuW21EJxPkrx7fsfMOvyYUQrDfwipSpMk 1394 42278 92727 13159 149558
required /usr/lib/libreadline.so.8 172 20 set:nfYDPzutupSCtKMMFS4u0wLhoyNvTUoWZhi1IBiOyPVtZE8o2z0t8b1CAeZ8fU9GiF3zSAkcxjND3ajc4GcnoKV4ZzozDt43sQDfvWcaZzj81e007v4HF306o8ekjuTFCZJkH106Fk9fC2CfKZ0D388wmj5ZLhQAXIRVXyPFG9P09l3GuZ2Qt4IUMuc5Sd4G30qlnN51nnt3zCur9eDP7ObTrdP1zCx8sEcI6qgaIkjvldHJS3mfYcc8UFdywsirObW9brZcUsOZzVoVwmcQ8wVDG8YTsZ4xwuRyn2u1y79TqKqky762kj4JZn95LkpcXEtFLvHR8pKlfSAY4Sbu9bvWHXK1gyGA7fuLfgHasnEaCdu11OsjkgF1OaqAwOyGmfw1ABYaJGCGMU9iMVmiM7E8F 279 37366 82225 17947 137817
required /usr/lib/libc.so.6 219 22 set:phJHRl3EzNHzMh24nFH1HG34VOiwtYmZDp9loYdzk0Me6ZAoGEcRZ0JmtuArQAYloeFVP3zyunTSKwV7QyS3NAsFZLwLG9tZdg69kIXEFrwPmo4utjk5BGFMraU7L16OPHcsCujvjk4cwZFwW8MgXuJNYZiJZm9eKIeZ5raZ6PVbCxFh90gE3l23ICpQPp3unbKn6uGWKben4WybxAecE9eQT5kbFTmc7PjPIrjiZCKyILUAU72EQSJE0kixTzN4FgGp3OnZGQFB2I5sfudDSZxefsQFMd6KTpRKPhgFThKYIUbAHNvIFUjIBRK6QjVGkZubCDU0SL2nMbzPZeGkTZev3Zld0SnnRsyGrDlBgw2XfrJUn4toAVapu9n2Y7wgbZtMQEWxoxpBZ0aDSwKn916ZusjCQZm46pruOAzEmwUHoKiiW8QQeZ9A065jEH5QsxgiWBuGKRq5ZahkJSCxBS42GZ9o15vfSC5aiD9AsjZKSpvcbsskcQsJAXZyMwdc76wto8RAX2LRa9aZi4kmbtIORg0j2EhefPZ7ZCApoCuW21EJxPkrx7fsfMOvyYUQrDfwipSpMk 422 29735 59194 8017 97368
required /usr/lib/libreadline.so.8 172 20 set:nfYDPzutupSCtKMMFS4u0wLhoyNvTUoWZhi1IBiOyPVtZE8o2z0t8b1CAeZ8fU9GiF3zSAkcxjND3ajc4GcnoKV4ZzozDt43sQDfvWcaZzj81e007v4HF306o8ekjuTFCZJkH106Fk9fC2CfKZ0D388wmj5ZLhQAXIRVXyPFG9P09l3GuZ2Qt4IUMuc5Sd4G30qlnN51nnt3zCur9eDP7ObTrdP1zCx8sEcI6qgaIkjvldHJS3mfYcc8UFdywsirObW9brZcUsOZzVoVwmcQ8wVDG8YTsZ4xwuRyn2u1y79TqKqky762kj4JZn95LkpcXEtFLvHR8pKlfSAY4Sbu9bvWHXK1gyGA7fuLfgHasnEaCdu11OsjkgF1OaqAwOyGmfw1ABYaJGCGMU9iMVmiM7E8F 327 43489 46829 6649 97294
1 input /usr/bin/bash
2 kind executable
3 bpp_mode auto
4 role object
5 required /usr/lib/libc.so.6
6 required /usr/lib/libreadline.so.8
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -2,5 +2,5 @@ input /usr/bin/ls
kind executable
bpp_mode auto
role object labels bpp set set_new_ns set_add_total_ns set_fini_ns set_free_ns set_api_total_ns
required /usr/lib/libc.so.6 115 22 set:piCA6dPgcb6nFIXck36b2BnrNyJq5o9HZtFwI81xTampyiCEimHaVFOhthjjjsbJQUab6RB9kpZuT2tXLxOkfqExWpONPYG001QfRFGPoAaovlmjBMy0ej4FZ5sahykBs15tA27PcnQmBVIlgx3gDhZDshLN6WpxP13VwYEVFsXbIvs8T5qabnfN9JcwTKdHuajz95zKYbNY8EYZj4to5d5zkZLp7WNU4oQqaZG1h9KLoMZICdJrviuMhJXA1mrJyudiiyNZsrLZ2AMIEUHjKLOJzyZENHunU4WUc9wVOnYRBThKMLbPzHjOunYH8BrN42mwQ 1029 25980 61703 10701 99413
required /usr/lib/libcap.so.2 3 17 set:kiO6UObWBY0 395 3450 3691 530 8066
required /usr/lib/libc.so.6 115 22 set:piCA6dPgcb6nFIXck36b2BnrNyJq5o9HZtFwI81xTampyiCEimHaVFOhthjjjsbJQUab6RB9kpZuT2tXLxOkfqExWpONPYG001QfRFGPoAaovlmjBMy0ej4FZ5sahykBs15tA27PcnQmBVIlgx3gDhZDshLN6WpxP13VwYEVFsXbIvs8T5qabnfN9JcwTKdHuajz95zKYbNY8EYZj4to5d5zkZLp7WNU4oQqaZG1h9KLoMZICdJrviuMhJXA1mrJyudiiyNZsrLZ2AMIEUHjKLOJzyZENHunU4WUc9wVOnYRBThKMLbPzHjOunYH8BrN42mwQ 532 16024 32046 3952 52554
required /usr/lib/libcap.so.2 3 17 set:kiO6UObWBY0 101 1349 1422 253 3125
1 input /usr/bin/ls
2 kind executable
3 bpp_mode auto
4 role object
5 required /usr/lib/libc.so.6
6 required /usr/lib/libcap.so.2
+2 -2
View File
@@ -2,5 +2,5 @@ input /usr/bin/python3.14
kind executable
bpp_mode auto
role object labels bpp set set_new_ns set_add_total_ns set_fini_ns set_free_ns set_api_total_ns
required /usr/lib/libc.so.6 1 22 set:poqQrl 1105 3846 8560 380 13891
required /usr/lib/libpython3.14.so.1.0 1 21 set:onX6r4 827 4415 1766 292 7300
required /usr/lib/libc.so.6 1 22 set:poqQrl 954 2213 4930 219 8316
required /usr/lib/libpython3.14.so.1.0 1 21 set:onX6r4 202 2142 971 170 3485
1 input /usr/bin/python3.14
2 kind executable
3 bpp_mode auto
4 role object
5 required /usr/lib/libc.so.6
6 required /usr/lib/libpython3.14.so.1.0
+1 -1
View File
@@ -2,4 +2,4 @@ input /usr/bin/true
kind executable
bpp_mode auto
role object labels bpp set set_new_ns set_add_total_ns set_fini_ns set_free_ns set_api_total_ns
required /usr/lib/libc.so.6 49 22 set:pjuApNlauv90ZJLOZ7p3GFF9oItmpZkt5dkCQz6qEZmONBVl204EQ7olKXdSC8hHiK15J85Shwyy6CdZG1jjbxDVZdI7OEfolhJgTNc16JCOvd8aNt64E3ISRaOHh2XQk5vZ4KfmAJSyaC4gqeCkg70 1521 14764 27815 3086 47186
required /usr/lib/libc.so.6 49 22 set:pjuApNlauv90ZJLOZ7p3GFF9oItmpZkt5dkCQz6qEZmONBVl204EQ7olKXdSC8hHiK15J85Shwyy6CdZG1jjbxDVZdI7OEfolhJgTNc16JCOvd8aNt64E3ISRaOHh2XQk5vZ4KfmAJSyaC4gqeCkg70 886 8501 17982 1788 29157
1 input /usr/bin/true
2 kind executable
3 bpp_mode auto
4 role object
5 required /usr/lib/libc.so.6
+4 -4
View File
@@ -1,5 +1,5 @@
case binary library runs cmp_result outputs_consistent median_rpmsetcmp_ns
true-libc /usr/bin/true /usr/lib/libc.so.6 3 -2 yes 350935
ls-libc /usr/bin/ls /usr/lib/libc.so.6 3 -2 yes 396275
bash-libc /usr/bin/bash /usr/lib/libc.so.6 3 -2 yes 471972
python-libc /usr/bin/python3.14 /usr/lib/libc.so.6 3 -2 yes 393216
true-libc /usr/bin/true /usr/lib/libc.so.6 10 1 yes 206863.5
ls-libc /usr/bin/ls /usr/lib/libc.so.6 10 1 yes 205386.5
bash-libc /usr/bin/bash /usr/lib/libc.so.6 10 1 yes 223012.5
python-libc /usr/bin/python3.14 /usr/lib/libc.so.6 10 1 yes 189414.5
1 case binary library runs cmp_result outputs_consistent median_rpmsetcmp_ns
2 true-libc /usr/bin/true /usr/lib/libc.so.6 3 10 -2 1 yes 350935 206863.5
3 ls-libc /usr/bin/ls /usr/lib/libc.so.6 3 10 -2 1 yes 396275 205386.5
4 bash-libc /usr/bin/bash /usr/lib/libc.so.6 3 10 -2 1 yes 471972 223012.5
5 python-libc /usr/bin/python3.14 /usr/lib/libc.so.6 3 10 -2 1 yes 393216 189414.5
+3 -3
View File
@@ -1,6 +1,6 @@
set_c /home/krosh/Docs/ARSV/rpm-build/lib/set.c
rpm_root /home/krosh/Docs/ARSV/rpm-build
runs 3
set_c /home/krosh/Docs/ARSV/alt-rpm/lib/set.c
rpm_root /home/krosh/Docs/ARSV/alt-rpm
runs 10
case true-libc /usr/bin/true /usr/lib/libc.so.6
case ls-libc /usr/bin/ls /usr/lib/libc.so.6
case bash-libc /usr/bin/bash /usr/lib/libc.so.6
1 set_c /home/krosh/Docs/ARSV/rpm-build/lib/set.c /home/krosh/Docs/ARSV/alt-rpm/lib/set.c
2 rpm_root /home/krosh/Docs/ARSV/rpm-build /home/krosh/Docs/ARSV/alt-rpm
3 runs 3 10
4 case true-libc true-libc
5 case ls-libc ls-libc
6 case bash-libc bash-libc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More