@@ -16,7 +16,6 @@ Author: Daniel Kroening, kroening@kroening.com
1616#include < util/arith_tools.h>
1717#include < util/c_types.h>
1818#include < util/config.h>
19- #include < util/exception_utils.h>
2019#include < util/invariant.h>
2120#include < util/message.h>
2221#include < util/std_code.h>
@@ -281,7 +280,7 @@ void string_instrumentationt::do_sprintf(
281280
282281 if (arguments.size ()<2 )
283282 {
284- throw incorrect_goto_program_exceptiont (
283+ throw incorrect_source_program_exceptiont (
285284 " sprintf expected to have two or more arguments" ,
286285 target->source_location );
287286 }
@@ -323,7 +322,7 @@ void string_instrumentationt::do_snprintf(
323322
324323 if (arguments.size ()<3 )
325324 {
326- throw incorrect_goto_program_exceptiont (
325+ throw incorrect_source_program_exceptiont (
327326 " snprintf expected to have three or more arguments" ,
328327 target->source_location );
329328 }
@@ -365,7 +364,7 @@ void string_instrumentationt::do_fscanf(
365364
366365 if (arguments.size ()<2 )
367366 {
368- throw incorrect_goto_program_exceptiont (
367+ throw incorrect_source_program_exceptiont (
369368 " fscanf expected to have two or more arguments" , target->source_location );
370369 }
371370
@@ -650,7 +649,7 @@ void string_instrumentationt::do_strchr(
650649
651650 if (arguments.size ()!=2 )
652651 {
653- throw incorrect_goto_program_exceptiont (
652+ throw incorrect_source_program_exceptiont (
654653 " strchr expected to have two arguments" , target->source_location );
655654 }
656655
@@ -676,7 +675,7 @@ void string_instrumentationt::do_strrchr(
676675
677676 if (arguments.size ()!=2 )
678677 {
679- throw incorrect_goto_program_exceptiont (
678+ throw incorrect_source_program_exceptiont (
680679 " strrchr expected to have two arguments" , target->source_location );
681680 }
682681
@@ -702,7 +701,7 @@ void string_instrumentationt::do_strstr(
702701
703702 if (arguments.size ()!=2 )
704703 {
705- throw incorrect_goto_program_exceptiont (
704+ throw incorrect_source_program_exceptiont (
706705 " strstr expected to have two arguments" , target->source_location );
707706 }
708707
@@ -735,7 +734,7 @@ void string_instrumentationt::do_strtok(
735734
736735 if (arguments.size ()!=2 )
737736 {
738- throw incorrect_goto_program_exceptiont (
737+ throw incorrect_source_program_exceptiont (
739738 " strtok expected to have two arguments" , target->source_location );
740739 }
741740
0 commit comments