1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #include <stdio.h> 9 10 int a(int); 11 int b(int); 12 int c(int); 13 14 int a(int val) 15 { 16 if (val <= 1) 17 return b(val); 18 else if (val >= 3) 19 return c(val); 20 21 return val; 22 } 23 24 int b(int val) 25 { 26 return c(val); 27 } 28 29 int c(int val) 30 { 31 return val + 3; // Find the line number here. 32 } 33 34 int main (int argc, char const *argv[]) 35 { 36 int A1 = a(1); // a(1) -> b(1) -> c(1) 37 printf("a(1) returns %d\n", A1); 38 39 int B2 = b(2); // b(2) -> c(2) 40 printf("b(2) returns %d\n", B2); 41 42 int A3 = a(3); // a(3) -> c(3) 43 printf("a(3) returns %d\n", A3); 44 45 return 0; 46 } 47