int main(void) 
{ int status ;
  int irp = __VERIFIER_nondet_int() ;
  int pirp ;
  int pirp__IoStatus__Status ;
  int irp_choice = __VERIFIER_nondet_int() ;
  int devobj = __VERIFIER_nondet_int() ;
  int __cil_tmp8 ;

 FloppyThread  = 0;
 KernelMode  = 0;
 Suspended  = 0;
 Executive  = 0;
 DiskController  = 0;
 FloppyDiskPeripheral  = 0;
 FlConfigCallBack  = 0;
 MaximumInterfaceType  = 0;
 MOUNTDEV_MOUNTED_DEVICE_GUID  = 0;
 myStatus  = 0;
 s  = 0;
 UNLOADED  = 0;
 NP  = 0;
 DC  = 0;
 SKIP1  = 0;
 SKIP2  = 0;
 MPR1  = 0;
 MPR3  = 0;
 IPC  = 0;
 pended  = 0;
 compRegistered  = 0;
 lowerDriverReturn  = 0;
 setEventCalled  = 0;
 customIrp  = 0;

  {
  {
  status = 0;
  pirp = irp;
  _BLAST_init();
  }
  if (status >= 0) {
    s = NP;
    customIrp = 0;
    setEventCalled = customIrp;
    lowerDriverReturn = setEventCalled;
    compRegistered = lowerDriverReturn;
    pended = compRegistered;
    pirp__IoStatus__Status = 0;
    myStatus = 0;
    if (irp_choice == 0) {
      pirp__IoStatus__Status = -1073741637;
      myStatus = -1073741637;
    }
    {
    stub_driver_init();
    }
    {
    if (status < 0) {
      return (-1);
    }
    }
    int tmp_ndt_1;
    tmp_ndt_1 = __VERIFIER_nondet_int();
    if (tmp_ndt_1 == 3) {
      goto switch_2_3;
    } else {
      goto switch_2_default;
      if (0) {
        switch_2_3: 
        {
        status = FloppyPnp(devobj, pirp);
        }
        goto switch_2_break;
        switch_2_default: ;
        return (-1);
      } else {
        switch_2_break: ;
      }
    }
  }
  if (pended == 1) {
    if (s == NP) {
      s = NP;
    } else {
      goto _L___2;
    }
  } else {
    _L___2: 
    if (pended == 1) {
      if (s == MPR3) {
        s = MPR3;
      } else {
        goto _L___1;
      }
    } else {
      _L___1: 
      if (s != UNLOADED) {
        if (status != -1) {
          if (s != SKIP2) {
            if (s != IPC) {
              if (s != DC) {
                {
                errorFn();
                }
              } else {
                goto _L___0;
              }
            } else {
              goto _L___0;
            }
          } else {
            _L___0: 
            if (pended == 1) {
              if (status != 259) {
                status = 0;
              }
            } else {
              if (s == DC) {
                if (status == 259) {
                  {
                  errorFn();
                  }
                }
              } else {
                if (status != lowerDriverReturn) {
                  {
                  errorFn();
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  status = 0;
  return (status);
}
}
Exemplo n.º 2
0
int main(void) 
{ int status ;
  int irp = __VERIFIER_nondet_int() ;
  int pirp ;
  int pirp__IoStatus__Status ;
  int irp_choice = __VERIFIER_nondet_int() ;
  int devobj = __VERIFIER_nondet_int() ;
  int __cil_tmp8 ;

 FloppyThread  = 0;
 KernelMode  = 0;
 Suspended  = 0;
 Executive  = 0;
 DiskController  = 0;
 FloppyDiskPeripheral  = 0;
 FlConfigCallBack  = 0;
 MaximumInterfaceType  = 0;
 MOUNTDEV_MOUNTED_DEVICE_GUID  = 0;
 myStatus  = 0;
 s  = 0;
 UNLOADED  = 0;
 NP  = 0;
 DC  = 0;
 SKIP1  = 0;
 SKIP2  = 0;
 MPR1  = 0;
 MPR3  = 0;
 IPC  = 0;
 pended  = 0;
 compRegistered  = 0;
 lowerDriverReturn  = 0;
 setEventCalled  = 0;
 customIrp  = 0;

  {
  {
#line 705
  status = 0;
#line 706
  pirp = irp;
#line 707
  _BLAST_init();
  }
#line 709
  if (status >= 0) {
#line 710
    s = NP;
#line 711
    customIrp = 0;
#line 712
    setEventCalled = customIrp;
#line 713
    lowerDriverReturn = setEventCalled;
#line 714
    compRegistered = lowerDriverReturn;
#line 715
    pended = compRegistered;
#line 716
    pirp__IoStatus__Status = 0;
#line 717
    myStatus = 0;
#line 718
    if (irp_choice == 0) {
#line 719
      pirp__IoStatus__Status = -1073741637;
#line 720
      myStatus = -1073741637;
    }
    {
#line 725
    stub_driver_init();
    }
    {
#line 727
#line 727
    if (status < 0) {
#line 728
      return (-1);
    }
    }
#line 732
    int tmp_ndt_1;
    tmp_ndt_1 = __VERIFIER_nondet_int();
    if (tmp_ndt_1 == 3) {
      goto switch_2_3;
    } else {
      goto switch_2_default;
#line 737
      if (0) {
        switch_2_3: 
        {
#line 740
        status = FloppyPnp(devobj, pirp);
        }
        goto switch_2_break;
        switch_2_default: ;
#line 744
        return (-1);
      } else {
        switch_2_break: ;
      }
    }
  }
#line 753
  if (pended == 1) {
#line 754
    if (s == NP) {
#line 755
      s = NP;
    } else {
      goto _L___2;
    }
  } else {
    _L___2: 
#line 761
    if (pended == 1) {
#line 762
      if (s == MPR3) {
#line 763
        s = MPR3;
      } else {
        goto _L___1;
      }
    } else {
      _L___1: 
#line 769
      if (s != UNLOADED) {
#line 772
        if (status != -1) {
#line 775
          if (s != SKIP2) {
#line 776
            if (s != IPC) {
#line 777
              if (s != DC) {
                {
#line 779
                errorFn();
                }
              } else {
                goto _L___0;
              }
            } else {
              goto _L___0;
            }
          } else {
            _L___0: 
#line 789
            if (pended == 1) {
#line 790
              if (status != 259) {
#line 791
                errorFn();
              }
            } else {
#line 796
              if (s == DC) {
#line 797
                if (status == 259) {
                  {
#line 799
                  errorFn();
                  }
                }
              } else {
#line 805
                if (status != lowerDriverReturn) {
                  {
#line 807
                  errorFn();
                  }
                }
              }
            }
          }
        }
      }
    }
  }
#line 819
  status = 0;
#line 820
  return (status);
}
}