Commit 1d21ee1f authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Completely replace CVC generation into the java side.

Now the full contents of the CVC3 file are generated inside of Java, but the
actual saving and running of CVC3 still happen inside of matlab.  For now.

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_javization@10651 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 4d5ae5bc
Loading
Loading
Loading
Loading
+28
Changes for +TableBlock/convert_hierarchical_grid_to_java.m: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
%% convert_hierarchical_grid_to_java
% generates a java version fo the hiearchcial grid
%
% inputs:
%   grid:Grid - grid to convert
%   java_grid:List<HierarchicalCell> - place to put changed cells.
%
% outputs;
%   none
% Author: Matthew Dawson matthew@mjdsystems.ca
% Organization: McMaster Centre for Software Certification

function convert_hierarchical_grid_to_java(grid, java_grid)

for i=1:size(grid,2)
    new_cell = ca.mcmaster.cas.tablularexpression.HierarchicalCell;
    
    old_cell = grid(i)
    new_cell.setContents(old_cell.cond_text)
    
    if ~isempty(old_cell.subgrid)
        TableBlock.convert_hierarchical_grid_to_java(old_cell.subgrid.cells, new_cell.getSubHiearchy())
    end
    java_grid.add(new_cell)
end

end
−8
Changes for @CVC_checker/CVC_checker.m: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -11,14 +11,6 @@ classdef CVC_checker
        
    end
    
    
    methods(Static)
        
        [ code ] = find_parents( grid );
        [ cvc_type ] = pvs_to_cvc_subtypes( pvs_type );
        
    end
    
    methods
        
        %% CVC_checker
+2 −2
Changes for @CVC_checker/cvc_check.m: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ if ~isempty(fatal_exception)
end


for i = 1:size(queries,2)
for i = 1:queries.size()
    asserts = [];

    % find results of individual queries, using regexp and notations in
@@ -77,7 +77,7 @@ for i = 1:size(queries,2)
        name = [filename '_' num2str(i) '_COM'];
    end    

        seqs = [seqs struct('id', '1234a', 'TCC', name, 'seq', queries(i), 'ce', {asserts})];
        seqs = [seqs struct('id', '1234a', 'TCC', name, 'seq', queries.get(i-1), 'ce', {asserts})];
    end
    
    
−7

File deleted.

−47

File deleted.

Loading