1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <stdio.h> 10 11 int a(int); 12 int b(int); 13 int c(int); 14 15 int a(int val) 16 { 17 if (val <= 1) 18 return b(val); 19 else if (val >= 3) 20 return c(val); 21 22 return val; 23 } 24 25 int b(int val) 26 { 27 return c(val); 28 } 29 30 int c(int val) 31 { 32 return val + 3; // Find the line number here. 33 } 34 35 int main (int argc, char const *argv[]) 36 { 37 int A1 = a(1); // a(1) -> b(1) -> c(1) 38 printf("a(1) returns %d\n", A1); 39 40 int B2 = b(2); // b(2) -> c(2) 41 printf("b(2) returns %d\n", B2); 42 43 int A3 = a(3); // a(3) -> c(3) 44 printf("a(3) returns %d\n", A3); 45 46 return 0; 47 } 48