]> AND Public Git Repository - simgrid.git/blobdiff - examples/deprecated/simdag/ptg-dotload/sd_ptg-dotload.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change "if(...) xbt_die(...)" to "xbt_assert(...)".
[simgrid.git] / examples / deprecated / simdag / ptg-dotload / sd_ptg-dotload.c
index 8a595de813d76d755d7e365f738610ca1cd2cf95..4f3bf64fa56964c88ba58a94e6148996d2fa8e48 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2020. The SimGrid Team.
+/* Copyright (c) 2013-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -26,9 +26,7 @@ int main(int argc, char **argv){
 
   /* load the DOT file */
   dot = SD_PTG_dotload(argv[2]);
-  if(dot == NULL){
-    xbt_die("No dot load may be you have a cycle in your graph");
-  }
+  xbt_assert(dot != NULL, "No dot load may be you have a cycle in your graph");
 
   /* Display all the tasks */
   XBT_INFO("------------------- Display all tasks of the loaded DAG ---------------------------");