Commit 49d1d60c authored by Colin Eles's avatar Colin Eles
Browse files

added directory for examples as well as some examples pulled from FPGA...

added directory for examples as well as some examples pulled from FPGA presentation, added example for quadratic roots problem solved using predicate subtyping which typechecks and appears to give proper answers when compared to matlab roots fcn

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@6762 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 75ad1ede
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -10,8 +10,26 @@
% Author: Colin Eles elesc@mcmaster.ca
% Organization: McMaster Centre for Software Certification
function string = pvs_check_for_imports(object)



[string,found] = object.pvs_check_for_imports_g(object.data.Grid2,{});
[string2,found2] = object.pvs_check_for_imports_g(object.data.Grid1,found);

% check for imports in the inputs field



hashtable = {{'sqrt', 'reals@sqrt'} {'sin', 'trig@trig_basic'} {'cos', 'trig@trig_basic'} {'tan', 'trig@trig_basic'}};
for k=1:size(hashtable,2)
            if ~isempty(regexp(object.data.function_inputs,hashtable{k}(1),'once'))
                if (~any(ismember(found,hashtable{k}(1))))
                string = [string 'IMPORTING ' char(hashtable{k}(2)) sprintf('\n')];
                found = [found hashtable{k}(1)];
                end
            end    
        end
        
string = [string string2];
end

Examples/PowerCond.mdl

0 → 100644
+1346 −0

File added.

Preview size limit exceeded, changes collapsed.

+1257 −0

File added.

Preview size limit exceeded, changes collapsed.

Examples/debug2.mdl

0 → 100644
+1287 −0

File added.

Preview size limit exceeded, changes collapsed.

Examples/dork.mdl

0 → 100644
+1349 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading