2021-01-18 07:21 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000727Frama-CKernelpublic2014-02-12 16:59
Reporteryakobowski 
Assigned Tovirgile 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
Product VersionFrama-C Carbon-20110201 
Target VersionFixed in VersionFrama-C Nitrogen-20111001 
Summary0000727: Function specification not exposed through vspec visitor method
DescriptionThe attached prints

Funspec of f is '' through visitor
It is 'behavior default:
         assigns \nothing;' through get_spec

when called on this code

//@ assigns \nothing;
void f () {}

To the best of my understanding, it should print the same things in the two cases.
TagsNo tags attached.
Attached Files
  • ? file icon vis.ml (740 bytes) 2011-02-17 15:44 -
    open Cil_types
    open Cil
    
    class pathcrawlerVisitor prj =
    object(self)
      inherit Visitor.frama_c_copy prj
    
      method vspec sp =
        (match self#current_func with
          | Some f ->
              if  f.svar.vname ="f" then (
    	    Format.printf "Funspec of f is '%a' through visitor@."
                  Cil.d_funspec sp;
    	    Format.printf "It is '%a' through get_spec@."
                  Cil.d_funspec
                  (Kernel_function.get_spec (Globals.Functions.get f.svar));
              )
          | _ -> ());
        DoChildren
    end
    
    let startup () = 
        let cil_file = Ast.get () in
        let prj = File.create_project_from_visitor "pcanalyzer" 
          (fun prj -> new pathcrawlerVisitor prj)
        in
        Project.set_current prj;
    ;;
    
    let () = Db.Main.extend startup
    
    ? file icon vis.ml (740 bytes) 2011-02-17 15:44 +

-Relationships
+Relationships

-Notes

~0004828

Fix committed to stable/neon branch.
+Notes

-Issue History
Date Modified Username Field Change
2011-02-17 15:44 yakobowski New Issue
2011-02-17 15:44 yakobowski File Added: vis.ml
2011-02-17 15:45 yakobowski Additional Information Updated
2011-02-17 15:45 yakobowski Status new => assigned
2011-02-17 15:45 yakobowski Assigned To => virgile
2011-02-24 18:02 svn
2011-02-24 18:02 svn Status assigned => resolved
2011-02-24 18:02 svn Resolution open => fixed
2011-10-10 14:13 signoles Fixed in Version => Frama-C Nitrogen-20111001
2011-10-10 14:14 signoles Status resolved => closed
2012-07-23 10:42 svn
2013-12-19 01:11 yakobowski Source_changeset_attached => framac master 60ae315e
2013-12-19 01:12 Source_changeset_attached => framac master 7d105f2f
2014-02-12 16:53 yakobowski Source_changeset_attached => framac stable/neon 60ae315e
2014-02-12 16:54 Source_changeset_attached => framac stable/neon 7d105f2f
2014-02-12 16:59 Note Added: 0004828
2014-02-12 16:59 Status closed => resolved
+Issue History