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 --- prolog/problems/sets/count_3/bugs.json | 509 +++++++++++++++++++++++++++++++++ 1 file changed, 509 insertions(+) create mode 100644 prolog/problems/sets/count_3/bugs.json (limited to 'prolog/problems/sets/count_3/bugs.json') diff --git a/prolog/problems/sets/count_3/bugs.json b/prolog/problems/sets/count_3/bugs.json new file mode 100644 index 0000000..7078972 --- /dev/null +++ b/prolog/problems/sets/count_3/bugs.json @@ -0,0 +1,509 @@ +{ + "patterns": [ + "(clause (head (compound (functor \"count\") (args variable))) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (t variable)))))) (compound (functor \"count\") (args (args variable))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop variable \"is\"))", + "(clause (head (compound (functor \"count\") (args variable))))", + "(clause (head (compound (functor \"count\") (args (args \"[]\")))))", + "(clause (head (compound (functor \"count\") (args variable (args \"[]\")))))", + "(clause (head (compound (functor \"count\") (args (args (args \"0\"))))))", + "(clause (head (compound (functor \"count\") (args (args \"[]\" (args \"0\"))))))", + "(clause (binop variable \"is\" (binop \"+\" \"1\")))", + "(clause (binop \"is\" (binop \"+\" \"1\")))", + "(clause (binop \"is\" (binop variable \"+\" \"1\")))", + "(clause (head (compound (functor \"count\") (args variable (args (args \"0\"))))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args variable (args (list (h variable)))))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (compound (functor \"count\") (args (args (args variable)))))", + "(clause (binop variable \"is\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (compound (functor \"count\") (args variable)))", + "(clause (binop \"is\" (binop variable \"+\")))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" variable))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"=\" variable))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"=\"))", + "(clause (compound (functor \"count\") (args (args (args variable)))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"==\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"==\" variable))", + "(clause (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop \"is\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"=\" variable))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"\\=\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"\\=\" variable))", + "(clause (binop variable \"=\"))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"==\"))", + "(clause (binop \"=\" variable))", + "(clause (binop variable \"is\" (binop variable \"+\")))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"=\" variable))", + "(clause (compound (functor \"count\") (args (args variable))))", + "(clause (head (compound (functor \"count\") (args (args (list (t variable)))))) (compound (functor \"count\") (args variable)))", + "(clause (binop variable \"==\"))", + "(clause (compound (functor \"count\") (args variable)) (binop \"=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (args \"1\"))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"\\==\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=:=\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"=:=\" variable))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"\\==\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)) (args \"1\"))))))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"\\==\"))", + "(clause (head (compound (functor \"count\") (args variable (args (args \"1\"))))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"\\==\" variable))", + "(clause (head (compound (functor \"count\") (args (args \"[]\" (args variable))))))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"=:=\"))", + "(clause (binop \"==\" variable))", + "(clause (binop variable \"=\") (compound (functor \"count\") (args variable)))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"\\=\"))", + "(clause (binop variable \"\\=\") (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"==\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"==\" variable))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop \"+\" variable)))", + "(clause (binop variable \"\\==\") (compound (functor \"count\") (args variable)))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop variable \"is\"))", + "(clause (binop variable \"is\" (binop \"1\" \"+\")))", + "(clause (binop \"is\" (binop \"1\" \"+\")))", + "(clause (binop \"is\" (binop \"1\" \"+\" variable)))", + "(clause (binop variable \"==\") (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=\\=\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"\\=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"\\=\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"=\\=\" variable))", + "(clause (compound (functor \"count\") (args variable)) (binop \"\\==\" variable))", + "(clause (binop \"=:=\" variable))", + "(clause (compound (functor \"count\") (args (args variable))) (binop \"is\" (binop variable \"+\")))", + "(clause (compound (functor \"count\") (args variable)) (binop \"==\" variable))", + "(clause (head (compound (functor \"count\") (args \"[]\"))))", + "(clause (binop variable \"=\" \"0\"))", + "(clause (binop \"=\" \"0\"))", + "(clause (binop variable \"is\" (binop \"+\" \"0\")))", + "(clause (binop \"is\" (binop \"+\" \"0\")))", + "(clause (binop \"is\" (binop variable \"+\" \"0\")))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"=\\=\"))", + "(clause (binop \"=\" variable) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args \"[]\" (args (args \"0\"))))))", + "(clause (binop \"=\" (list (t variable))) (compound (functor \"count\") (args (args variable))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (compound (functor \"count\") (args (args variable))))", + "(clause (binop variable \"=:=\"))", + "(clause (binop \"=\" (binop \"+\" \"1\")))", + "(clause (binop \"=\" (binop variable \"+\" \"1\")))", + "(clause (binop variable \"=\" (binop \"+\" \"1\")))", + "(clause (binop \"is\" (binop \"+\" variable)))", + "(clause (head (compound (functor \"count\") (args (args variable)))))", + "(clause (head (compound (functor \"count\") (args variable))) (unop \\+ (binop variable \"=\")))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"=:=\" variable))", + "(clause (head (compound (functor \"count\") (args (args variable)))) (binop variable \"=\"))", + "(clause (binop \"is\" \"0\"))", + "(clause (head (compound (functor \"count\") (args (args (list (t variable)))))))", + "(clause (head (compound (functor \"count\") (args (args (list (t (list (h variable)))))))) (compound (functor \"count\") (args (args variable))))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"\\==\"))", + "(clause (binop \"\\==\" variable))", + "(clause (binop \"is\" (binop variable \"+\")) (compound (functor \"count\") (args (args (args variable)))))", + "(clause (binop variable \"is\" \"0\"))", + "(clause (head (compound (functor \"count\") (args \"[]\" (args \"[]\")))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (unop \\+ (binop \"=\" variable)))", + "(clause (binop variable \"is\") (compound (functor \"count\") (args (args (args variable)))))", + "(clause (unop \\+ (binop variable \"=\")) (compound (functor \"count\") (args variable)))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"=\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args (args variable)))) (compound (functor \"count\") (args (args variable))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"=:=\"))", + "(clause (head (compound (functor \"count\") (args (list (t variable))))) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (t \"[]\")))))))", + "(clause (head (compound (functor \"count\") (args variable (args (list (t \"[]\")))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable) (t \"[]\")))))))", + "(clause (binop \"is\" variable))", + "(clause (head (compound (functor \"count\") (args \"[]\" (args variable)))))", + "(clause (binop \"\\=\" variable) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (compound (functor \"\\+\") (args (binop \"=\" variable))))", + "(clause (head (compound (functor \"count\") (args (args variable (args \"0\"))))))", + "(clause (head (compound (functor \"count\") (args (args (list (t \"[]\")) (args \"1\"))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop variable \"=\\=\"))", + "(clause (head (compound (functor \"count\") (args variable))) (compound (functor \"\\+\") (args (binop variable \"=\"))))", + "(clause (head (compound (functor \"count\") (args (args (args (binop \"+\" \"1\")))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)) (args (binop \"+\" \"1\")))))))", + "(clause (binop \"=\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args (args (args (binop variable \"+\" \"1\")))))))", + "(clause (head (compound (functor \"count\") (args variable (args (args (binop \"+\" \"1\")))))))", + "(clause (head (compound (functor \"count\") (args variable (args (args variable))))))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"=\\=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (t variable)) (args (binop \"+\" \"1\")))))))", + "(clause (binop \"\\==\" variable) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop \"is\" variable))", + "(clause (binop variable \"\\==\"))", + "(clause (binop variable \"is\" variable))", + "(clause (binop variable \"=\\=\"))", + "(clause (head (compound (functor \"count\") (args (args (args (binop variable \"+\")))))) (compound (functor \"count\") (args (args (args variable)))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)) (args variable))))))", + "(clause (head (binop variable \"is\")))", + "(clause (compound (functor \"count\") (args variable)) (binop \"\\=\" variable))", + "(clause (head (binop \"is\" (binop variable \"+\"))))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop \"=\" variable))", + "(clause (binop variable \"is\") (binop \"=\" variable))", + "(clause (binop \"=\\=\" variable))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"is\"))", + "(clause (head (compound (functor \"count\") (args variable))) (compound (functor \"isEqual\") (args (args variable))))", + "(clause (head (compound (functor \"count\") (args variable))) (compound (functor \"memb\") (args variable)))", + "(clause (compound (functor \"\\+\") (args (binop variable \"=\"))) (compound (functor \"count\") (args variable)))", + "(clause (compound (functor \"count\") (args variable)) (binop variable \"is\"))", + "(clause (binop variable \"=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (compound (functor \"isEqual\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)) (args \"0\"))))))", + "(clause (binop \"=:=\" variable) (compound (functor \"count\") (args variable)))", + "(clause (binop variable \"=\\=\") (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"is\" variable))", + "(clause (binop \"=\" (list (h variable))) (binop \"=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (t (list (h variable)))))))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (compound (functor \"count\") (args (args (list (h variable))))))" + ], + "rules": [ + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop \"is\" (binop variable \"+\")))" + ], + "distribution": [ + 69, + 0 + ], + "quality": 0.9728352042140178 + }, + { + "class": false, + "condition": [ + "(clause (binop variable \"is\" (binop variable \"+\")))" + ], + "distribution": [ + 56, + 0 + ], + "quality": 0.96538520453629 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=:=\"))" + ], + "distribution": [ + 43, + 0 + ], + "quality": 0.9522326624826108 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (args variable))))))" + ], + "distribution": [ + 40, + 0 + ], + "quality": 0.948123462766655 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (list (t variable)))))) (compound (functor \"count\") (args variable)))" + ], + "distribution": [ + 28, + 0 + ], + "quality": 0.9190687991731815 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=\\=\"))" + ], + "distribution": [ + 26, + 0 + ], + "quality": 0.9127090987711932 + }, + { + "class": false, + "condition": [ + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop variable \"is\"))" + ], + "distribution": [ + 24, + 0 + ], + "quality": 0.9015964075625628 + }, + { + "class": false, + "condition": [ + "(clause (binop \"=:=\" variable))" + ], + "distribution": [ + 23, + 0 + ], + "quality": 0.8979447555412412 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args \"[]\"))))" + ], + "distribution": [ + 23, + 0 + ], + "quality": 0.8979447555412412 + }, + { + "class": false, + "condition": [ + "(clause (binop \"=\" (binop \"+\" \"1\")))" + ], + "distribution": [ + 16, + 0 + ], + "quality": 0.8368123456364159 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (binop \"=:=\" variable))" + ], + "distribution": [ + 15, + 0 + ], + "quality": 0.820135337297635 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args variable)))))" + ], + "distribution": [ + 15, + 0 + ], + "quality": 0.820135337297635 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"\\=\"))", + "(clause (head (compound (functor \"count\") (args (args (args \"0\"))))))" + ], + "distribution": [ + 0, + 18 + ], + "quality": 0.8161615821890182 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (list (t (list (h variable)))))))) (compound (functor \"count\") (args (args variable))))" + ], + "distribution": [ + 14, + 0 + ], + "quality": 0.801882381889035 + }, + { + "class": false, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (list (t variable)))))))" + ], + "distribution": [ + 14, + 0 + ], + "quality": 0.801882381889035 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args \"[]\")))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (compound (functor \"count\") (args (args (args variable)))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"\\=\" variable))" + ], + "distribution": [ + 0, + 17 + ], + "quality": 0.7802239031619637 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args \"[]\")))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop variable \"+\")))", + "(clause (binop variable \"\\=\") (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"\\=\" variable))" + ], + "distribution": [ + 1, + 21 + ], + "quality": 0.7737068914461994 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args variable))) (binop variable \"\\=\"))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop variable \"is\"))" + ], + "distribution": [ + 1, + 19 + ], + "quality": 0.7694989834231951 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (binop variable \"is\"))", + "(clause (head (compound (functor \"count\") (args variable (args \"[]\")))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop variable \"+\")))", + "(clause (head (compound (functor \"count\") (args (args (args variable))))) (compound (functor \"count\") (args (args (args variable)))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"\\==\" variable))" + ], + "distribution": [ + 1, + 20 + ], + "quality": 0.7464303340007633 + }, + { + "class": true, + "condition": [ + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" variable))", + "(clause (binop variable \"==\"))" + ], + "distribution": [ + 1, + 14 + ], + "quality": 0.7197344632270223 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable))) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"\\=\" variable))", + "(clause (head (compound (functor \"count\") (args variable))))" + ], + "distribution": [ + 1, + 14 + ], + "quality": 0.6820439276723868 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args \"[]\")))))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (unop \\+ (binop \"=\" variable)))" + ], + "distribution": [ + 0, + 9 + ], + "quality": 0.6699209545124805 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args \"[]\")))))", + "(clause (binop \"=\" variable))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"=\" variable))" + ], + "distribution": [ + 1, + 11 + ], + "quality": 0.5876909575878514 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable (args \"[]\")))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" variable))", + "(clause (binop variable \"=\"))", + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (binop \"=\" variable))" + ], + "distribution": [ + 1, + 12 + ], + "quality": 0.578881574974713 + }, + { + "class": true, + "condition": [ + "(clause (compound (functor \"\\+\") (args (binop variable \"=\"))) (compound (functor \"count\") (args variable)))" + ], + "distribution": [ + 0, + 5 + ], + "quality": 0.5748167731513768 + }, + { + "class": true, + "condition": [ + "(clause (binop \"\\==\" variable) (compound (functor \"count\") (args variable)))" + ], + "distribution": [ + 1, + 7 + ], + "quality": 0.5727130861637655 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args (args (list (h variable)))))) (compound (functor \"count\") (args variable)))", + "(clause (head (compound (functor \"count\") (args variable))) (binop \"\\==\" variable))" + ], + "distribution": [ + 0, + 7 + ], + "quality": 0.5690003226281385 + }, + { + "class": true, + "condition": [ + "(clause (head (compound (functor \"count\") (args variable (args (args \"0\"))))))", + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" (binop variable \"+\")))", + "(clause (binop \"==\" variable))", + "(clause (binop variable \"is\"))" + ], + "distribution": [ + 5, + 18 + ], + "quality": 0.5503110535995617 + }, + { + "class": true, + "condition": [ + "(clause (compound (functor \"count\") (args (args (args variable)))) (binop \"is\" variable))", + "(clause (binop variable \"=\") (compound (functor \"count\") (args variable)))" + ], + "distribution": [ + 0, + 5 + ], + "quality": 0.38635980460492575 + } + ] +} \ No newline at end of file -- cgit v1.2.1