File: 2005-02-11-InvokeCrash.ll

package info (click to toggle)
llvm 2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 38,648 kB
  • ctags: 28,258
  • sloc: cpp: 215,479; sh: 12,132; ansic: 10,002; yacc: 5,525; perl: 2,352; ml: 1,580; makefile: 956; pascal: 718; lex: 602; exp: 320; ada: 193; lisp: 160; csh: 116; objc: 59; python: 59; tcl: 20
file content (22 lines) | stat: -rw-r--r-- 781 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output

void %_ZN5ArrayISt7complexIdEEC2ERK10dim_vector() {
entry:
	%tmp.7 = invoke int %_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector( )
			to label %invoke_cont.0 unwind label %cond_true.1		; <int> [#uses=2]

cond_true.1:		; preds = %entry
	unwind

invoke_cont.0:		; preds = %entry
	%tmp.4.i = cast int %tmp.7 to uint		; <uint> [#uses=0]
	%tmp.14.0.i5 = add int %tmp.7, -1		; <int> [#uses=1]
	br label %no_exit.i

no_exit.i:		; preds = %no_exit.i, %invoke_cont.0
	%tmp.14.0.i.0 = phi int [ %tmp.14.0.i, %no_exit.i ], [ %tmp.14.0.i5, %invoke_cont.0 ]		; <int> [#uses=1]
	%tmp.14.0.i = add int %tmp.14.0.i.0, -1		; <int> [#uses=1]
	br label %no_exit.i
}

declare int %_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector()