aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/core_SUITE_data/cover_v3_kernel_1.core
blob: 9e5788796fff73c528607bfdf8d1a81c74f4da68 (plain) (blame)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
module 'cover_v3_kernel_1' ['cover_v3_kernel_1'/0,
			    'module_info'/0,
			    'module_info'/1]
    attributes []
'cover_v3_kernel_1'/0 =
    %% Line 4
    fun () ->
	case <> of
	  <> when 'true' ->
	      %% Line 5
	      case apply 'bad_and_args'/1
		       ('x') of
		<'error'> when 'true' ->
		    %% Line 7
		    case apply 'bad_and_args'/2
			     (1, 2) of
		      <'error'> when 'true' ->
			  %% Line 8
			  case apply 'bad_and_args'/2
				   (1, 'true') of
			    <'error'> when 'true' ->
				%% Line 9
				case apply 'bad_and_args'/2
					 ('true', 42) of
				  <'error'> when 'true' ->
				      %% Line 10
				      case apply 'bad_and_args'/2
					       ('true', 'false') of
					<'error'> when 'true' ->
					    %% Line 11
					    case apply 'bad_and_args'/2
						     ('false', 'true') of
					      <'error'> when 'true' ->
						  %% Line 12
						  case apply 'bad_and_args'/2
							   ('true', 'true') of
						    <'ok'> when 'true' ->
							%% Line 14
							'ok'
						    ( <_@c6> when 'true' ->
							  primop 'match_fail'
							      ({'badmatch',_@c6})
						      -| ['compiler_generated'] )
						  end
					      ( <_@c5> when 'true' ->
						    primop 'match_fail'
							({'badmatch',_@c5})
						-| ['compiler_generated'] )
					    end
					( <_@c4> when 'true' ->
					      primop 'match_fail'
						  ({'badmatch',_@c4})
					  -| ['compiler_generated'] )
				      end
				  ( <_@c3> when 'true' ->
					primop 'match_fail'
					    ({'badmatch',_@c3})
				    -| ['compiler_generated'] )
				end
			    ( <_@c2> when 'true' ->
				  primop 'match_fail'
				      ({'badmatch',_@c2})
			      -| ['compiler_generated'] )
			  end
		      ( <_@c1> when 'true' ->
			    primop 'match_fail'
				({'badmatch',_@c1})
			-| ['compiler_generated'] )
		    end
		( <_@c0> when 'true' ->
		      primop 'match_fail'
			  ({'badmatch',_@c0})
		  -| ['compiler_generated'] )
	      end
	  ( <> when 'true' ->
		( primop 'match_fail'
		      ({'function_clause'})
		  -| [{'function_name',{'cover_v3_kernel_1',0}}] )
	    -| ['compiler_generated'] )
	end
'bad_and_args'/1 =
    %% Line 16
    fun (_@c0) ->
	case _@c0 of
	  <A>
	      when try
		    call 'erlang':'and'(A, 42)
		of <Try> ->
		    Try
		catch <T,R> ->
		    'false' ->
	      'ok'
	  %% Line 17
	  <_@c4> when 'true' ->
	      'error'
	  ( <_@c3> when 'true' ->
		( primop 'match_fail'
		      ({'function_clause',_@c3})
		  -| [{'function_name',{'bad_and_args',1}}] )
	    -| ['compiler_generated'] )
	end
'bad_and_args'/2 =
    %% Line 19
    fun (_@c1,_@c0) ->
	case <_@c1,_@c0> of
	  <X,Y>
	      when try
		    call 'erlang':'and'(X, Y)
		of <Try> ->
		    Try
		catch <T,R> ->
		    'false' ->
	      'ok'
	  %% Line 20
	  <_@c6,_@c7> when 'true' ->
	      'error'
	  ( <_@c5,_@c4> when 'true' ->
		( primop 'match_fail'
		      ({'function_clause',_@c5,_@c4})
		  -| [{'function_name',{'bad_and_args',2}}] )
	    -| ['compiler_generated'] )
	end
'module_info'/0 =
    fun () ->
	case <> of
	  <> when 'true' ->
	      call 'erlang':'get_module_info'
		  ('cover_v3_kernel_1')
	  ( <> when 'true' ->
		( primop 'match_fail'
		      ({'function_clause'})
		  -| [{'function_name',{'module_info',0}}] )
	    -| ['compiler_generated'] )
	end
'module_info'/1 =
    fun (_@c0) ->
	case _@c0 of
	  <X> when 'true' ->
	      call 'erlang':'get_module_info'
		  ('cover_v3_kernel_1', X)
	  ( <_@c1> when 'true' ->
		( primop 'match_fail'
		      ({'function_clause',_@c1})
		  -| [{'function_name',{'module_info',1}}] )
	    -| ['compiler_generated'] )
	end
end