File: 2008-06-12-BinomialInt64.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (43 lines) | stat: -rw-r--r-- 1,614 bytes parent folder | download | duplicates (12)
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
; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>/dev/null
; PR2433

define i32 @main1(i32 %argc, ptr %argv) nounwind  {
entry:
	br i1 false, label %bb10, label %bb23

bb10:		; preds = %bb10, %entry
	%accum.03 = phi i64 [ %tmp14, %bb10 ], [ 0, %entry ]		; <i64> [#uses=1]
	%i.02 = phi i32 [ %tmp16, %bb10 ], [ 0, %entry ]		; <i32> [#uses=1]
	%d.1.01 = phi i64 [ %tmp5.i, %bb10 ], [ 0, %entry ]		; <i64> [#uses=1]
	%tmp5.i = add i64 %d.1.01, 1		; <i64> [#uses=2]
	%tmp14 = add i64 %accum.03, %tmp5.i		; <i64> [#uses=2]
	%tmp16 = add i32 %i.02, 1		; <i32> [#uses=2]
	%tmp20 = icmp slt i32 %tmp16, 0		; <i1> [#uses=1]
	br i1 %tmp20, label %bb10, label %bb23

bb23:		; preds = %bb10, %entry
	%accum.0.lcssa = phi i64 [ 0, %entry ], [ %tmp14, %bb10 ]		; <i64> [#uses=0]
	ret i32 0
}

define i32 @main2(i32 %argc, ptr %argv) {
entry:
	%tmp8 = tail call i32 @atoi( ptr null ) nounwind readonly 		; <i32> [#uses=1]
	br i1 false, label %bb9, label %bb21

bb9:		; preds = %bb9, %entry
	%accum.03 = phi i64 [ %tmp12, %bb9 ], [ 0, %entry ]		; <i64> [#uses=1]
	%i.02 = phi i32 [ %tmp14, %bb9 ], [ 0, %entry ]		; <i32> [#uses=1]
	%d.1.01 = phi i64 [ %tmp4.i, %bb9 ], [ 0, %entry ]		; <i64> [#uses=1]
	%tmp4.i = add i64 %d.1.01, 1		; <i64> [#uses=2]
	%tmp12 = add i64 %accum.03, %tmp4.i		; <i64> [#uses=2]
	%tmp14 = add i32 %i.02, 1		; <i32> [#uses=2]
	%tmp18 = icmp slt i32 %tmp14, %tmp8		; <i1> [#uses=1]
	br i1 %tmp18, label %bb9, label %bb21

bb21:		; preds = %bb9, %entry
	%accum.0.lcssa = phi i64 [ 0, %entry ], [ %tmp12, %bb9 ]		; <i64> [#uses=0]
	ret i32 0
}

declare i32 @atoi(ptr) nounwind readonly