gcd.rdbf 1.79 KB
Newer Older
Mihai Herda's avatar
Mihai Herda committed
1
2
3
4
5
6
PROGRAM{
	stepsize=1
	name='A'
	lastExecLine=0
	PROGRAMTEXT{
		def_blockLen=11
7
8
9
10
11
12
13
14
15
16
17
18
int main(int a, int b) {                                        
   int i = 0;                                                   
   while (a != b && i < 50) {                                  
      i = i + 1;                                                
      if(a > b)                                                 
         a = a - b;                                             
      else                                                      
         b = b - a;                                             
   }                                                            
   return a;                                                    
}                                                               

Mihai Herda's avatar
Mihai Herda committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	}
	INPUTVALUES{
		a='2'
		b='4'
	}
	VARINSPECTOR{
	}
	BREAKPOINTS{
	}
}
PROGRAM{
	stepsize=1
	name='B'
	lastExecLine=0
	PROGRAMTEXT{
		def_blockLen=11
35
36
37
38
39
40
41
42
43
44
45
46
int main(int b, int a) {                                        
   int i = 0;                                                   
   while (a != b && i < 50) {                                  
      i = i + 1;                                                
      if(b > a)                                                 
         a = a - b;                                             
      else                                                      
         b = b - a;                                             
   }                                                            
   return b;                                                    
}                                                               

Mihai Herda's avatar
Mihai Herda committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	}
	INPUTVALUES{
		a='4'
		b='2'
	}
	VARINSPECTOR{
	}
	BREAKPOINTS{
	}
}
CONDBREAKPOINT{
	expression='A.a != B.b'
	SCOPE{
		begin=1
		end=11
	}
	SCOPE{
		begin=1
		end=11
	}
}