-
Notifications
You must be signed in to change notification settings - Fork 34
/
error.cpp
74 lines (55 loc) · 2.27 KB
/
error.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/***********************************************************************
Copyright (C) 1991,
Virginia Polytechnic Institute & State University
This program was originally written by Mr. Hyung K. Lee
under the supervision of Dr. Dong S. Ha, in the Bradley
Department of Electrical Engineering, VPI&SU, in 1991.
This program is released for research use only. This program,
or any derivative thereof, may not be reproduced nor used
for any commercial product without the written permission
of the authors.
For detailed information, please contact to
Dr. Dong S. Ha
Bradley Department of Electrical Engineering
Virginia Polytechnic Institute & State University
Blacksburg, VA 24061
Ph.: (540) 231-4942
Fax: (540) 231-3362
E-Mail: [email protected]
Web: http://www.ee.vt.edu/ha
REFERENCE:
H. K. Lee and D. S. Ha, "On the Generation of Test Patterns
for Combinational Circuits," Technical Report No. 12_93,
Dep't of Electrical Eng., Virginia Polytechnic Institute
and State University.
***********************************************************************/
/**************************** HISTORY **********************************
atalanta: version 1.0 H. K. Lee, 8/15/1991
atalanta: version 1.1 H. K. Lee, 10/5/1992
atalanta: version 2.0 H. K. Lee, 6/30/1997
***********************************************************************/
/*----------------------------------------------------------------------
error.c
Error handling of atalanta, fsim, soprano and hope
list all modifications below:
original: 8/15/1991 Hyung K. Lee
----------------------------------------------------------------------*/
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include "error.h"
#include "parameter.h"
//extern void exit();
/* Error messages */
char messages[NUMERRORS + 1][75] =
{
"Good status", "Unexpected end-of-file on circuit file", "Error in circuit file", "Error in dynamic memory allocation", "Error in symbol table", "Error in fault file",
};
/*------fatalerror------------------------------------------------------
Report an error and exit
----------------------------------------------------------------------*/
void printFatalError(int errorcode)
{
fprintf(stderr, "Fatal error: %s\n", messages[errorcode]);
exit(0);
}