“…// these are all the checks for the subalgebra {0,1} /* subalgebra {0,2}*/ /* ... the same as above */ for( j=0; j<4; j++) { if((arr /* value 'a' would be replaced with '0','1','2','3' as backtracking progresses */ /*we set triples of arguments for a majority term*/ arr1[0].v="012"; arr1 [1].v="013"; arr1 [2].v="021"; arr1 [3].v="023"; arr1 [4].v="031"; arr1 [5].v="032"; arr1 [6].v="102"; arr1 [7].v="103"; arr1 [8].v="120"; arr1 [9].v="123"; arr1 [10].v="130"; arr1 [11].v="132"; arr1 [12].v="201"; arr1 [13].v="203"; arr1 [14].v="210"; arr1 [15].v="213"; arr1 [16].v="230"; arr1 [17].v="231"; arr1 [18].v="301"; arr1 [19].v="302"; arr1 [20] arr2 [1].v = "002"; arr2 [2].v = "003"; arr2 [3].v = "110"; arr2 [4].v = "112"; arr2 [5].v = "113"; arr2 [6].v = "220"; arr2 [7].v = "221"; arr2 [8].v = "223"; arr2 [9].v = "330"; arr2 [10].v = "331"; arr2 [11].v = "332"; arr2 [12].v = "012"; arr2 [13].v = "013"; arr2 [14].v = "021"; arr2 [15].v = "023"; arr2 [16].v = "031"; arr2 [17].v = "032"; arr2 [18].v = "102"; arr2 [19].v = "103"; arr2 [20] int i0,i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11, j; j=0; for(i0=0; i0<2; i0++) for(i1=0; i1<3; i1+=2) for(i2=0; i2<4; i2+=3) for(i3=0; i...…”