function solve(varfile, bitgramfile)
    warning ("off")
    cipher = getcipher(varfile);
    graphs = getbigraphs(bitgramfile);
    for graph = 1:columns(graphs)
        for pos = 1:15
            xorr = getxor(cipher, pos, graphs(:, graph));
            sol  = getflush(xorr);
            if (columns(sol) == 7 && any(sol))
                printf("биграмма %d\t", graph);
                printf("позиция %02d-%02d\t", pos-1, pos);
                printf("отводы %s\t", dec2bin(sol));
                printf("%02d блоков назад\n", pos-1);
            endif
        endfor
    endfor
endfunction
