LCOV - code coverage report
Current view: top level - avtg/drivers/usb/storage/usb-storage.ko/linux:drivers:clk2/weaver - transport.c.aux (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 5 100.0 %
Date: 2017-01-25 Functions: 3 3 100.0 %

          Line data    Source code
       1             : 
       2             : struct device;
       3             : 
       4             : void *ldv_dev_get_drvdata(const struct device *dev);
       5             : int ldv_dev_set_drvdata(struct device *dev, void *data);
       6             : 
       7             : struct spi_master;
       8             : struct device;
       9             : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
      10             : 
      11             : #include <linux/ldv/err.h>
      12             : 
      13             : #include <linux/types.h>
      14             : void *ldv_kzalloc(size_t size, gfp_t flags);
      15             : 
      16             : struct clk;
      17             : 
      18             : extern void ldv_clk_disable(struct clk *clk);
      19             : extern int ldv_clk_enable(void);
      20             : 
      21             : #include <linux/ldv/common.h>
      22             : #include <linux/ldv/irq.h>
      23             : #include <verifier/common.h>
      24             : #include <verifier/nondet.h>
      25             : #include <verifier/memory.h>
      26             : #include <verifier/thread.h>
      27             : 
      28             : #include <scsi/scsi_host.h>
      29             : #include <linux/usb.h>
      30             : 
      31             : 
      32             : struct ldv_struct_insmod_12 {
      33             :  int signal_pending;
      34             : };
      35             : 
      36             : struct ldv_struct_scsi_LLDd_scenario_1 {
      37             :  struct Scsi_Host *arg0;
      38             :  int signal_pending;
      39             : };
      40             : 
      41             : struct ldv_struct_usb_scenario_11 {
      42             :  struct usb_driver *arg0;
      43             :  int signal_pending;
      44             : };
      45             : 
      46             : /* EMG Function declarations */
      47             : void ldv_dispatch_usb_reset_17_2(void);
      48             : int ldv_emg_usb_reset_device(struct usb_device *);
      49             : 
      50             : /* EMG variable declarations */
      51             : 
      52             : /* EMG variable initialization */
      53             : 
      54             : /* EMG function definitions */
      55             : /* AUX_FUNC ldv_dispatch_usb_reset_17_2 */
      56             : void ldv_dispatch_usb_reset_17_2() {
      57             :  struct ldv_struct_insmod_12 *cf_arg_11;
      58           1 :  return;
      59             : }
      60             : 
      61             : /* AUX_FUNC ldv_emg_usb_reset_device */
      62             : int ldv_emg_usb_reset_device(struct usb_device *arg0) {
      63             :  /* LDV {"comment": "Control function 'usb_reset_device'", "type": "CONTROL_FUNCTION_BEGIN", "function": "ldv_emg_usb_reset_device"} */
      64             :  /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
      65             :  /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
      66             :  /* LDV {"action": "USB_RESET", "type": "DISPATCH_BEGIN", "comment": "Trigger reset of the USB device."} */
      67           2 :  ldv_dispatch_usb_reset_17_2();
      68             :  /* LDV {"action": "USB_RESET", "type": "DISPATCH_END"} */
      69             : 
      70             :  /* LDV {"action": "SUCCESS", "type": "CONDITION_BEGIN", "comment": "Proceed to reset."} */
      71           1 :  return 0;
      72             :  /* LDV {"action": "SUCCESS", "type": "CONDITION_END"} */
      73             : 
      74             :  /* Exit function at a terminal state */
      75             :  /* End of the process */
      76             :  /* LDV {"comment": "End of control function based on process 'usb_reset_device'", "type": "CONTROL_FUNCTION_END", "function": "ldv_emg_usb_reset_device"} */
      77             : }
      78             : 
      79             : 
      80             : /* AUX_FUNC  ERR_PTR */
      81             : static inline void *ERR_PTR (long int error)
      82             : {
      83             : 
      84             :  return ldv_err_ptr(error);
      85             : }
      86             : 
      87             : /* AUX_FUNC  PTR_ERR */
      88             : static inline long int PTR_ERR (void const *ptr)
      89             : {
      90             : 
      91             :  return ldv_ptr_err(ptr);
      92             : }
      93             : 
      94             : /* AUX_FUNC  IS_ERR */
      95             : static inline long int IS_ERR (void const *ptr)
      96             : {
      97             : 
      98             :  return ldv_is_err(ptr);
      99             : }
     100             : 
     101             : /* AUX_FUNC  IS_ERR_OR_NULL */
     102             : static inline long int IS_ERR_OR_NULL (void const *ptr)
     103             : {
     104             : 
     105             :  return ldv_is_err_or_null(ptr);
     106             : }
     107             : 
     108             : /* AUX_FUNC  kzalloc */
     109             : static inline void *kzalloc (size_t size, gfp_t flags)
     110             : {
     111             : 
     112             :  return ldv_kzalloc(size, flags);
     113             : }
     114             : 
     115             : /* AUX_FUNC  ldv_dev_get_drvdata_6 */
     116             : void *ldv_dev_get_drvdata_6 (struct device const *dev)
     117             : {
     118             : 
     119             :  return ldv_dev_get_drvdata(dev);
     120             : }
     121             : 
     122             : /* AUX_FUNC  ldv_usb_reset_device_7 */
     123             : int ldv_usb_reset_device_7 (struct usb_device *ldv_func_arg1)
     124             : {
     125           1 : 
     126             :  /* LDV {"type": "KERNEL_MODEL", "comment": "Perform the model code of the function 'usb_reset_device'"} */
     127           3 :  return ldv_emg_usb_reset_device(ldv_func_arg1);
     128             : }

Generated by: LCOV version 1.10