public static String showFunctions(Map<String, List<TrigerState[]>> functions, List<String> ids){
        String str = "";
        
        for (Map.Entry<String, List<TrigerState[]>> entry : functions.entrySet()) {
            String id = entry.getKey();
            List signal = entry.getValue();
            str += id + "=";
            
            for (int i = 0; i < signal.size(); i++) {
                TrigerState[] state = (TrigerState[]) signal.get(i);
                for (int j = 0; j < state.length; j++) {
                    if(state[j] == TrigerState.ONE){
                        str += ids.get(j);
                    }
                    if(state[j] == TrigerState.ZERO){
                        str += "~"+ids.get(j);
                    }
                }
                if(i != signal.size()-1){
                    str += "|";
                }
            }
            str += "\n";
            
        }
        
        return str;
    }