From 92c49ac708e04e545da6e7aafe91cac8f223f475 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 27 Feb 2017 18:35:01 +0100 Subject: Prolog: add bugs files for the first six groups --- .../problems/sorting/slowest_sort_ever_2/bugs.json | 245 +++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 prolog/problems/sorting/slowest_sort_ever_2/bugs.json (limited to 'prolog/problems/sorting/slowest_sort_ever_2') diff --git a/prolog/problems/sorting/slowest_sort_ever_2/bugs.json b/prolog/problems/sorting/slowest_sort_ever_2/bugs.json new file mode 100644 index 0000000..422291f --- /dev/null +++ b/prolog/problems/sorting/slowest_sort_ever_2/bugs.json @@ -0,0 +1,245 @@ +{ + "patterns": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (compound (functor \"permute\") (args variable)))", + "(clause (compound (functor \"permute\") (args (args variable))) (compound (functor \"is_sorted\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"is_sorted\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"permute\") (args (args variable))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args \"[]\")))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args \"[]\"))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args \"[]\" (args \"[]\")))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (binop variable \"=\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable)) (args (list (h variable)))))))", + "(clause (binop variable \"=<\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"slowest_sort_ever\") (args (args variable))))", + "(clause (binop \"=<\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (compound (functor \"is_sorted\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (binop variable \"=\"))", + "(clause (compound (functor \"is_sorted\") (args variable)))", + "(clause (binop variable \"=\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (t variable)))))) (compound (functor \"slowest_sort_ever\") (args (args variable))))", + "(clause (compound (functor \"is_sorted\") (args variable)) (binop \"=\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t variable))))))) (compound (functor \"slowest_sort_ever\") (args (list (t variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t \"[]\")))) (args (list (t (list (h variable)))))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t \"[]\")))) (args (list (h variable)))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t \"[]\"))))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable) (t (list (t \"[]\"))))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable) (t \"[]\"))))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (binop variable \">\"))", + "(clause (binop \"=\" (list (h variable))))", + "(clause (binop \"=\" \"[]\"))", + "(clause (compound (functor \"permute\") (args (args variable))) (compound (functor \"slowest_sort_ever\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (binop variable \"=\" \"[]\"))", + "(clause (compound (functor \"slowest_sort_ever\") (args (args variable))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (binop \"<\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (h variable)))))) (binop variable \"=\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (binop variable \"<\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (binop \"=\" variable))", + "(clause (binop \"<\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (h variable)))))) (binop variable \"<\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t variable))))) (compound (functor \"slowest_sort_ever\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (binop variable \"=\"))", + "(clause (binop variable \"<\"))", + "(clause (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable) (t \"[]\"))))))", + "(clause (compound (functor \"append\") (args (list (h variable)))))", + "(clause (compound (functor \"append\") (args (args (list (h variable))))))", + "(clause (compound (functor \"del\") (args (args (args variable)))) (compound (functor \"slowest_sort_ever\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t \"[]\"))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable (args variable)))))", + "(clause (binop \"=\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (compound (functor \"del\") (args (args variable))))", + "(clause (compound (functor \"permute\") (args (args variable))) (binop \"=\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (binop \">\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (h variable)))))) (binop \">\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable)))) (args (list (h variable)))))))", + "(clause (compound (functor \"min\") (args (args variable))) (compound (functor \"del\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (compound (functor \"min\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t \"[]\")) (args (list (h variable)))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable)))) (args (list (t (list (h variable)))))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (binop variable \"=<\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (t (list (h variable)))))))) (binop \"<\" variable))", + "(clause (compound (functor \"min\") (args variable)) (compound (functor \"del\") (args (args variable))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (t (list (h variable)))))))) (binop \"=\" variable))", + "(clause (binop \"=\" (list (t (list (h variable))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t variable))))))) (binop \"=\" (list (t (list (t variable))))))", + "(clause (binop \"<\" variable) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (compound (functor \"min\") (args (args variable))) (binop \"=\" (list (h variable))))", + "(clause (binop \"=\" (list (t variable))) (compound (functor \"slowest_sort_ever\") (args variable)))", + "(clause (compound (functor \"slowest_sort_ever\") (args (list (t variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (compound (functor \"slowest_sort_ever\") (args variable)))", + "(clause (compound (functor \"slowest_sort_ever\") (args (args variable))) (binop variable \"=\"))", + "(clause (binop \"=\" (list (t (list (t variable))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable)) (args (list (t (list (h variable)))))))))", + "(clause (binop \"=\" variable) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (t (list (h variable)))))))) (binop variable \">\"))", + "(clause (binop \"=<\" variable) (compound (functor \"append\") (args (args (list (h variable))))))", + "(clause (compound (functor \"append\") (args (args (args variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))))", + "(clause (compound (functor \"append\") (args (args (list (t variable))))))", + "(clause (compound (functor \"is_sorted\") (args variable)) (compound (functor \"permute\") (args (args variable))))", + "(clause (compound (functor \"slowest_sort_ever\") (args (list (h variable)))) (binop \"=\" (list (t (list (h variable))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (binop \"=\" variable))", + "(clause (binop variable \"=<\") (compound (functor \"append\") (args (list (h variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (binop \"=\" variable))", + "(clause (binop variable \"=\" (list (t \"[]\"))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (binop \"=<\" variable))", + "(clause (binop \"=\" (list (h variable) (t \"[]\"))))", + "(clause (binop variable \">\") (compound (functor \"vstavi\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (h variable)))))) (compound (functor \"min\") (args (args variable))))", + "(clause (head (compound (functor \"ins\") (args (args (args variable))))) (binop variable \"=\"))", + "(clause (head (compound (functor \"vstavi\") (args (args (args variable))))) (compound (functor \"append\") (args (args (args variable)))))", + "(clause (compound (functor \"memb\") (args (args variable))) (compound (functor \"slowest_sort_ever\") (args (args variable))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args (list (h variable)))))) (compound (functor \"del\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (binop variable \">=\"))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"memb\") (args (args variable))))", + "(clause (binop \"=\" (list (t \"[]\"))))", + "(clause (binop variable \">\") (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))", + "(clause (compound (functor \"slowest_sort_ever\") (args (list (t variable)))) (binop \"=\" (list (t (list (t variable))))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (binop \">=\" variable))", + "(clause (binop variable \"=<\") (binop \"=\" (list (h variable))))", + "(clause (binop \"=\" (list (h variable))) (compound (functor \"memb\") (args variable)))", + "(clause (compound (functor \"is_sorted\") (args variable)) (binop variable \"=\"))", + "(clause (compound (functor \"del\") (args variable)) (binop \"=\" (list (h variable))))", + "(clause (compound (functor \"slowest_sort_ever\") (args (list (h variable)))) (binop \"=<\" variable))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"sins\") (args (args (args variable)))))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"append\") (args (args (args variable)))))" + ], + "rules": [ + { + "class": true, + "condition": [ + "(clause (compound (functor \"permute\") (args (args variable))) (compound (functor \"is_sorted\") (args variable)))", + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"permute\") (args (args variable))))" + ], + "distribution": [ + 1, + 128 + ], + "quality": 0.977312994125087 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))))" + ], + "distribution": [ + 33, + 0 + ], + "quality": 0.9411313315204629 + }, + { + "class": false, + "condition": [ + "(clause (compound (functor \"permute\") (args (args variable))) (compound (functor \"slowest_sort_ever\") (args variable)))" + ], + "distribution": [ + 17, + 0 + ], + "quality": 0.8866114188337576 + }, + { + "class": true, + "condition": [ + "(clause (compound (functor \"permute\") (args (args variable))) (compound (functor \"is_sorted\") (args variable)))" + ], + "distribution": [ + 22, + 142 + ], + "quality": 0.8544563360679102 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (h variable))))))) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))" + ], + "distribution": [ + 12, + 0 + ], + "quality": 0.8401627944197684 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args (args variable)))) (compound (functor \"is_sorted\") (args variable)))" + ], + "distribution": [ + 26, + 130 + ], + "quality": 0.8198601268494158 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (t (list (t \"[]\")))) (args (list (t (list (h variable)))))))))" + ], + "distribution": [ + 10, + 0 + ], + "quality": 0.8064072034153157 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args (list (h variable))))) (compound (functor \"slowest_sort_ever\") (args (list (h variable)))))" + ], + "distribution": [ + 8, + 0 + ], + "quality": 0.7647521693776633 + }, + { + "class": false, + "condition": [ + "(clause (compound (functor \"is_sorted\") (args variable)) (compound (functor \"permute\") (args (args variable))))" + ], + "distribution": [ + 7, + 0 + ], + "quality": 0.7291291418494714 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))))" + ], + "distribution": [ + 7, + 0 + ], + "quality": 0.7291291418494714 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"slowest_sort_ever\") (args variable))) (binop \"=\" variable))" + ], + "distribution": [ + 7, + 0 + ], + "quality": 0.7291291418494714 + }, + { + "class": false, + "condition": [ + "(clause (compound (functor \"memb\") (args (args variable))) (compound (functor \"slowest_sort_ever\") (args (args variable))))" + ], + "distribution": [ + 6, + 0 + ], + "quality": 0.6915761303761268 + } + ] +} \ No newline at end of file -- cgit v1.2.1